View previous topic :: View next topic |
Author |
Message |
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Mon Sep 04, 2006 5:55 pm Post subject: |
|
|
i did a "gcc-config -l" and this is what i get Code: | root@ ~ > gcc-config -l
* gcc-config: Active gcc profile is invalid!
[1] i686-pc-linux-gnu-4.1.1 | what should i do?? |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Mon Sep 04, 2006 7:29 pm Post subject: |
|
|
If you havent all ready try re-emergeing gcc-config.
If you get the same error try " gcc-config i686-pc-linux-gnu-4.1.1 "
My files look like this
cat /etc/env.d/05gcc
PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.1"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.1"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info"
LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/4.1.1:/usr/lib/gcc/i686-pc-linux-gnu/3.4.6"
GCC_SPECS=""
ls /etc/env.d/gcc
config i686-pc-linux-gnu-4.1.1 org/
cat /etc/env.d/gcc/config
CURRENT=i686-pc-linux-gnu-4.1.1
cat /etc/env.d/gcc/i686-pc-linux-gnu-4.1.1
PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.1"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.1"
LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/4.1.1"
GCCBITS="32"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info"
STDCXX_INCDIR="g++-v4"
I have to leave in a bit. If youre still having problems post in the Portage & Programming _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Tue Sep 05, 2006 5:12 pm Post subject: |
|
|
seems that i had not updated the new profile after upgrading to the latest version of gcc...now everything is in order...thanks for the response... |
|
Back to top |
|
|
curmudgeon Veteran
Joined: 08 Aug 2003 Posts: 1741
|
Posted: Wed Sep 06, 2006 6:21 pm Post subject: |
|
|
I found a bug here (somewhat user instigated, but I still feel the program should handle it better).
Using 4.0.6 dated 2006-08-15.
I had a package in my world file with no valid ebuilds. So an emerge world will output something like this:
Code: | # emerge -Dpuv world
These are the packages that would be merged, in order:
Calculating world dependencies -
!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
foo-bar/application |
I ran emwrap.sh in this situation (forgetting to fix the bad package first), and got this output:
Code: | # /path/to/emwrap.sh -Wep
Running emwrap.sh 4.0.6 with no eselect or gcc-config Tue Aug 15 20:10:29 PDT 2006
If emwrap.sh is run and it detects a "failed' or "build" file
then it will offer to build them. You can ignor this by not doing
anything and what you wanted todo will start after 10 seconds.
345 build to emerge 1 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] app-arch/rpm2targz-9.0-r3
2 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] app-arch/unrar-3.6.7
3 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] app-arch/unzip-5.52-r1
4 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] app-arch/zip-2.31
5 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] app-text/enchant-1.2.5
6 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] app-text/ghostscript-esp-8.15.1_p20060430
7 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] dev-libs/pth-1.4.0
8 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies
emerge: there are no ebuilds to satisfy "=h".
9 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] kde-base/kdegraphics-3.5.2
10 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] media-fonts/font-bh-type1-1.0.0
11 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] media-libs/libgphoto2-2.1.6-r1
12 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] media-libs/libtheora-1.0_alpha6-r1
13 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] media-sound/alsa-headers-1.0.11
14 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild N ] media-sound/timidity-eawpatches-12-r4
15 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] net-misc/whois-4.7.12
16 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] net-www/netscape-flash-7.0.63
17 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] sys-apps/hal-0.5.7-r3
18 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] sys-apps/hotplug-20040923-r2
19 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] virtual/ghostscript-0
20 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] x11-apps/iceauth-1.0.1
21 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] x11-apps/xauth-1.0.1
22 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] x11-apps/xhost-1.0.1
23 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] x11-misc/googleearth-4_beta
24 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] x11-misc/shared-mime-info-0.17-r2
25 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] x11-proto/fontcacheproto-0.1.2
26 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] x11-proto/xf86rushproto-1.1.2
27 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] dev-util/dialog-1.0.20050206
[...]
345 of 345 build
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] app-misc/screen-4.0.2-r5
these failed to build
h |
Aside from the bad package (number 8), I noticed a few ebuilds in "impossible" places (like kdegraphics at number 9, for example).
Some investigation revealed that the first twenty-six ebuilds in this output all get duplicated (in their proper places) later on (except for the bad package). So removing the bad package from the world file produces output that starts with dialog at number 1 (number 27 on this list), and concludes with screen at number 319 (number 345 on this list).
Obviously, emwrap doesn't check for all of the possible ways that people could abuse it (as if anyone could predict all of those in advance anyway :) ), but this condition does seem worth checking for and handling. If you need any more info, let me know.
Thanks. |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Fri Sep 08, 2006 5:17 pm Post subject: |
|
|
curmudgeon I couldnt replicate the problem. I tried it as you ran it and with the more correct usage : -W = -we minus -se minus -te . So -We is redundant. The only other thing and more likely is a blocked or masked package and not all of verabage got sliced and diced out. I'll be looking at it this weekend. One last thing is when you run in pretend mode adding "q" is gives a cleaner output.
294 of 819 build [ebuild R ] media-libs/libmikmod-3.1.11-r2
295 of 819 build [ebuild R ] media-plugins/xmms-mikmod-1.2.10
296 of 819 build [ebuild R ] media-libs/libogg-1.1.3
297 of 819 build [ebuild R ] media-libs/libvorbis-1.1.2
298 of 819 build [ebuild R ] media-plugins/xmms-vorbis-1.2.10-r1
299 of 819 build [ebuild R ] media-libs/libid3tag-0.15.1b
300 of 819 build [ebuild R ] media-plugins/xmms-mad-0.8-r2
301 of 819 build [ebuild R ] media-plugins/xmms-esd-1.2.10-r1
302 of 819 build [ebuild R ] media-plugins/xmms-oss-1.2.10-r2
303 of 819 build [ebuild R ] media-plugins/xmms-alsa-1.2.10-r3
304 of 819 build [ebuild R ] media-plugins/live-2005.11.11
305 of 819 build [ebuild R ] media-libs/libsdl-1.2.11
which to me is easier to scan. _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
curmudgeon Veteran
Joined: 08 Aug 2003 Posts: 1741
|
Posted: Sat Sep 09, 2006 6:41 am Post subject: |
|
|
OK, let me try that with the small changes. To cause the problem, I just added a line in my world file for an application that only has one (masked) ebuild, with nothing in /etc/portage/* that references it. The system already has that ebuild installed.
Without the problem ebuild:
Code: | Running emwrap.sh 4.0.6 with no eselect or gcc-config Tue Aug 15 20:10:29 PDT 2006
If emwrap.sh is run and it detects a "failed' or "build" file
then it will offer to build them. You can ignor this by not doing
anything and what you wanted todo will start after 10 seconds.
326 build to emerge 1 of 326 build [ebuild R ] dev-util/dialog-1.0.20050206
2 of 326 build [ebuild R ] media-sound/alsa-headers-1.0.11
3 of 326 build [ebuild R ] sys-kernel/gentoo-sources-2.6.17-r7
4 of 326 build [ebuild R ] media-libs/alsa-lib-1.0.11-r1
5 of 326 build [ebuild R ] sys-apps/pciutils-2.2.0-r1
6 of 326 build [ebuild R ] media-sound/alsa-utils-1.0.11
7 of 326 build [ebuild R ] net-www/netscape-flash-7.0.63
8 of 326 build [ebuild R ] dev-util/strace-4.5.14
9 of 326 build [ebuild R ] dev-libs/nspr-4.6.1-r2
10 of 326 build [ebuild R ] app-arch/unzip-5.52-r1
11 of 326 build [ebuild R ] app-arch/zip-2.31
12 of 326 build [ebuild R ] dev-libs/nss-3.11-r1
13 of 326 build [ebuild R ] media-libs/jpeg-6b-r7
14 of 326 build [ebuild R ] media-libs/jbigkit-1.6-r1
15 of 326 build [ebuild R ] media-libs/tiff-3.8.2-r2
16 of 326 build [ebuild R ] x11-misc/util-macros-1.1.0
17 of 326 build [ebuild R ] x11-proto/kbproto-1.0.3
18 of 326 build [ebuild R ] x11-proto/xextproto-7.0.2
19 of 326 build [ebuild R ] x11-proto/xf86bigfontproto-1.1.2
20 of 326 build [ebuild R ] x11-proto/inputproto-1.3.2
21 of 326 build [ebuild R ] x11-proto/xproto-7.0.7
22 of 326 build [ebuild R ] x11-libs/libXau-1.0.2
23 of 326 build [ebuild R ] x11-proto/bigreqsproto-1.0.2
24 of 326 build [ebuild R ] x11-libs/libXdmcp-1.0.1
25 of 326 build [ebuild R ] x11-proto/xcmiscproto-1.1.2
26 of 326 build [ebuild R ] x11-libs/xtrans-1.0.1
27 of 326 build [ebuild R ] x11-libs/libX11-1.0.3
28 of 326 build [ebuild R ] x11-proto/renderproto-0.9.2
29 of 326 build [ebuild R ] x11-libs/libXrender-0.9.1
30 of 326 build [ebuild R ] x11-proto/fixesproto-4.0
[...]
322 of 326 build [ebuild R ] media-gfx/imagemagick-6.2.8.0
323 of 326 build [ebuild R ] net-libs/libpcap-0.9.4
324 of 326 build [ebuild R ] net-analyzer/tcpdump-3.9.4-r2
325 of 326 build [ebuild R ] sys-apps/dog-1.7-r2
326 of 326 build [ebuild R ] app-misc/screen-4.0.2-r5 |
With the problem ebuild:
Code: | Running emwrap.sh 4.0.6 with no eselect or gcc-config Tue Aug 15 20:10:29 PDT 2006
If emwrap.sh is run and it detects a "failed' or "build" file
then it will offer to build them. You can ignor this by not doing
anything and what you wanted todo will start after 10 seconds.
352 build to emerge 1 of 352 build [ebuild R ] app-arch/rpm2targz-9.0-r3
2 of 352 build [ebuild R ] app-arch/unrar-3.6.7
3 of 352 build [ebuild R ] app-arch/unzip-5.52-r1
4 of 352 build [ebuild R ] app-arch/zip-2.31
5 of 352 build [ebuild R ] app-text/enchant-1.2.5
6 of 352 build [ebuild R ] app-text/ghostscript-esp-8.15.1_p20060430
7 of 352 build [ebuild R ] dev-libs/pth-1.4.0
8 of 352 build [ebuild R ] dev-perl/Archive-Tar-1.28
9 of 352 build
emerge: there are no ebuilds to satisfy "=h".
10 of 352 build [ebuild R ] kde-base/kdegraphics-3.5.2
11 of 352 build [ebuild R ] media-fonts/font-bh-type1-1.0.0
12 of 352 build [ebuild R ] media-libs/libgphoto2-2.1.6-r1
13 of 352 build [ebuild R ] media-libs/libtheora-1.0_alpha6-r1
14 of 352 build [ebuild R ] media-sound/alsa-headers-1.0.11
15 of 352 build [ebuild R ] net-misc/whois-4.7.12
16 of 352 build [ebuild R ] net-www/netscape-flash-7.0.63
17 of 352 build [ebuild R ] sys-apps/hal-0.5.7-r3
18 of 352 build [ebuild R ] sys-apps/hotplug-20040923-r2
19 of 352 build [ebuild R ] virtual/ghostscript-0
20 of 352 build [ebuild R ] x11-apps/iceauth-1.0.1
21 of 352 build [ebuild R ] x11-apps/xauth-1.0.1
22 of 352 build [ebuild R ] x11-apps/xhost-1.0.1
23 of 352 build [ebuild R ] x11-misc/googleearth-4_beta
24 of 352 build [ebuild R ] x11-misc/shared-mime-info-0.17-r2
25 of 352 build [ebuild R ] x11-proto/fontcacheproto-0.1.2
26 of 352 build [ebuild R ] x11-proto/xf86rushproto-1.1.2
27 of 352 build [ebuild R ] dev-util/dialog-1.0.20050206
28 of 352 build [ebuild R ] media-sound/alsa-headers-1.0.11
29 of 352 build [ebuild R ] sys-kernel/gentoo-sources-2.6.17-r7
30 of 352 build [ebuild R ] media-libs/alsa-lib-1.0.11-r1
[...]
348 of 352 build [ebuild R ] media-gfx/imagemagick-6.2.8.0
349 of 352 build [ebuild R ] net-libs/libpcap-0.9.4
350 of 352 build [ebuild R ] net-analyzer/tcpdump-3.9.4-r2
351 of 352 build [ebuild R ] sys-apps/dog-1.7-r2
352 of 352 build [ebuild R ] app-misc/screen-4.0.2-r5
these failed to build
h |
I can post (or send you by private message) the complete outputs, emerge --info output, or anything else you need. |
|
Back to top |
|
|
curmudgeon Veteran
Joined: 08 Aug 2003 Posts: 1741
|
Posted: Sat Sep 09, 2006 7:09 am Post subject: |
|
|
Playing around with this on a second machine trying to replicate.
Code: | ../emwrap.sh -Wpq
Running emwrap.sh 4.0.6 with no eselect or gcc-config Tue Aug 15 20:10:29 PDT 2006
If emwrap.sh is run and it detects a "failed' or "build" file
then it will offer to build them. You can ignor this by not doing
anything and what you wanted todo will start after 10 seconds.
336 build to emerge 1 of 336 build
emerge: there are no ebuilds to satisfy "=lay-utils".
2 of 336 build [ebuild R ] dev-util/dialog-1.0.20050206
3 of 336 build [ebuild R ] media-sound/alsa-headers-1.0.11
4 of 336 build [ebuild R ] sys-kernel/gentoo-sources-2.6.17-r7
5 of 336 build [ebuild R ] media-libs/alsa-lib-1.0.11-r1
[...]
332 of 336 build [ebuild R ] app-portage/gentoolkit-0.2.2
333 of 336 build [ebuild R ] app-misc/screen-4.0.2-r5
334 of 336 build [ebuild R ] sys-apps/dog-1.7-r2
335 of 336 build [ebuild R ] net-libs/libpcap-0.9.4
336 of 336 build [ebuild R ] net-analyzer/tcpdump-3.9.4-r2
these failed to build
lay-utils
lay-utils |
In this case, I didn't get any extra ebuilds, but the output truncated the name of the faulty ebuild (removing the first sixteen characters, just like in the other case) from the name (app-portage/overlay-utils). It looks like this happens only with ebuilds that exist in overlays. To create this, I just removed the line app-portage/overlay-utils from /etc/portage/package.keywords.
P.S. I also noticed that the script says:
Code: | You can now enter " r " to resume building. If you dont enter anything
then the old build file will be deleted.and emwrap.sh system -ep will
continue. If you want to stop and scratch your head do a CRTL-C
14 12 10 8 6 4 2 0
Input was empty I will continue with emwrap.sh system -ep |
even with emwrap.sh -W instead of emwrap.sh -es |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sun Sep 10, 2006 9:38 pm Post subject: |
|
|
curmudgeon If you could send me the output of "' emerge world -eqp " Use this email hielvc<AT>cox.net
In regards to the emwrap.sh running system -e thats due to the way -W works in the script. When It sees a -W then in getargs "W ) do_wrld="yes" ;bclass="system" ;eargs="e";; If you look at the script after the function defs youll see Code: | rap "exit 1" 1 2 3 15
color <turns on color output
getargs $@ <gets the command line agrs
info <prints that wonderful info message Avalible, cheap, for advertising ;^)
wrk_dir < changes to wkr directory
chk_failed_build < checks for faild or build file in wrk directory
wrld_lst < runs emerge $bclass $eargs
| These are functions. when chk_failed_build is run and sees your faild file it uses the "bclass="system" ;eargs="e" " that is meant for for the wrld_lst function which erverything runs except "help" when emrap.sh is run. In the case of -W a second emerge is run to generate the world listing. The script needs both list to generate a "world minus system " file listing. _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
_pF_ Apprentice
Joined: 22 Apr 2004 Posts: 195 Location: Central London
|
Posted: Sun Sep 17, 2006 9:00 am Post subject: |
|
|
@hielvc - any comments on my report (Sep. 4) of the extraneous text in the build files? My current wrld.lst contains "or-quickfilter" as its first line.
EDIT: the text is clearly coming from here:
Code: | emerge -avuD world
These are the packages that would be merged, in order:
Calculating world dependencies \
!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
kde-misc/konqueror-quickfilter
|
I have a suggestion that the build files be moved from /tmp/emwrap to somewhere in /var/tmp. A lot of us who scrub our /tmp directory on reboot or keep it in ram will get caught out by losing our state if we crash or reboot during an emerge. |
|
Back to top |
|
|
zajelo3 n00b
Joined: 05 Sep 2005 Posts: 60
|
Posted: Sun Sep 17, 2006 6:19 pm Post subject: |
|
|
yes, that has happened to me before. make this request #2 for some place other than /tmp...lol. |
|
Back to top |
|
|
yther Apprentice
Joined: 25 Oct 2002 Posts: 151 Location: Charlotte, NC (USA)
|
Posted: Mon Sep 18, 2006 5:30 am Post subject: emwrap.sh 4.0.6: -r fails |
|
|
Any idea what causes this?
Code: | # emwrap.sh -Nqw -r
Running emwrap.sh 4.0.6 with no eselect or gcc-config Tue Aug 15 20:10:29 PDT 2006
If emwrap.sh is run and it detects a "failed' or "build" file
then it will offer to build them. You can ignor this by not doing
anything and what you wanted todo will start after 10 seconds.
wc: build: No such file or directory
to emerge wc: build: No such file or directory
/root/emwrap.sh: line 416: build: No such file or directory
wc: build: No such file or directory
to emerge wc: build: No such file or directory
/root/emwrap.sh: line 416: build: No such file or directory
these failed to build
dev-util/xdelta-1.1.3-r1
mail-mta/ssmtp-2.61
net-nds/openldap-2.3.24-r1
sys-apps/busybox-1.1.3
sys-apps/eject-2.1.0-r1
app-office/openoffice-2.0.3
nenene ~ # cat /tmp/emwrap/failed
dev-util/xdelta-1.1.3-r1
mail-mta/ssmtp-2.61
net-nds/openldap-2.3.24-r1
sys-apps/busybox-1.1.3
sys-apps/eject-2.1.0-r1
app-office/openoffice-2.0.3 |
I tried shortening the arguments to "-qw -r", "-w -r", and "-wr" with the same result.
I'm a bit curious about why it claims I don't have gcc-config, as well.
Code: | nenene ~ # gcc-config -l
[1] powerpc-unknown-linux-gnu-4.1.1 * |
I can understand its complaint about eselect; I have that, but the compiler module isn't installed because it's masked and I haven't needed it yet.
Any clues? |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Tue Sep 19, 2006 5:23 am Post subject: |
|
|
_pF_ & curmudgeon you have problems with your systems. You need to emerge udept. This is Ed Catmur's excellent dep script, which is now in portage. This is what I do which began with How bleeding edge is your system update procedure?. Code: | emerge --sync
emwrap.sh -wuD or emerge world -uD
dep -wp <<< shows all the gaaarbaag that ends up in your world file
sort /var/lib/portage/world >>/var/lib/portage/world.org <<< gives you a nicely sorted world file backup
dep -w <<< cleans out your world file which is interesting, when it turns out that your installe X,kde,kate for a kate-plugin
dep -dp /or -sp <<< runs a safer emerge --depclean in pretend mode
equery d pkg_you_want_to_check_before_deleting <emerge gentoolkit>
dep -d or -p <<< I never had a prob with this and you do youll correct it in a bite
revdep-rebuild <<< checks for broken libs and pkgs that dep may have remove incorrectly
emwrap.sh -wuD or emerge world -uD <<< same-oh same-oh just checking that if anything got removed incorrectly go get it |
yther as to Quote: | Running emwrap.sh 4.0.6 with no eselect or gcc-config Tue Aug 15 20:10:29 PDT 2006 | I disabled the running gcc-config or eselect from within the script as the last time I did with gcc-config it was depricated within a week or two and eselect-compiler became default. So I got auto eselect-compiler working and they< the devs went back to gcc-config so currently I leave it to you osers to pick and chose.
As to changing the location of /tmp/emwrap to /var/tmp or /var/tmp/portage [EDIT] I'll be back. _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
yther Apprentice
Joined: 25 Oct 2002 Posts: 151 Location: Charlotte, NC (USA)
|
Posted: Tue Sep 19, 2006 8:20 am Post subject: |
|
|
Ok, that makes sense; I thought the script was trying to tell me I was missing something.
As for the glitch with wc, I've run strace on the script and I am none the wiser, although I see some sections like this:
Code: | write(1, "\n", 1
) = 1
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -203, [30070], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x3001e7f8) = 19267
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x10035378, [], 0}, {0x10035378, [], 0}, 8) = 0
close(4) = 0
read(3, wc: build: No such file or directory
"", 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) --- |
I've got coreutils-5.94-r1, rebuilt two days ago. My guess is that wc is working but is being called incorrectly somehow. There are so many "no such file or directory" entries in the output, though, and many are simply the results of tests so they aren't bad.
[looks at script some more, wishes he knew bash better]
Best I can say is that at some point the variable build is getting set to "wc: build: No such file or directory" but I dunno where. It's correct, though, in that there is no "build" file, only "failed", in /tmp/emwrap. It also looks like the script tests for the case where one exists and the other doesn't, so that should have been dealt with already.
[shrugs & heads off for Oz, where the Wizard can give him a brain] |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
|
Back to top |
|
|
curmudgeon Veteran
Joined: 08 Aug 2003 Posts: 1741
|
Posted: Thu Sep 21, 2006 3:08 pm Post subject: |
|
|
hielvc wrote: | _pF_ & curmudgeon you have problems with your systems. You need to emerge udept. |
Intersting script, although I don't agree with a lot of its output
Code: | $ ./dep -pw
[...]
!!!REDUNDANT ENTRY!!! sys-kernel/gentoo-sources depended on by:
WORLD FILE sys-kernel/gentoo-sources
media-libs/alsa-lib-1.0.11-r1 virtual/alsa
app-cdr/k3b-0.12.14 alsa? media-libs/alsa-lib
WORLD FILE app-cdr/k3b
[...] |
Obviously, gentoo-sources gets merged first, and it makes no sense (at least to me) to remove it and rely on a dependency chain from k3b.
Back to the point, that script doesn't even find the problem I discovered (which occurs when a package in the world file has ALL of its ebuilds masked).
You might say "screw the user, if he has a misconfiguration like that, he gets what he deserves," and obviously you have the choice not to fix your script to handle such a situation.
I however, feel that a well-behaved script should handle output like:
Code: | $ emerge -Dpuv world
These are the packages that would be merged, in order:
Calculating world dependencies |
!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
net-im/twinkle
... done! |
without doing things like building twenty-five packages in the emerge -ev world except system list twice. |
|
Back to top |
|
|
cerebus_k Apprentice
Joined: 20 Jun 2003 Posts: 173 Location: Flower Mound, Texas
|
Posted: Sun Oct 01, 2006 6:42 pm Post subject: |
|
|
emwrap.sh has started to return the following error when doing an emwrap.sh -wuD :
Code: |
10 build to emerge 1 of 10 build Calculating dependencies
emerge: there are no ebuilds to satisfy "-".
|
and repeats itself for the 10 packages.
I've searched and tried to figure this out myself but can't seem to even come up with a way to find out what conditions will trigger this error.
I'm running
emwrap.sh v. 4.0.6 with no eselect or gcc-config "The fuzzy tailed rats are winning, Elp"
Also I've had to do an emerge -C eselect-compiler since it's hard masked. Any guidance would be appreciated.
bill _________________ Gettin old isn't for wimps |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sun Oct 01, 2006 9:38 pm Post subject: |
|
|
Well my house is getting de-bugged so emwrap.sh is being hosted from my son's server. No more rattelling around in the attic of my computer for a while.
cerebus_k Im getting prob and am working on it now.
curmudgeon I dont understand why your not getting at least a "masked" error message. Quote: | You have ${RD}masked${Yl} ebuilds. If its keyword masked add it
to /etc/portage/package.keywords. For more info see man emerge. |
If it doesnt take me to long I'll also add a simple, for me , way to pick a work directory _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sun Oct 01, 2006 11:51 pm Post subject: |
|
|
Posted a new version 4.0.7
TIMESTAMP: Sun Oct 1 16:32:17 PDT 2006
VERSION="4.0.7 no eselect or gcc-config"
DATE="Sun Oct 1 18:09:27 PDT 2006"
This fixes a change in emerge where a if you had a dangeling " - " in your emerge flags emerge used to ignor it. Now it doesnt which is probably more correct. So if your running Portage 2.1.2_pre2 you needed to upgrade.
EDIT
Default WORK_DIR is /tmp. If you create a file, "nano .emwrap " , with a string like WORK_DIR="/var/tmp" or for useing the home directory WORK_DIR="/home/hielvc" or for root WORK_DIR="/root" that will become your work dir. To repeat make a config file called .emwrap and put a single string into it consisting of "WORK-DIR="/root OR /home/ME OR /var/tmp". If you dont care then you DONT have to do anything emwrap.sh will use /tmp. _________________ An A-Z Index of the Linux BASH command line
Last edited by hielvc on Tue Oct 03, 2006 1:20 am; edited 2 times in total |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
|
Back to top |
|
|
yther Apprentice
Joined: 25 Oct 2002 Posts: 151 Location: Charlotte, NC (USA)
|
Posted: Mon Oct 02, 2006 11:03 am Post subject: |
|
|
Just FYI, running "emwrap -wuDp -X ibm-jdk-bin" with 4.0.7 I get:
Code: | Running emwrap.sh 4.0.7 no eselect or gcc-config Sun Oct 1 18:09:27 PDT 2006
If emwrap.sh is run and it detects a "failed' or "build" file
then it will offer to build them. You can ignor this by not doing
anything and what you wanted todo will start after automaticlly.
work_dir is
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information. |
Did emwrap forget how to use grep?
Hm, then running it without -p gives me:
Code: |
these were excluded and can be built
dev-java/ibm-jdk-bin-1.4.2.6-r1
nenene ~ # emwrap -wuDq -X ibm-jdk-bin
Running emwrap.sh 4.0.7 no eselect or gcc-config Sun Oct 1 18:09:27 PDT 2006
If emwrap.sh is run and it detects a "failed' or "build" file
then it will offer to build them. You can ignor this by not doing
anything and what you wanted todo will start after automaticlly.
work_dir is
These were excluded can now be built
dev-java/ibm-jdk-bin-1.4.2.6-r1
/root/emwrap.sh: line 310: exclude_info: command not found |
[watches stuff run]
Seems to be doing its job properly, though.
Just a little question, now that I think of it: Does the script mean, "These packages were excluded (by your choice) and can be built now" (which seems odd, since they're not going to be built now), or "These packages were excluded and will not be built at this time"? I only ask because "now" is such a common typo for "not". |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Mon Oct 02, 2006 3:08 pm Post subject: |
|
|
yther its actually because its written as a simple grep. Code: | function exclude_filter(){
#First run grep and put the excluded files into exclude.lst
for line in $(echo $exclude_list); do
grep "$line" wrld.tmp >>exclude.lst
done
awk "!/$exclud/" wrld.tmp > wrld.lst |
Scense I'm passing a variable to grep its weakly " " quoted and therefore the dashes, "-", are being treated as beginnings of switch strings. ergo the grep help message. What I had in mind was a simple grep to block out kde, gnome, X mozilla, firefoxs and openoffice. See no dashes As its written some whit could use it to exclude all caterory/packages with an "e" or "a" in thier name. They might even sit around and run it like "emwrap.sh -wepqX e |wc -l " to seee which letter in the alpabet is the most common in category/package You now know why I''m not always real promte in answering post Jokeing aside that why slycordinator was worried about its implimentation. It is easily abused and somebody could do real damage to thier gentoo. To exclude specfic programs you should use the portage tools, /etc/portage/package.
As to why it offers to build the excluded list, well if your doing "emwrap.sh system -eX X11" on a slow system, then the next night you could biuld the excluded X11 progs. _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
yther Apprentice
Joined: 25 Oct 2002 Posts: 151 Location: Charlotte, NC (USA)
|
Posted: Mon Oct 02, 2006 3:41 pm Post subject: |
|
|
hielvc wrote: | Scense I'm passing a variable to grep its weakly " " quoted and therefore the dashes, "-", are being treated as beginnings of switch strings. ergo the grep help message. |
Ok, I understand now! I just did something that was too unexpected for its tiny mind. I guess I'm lucky that neither -jdk nor -bin are valid options to grep or it could have messed up what goes into exclude.lst.
I was trying to use package.keywords to keep the JDK from being built, but since the devs completely removed the ebuild for my current version that doesn't work and I resorted to the temporary measure of just having emwrap exclude it. Later when I feel like mucking around in IBM's site I'll update it.
hielvc wrote: | As to why it offers to build the excluded list, well if your doing "emwrap.sh system -eX X11" on a slow system, then the next night you could biuld the excluded X11 progs. |
Yep, and that is a nice feature to have! |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Tue Oct 03, 2006 1:18 am Post subject: |
|
|
yther you do that by useing "/etc/portage/profile/package.provided". See " man portage " and search the forums here as youll notice its not the best documentation.
dol-sen thanks for hosting at an alternate site.[/b] _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Tue Oct 03, 2006 9:27 am Post subject: |
|
|
hielvc wrote: | I disabled the running gcc-config or eselect from within the script as the last time I did with gcc-config it was depricated within a week or two and eselect-compiler became default. So I got auto eselect-compiler working and they< the devs went back to gcc-config so currently I leave it to you osers to pick and chose. |
You got something missing here:
The dev who wrote eselect-compiler wrote the gcc-config-2. He wrote gcc-config-2 to do nothing but make calls to eselect-compiler and display the deprication message.
According to other devs, he did this without consulting others and put the packages into the testing branches without having the arch devs test it first (this last part I think I remember happening).
Then he disappeared and never bothered fixing his broken package.
So, gcc-config was never really depricated as far as I've read. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|