Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152237 - portage 2.1.2_pre3-r6 just exit without errors
Summary: portage 2.1.2_pre3-r6 just exit without errors
Status: RESOLVED DUPLICATE of bug 147625
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 152482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-21 06:25 UTC by Jimmy.Jazz
Modified: 2006-10-30 09:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge trace (emerge.strace.gz,345.67 KB, application/octet-stream)
2006-10-22 05:24 UTC, Jimmy.Jazz
Details
portage 2.1.2_pre3-r6 log (tiny.log.gz,38.59 KB, application/octet-stream)
2006-10-25 02:30 UTC, Jimmy.Jazz
Details
portage-2.1.2_pre3-r8 debug log (tiny_2.1.2_pre3-r8.log.gz,17.84 KB, application/x-gzip)
2006-10-25 16:19 UTC, Gordon Stratton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy.Jazz 2006-10-21 06:25:15 UTC
Hi,

portage-2.1.2_pre3-r6 seems not to work properly. It just exit:(

It gives,
# emerge -av --oneshot festival

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-accessibility/festival-1.95_beta-r2  USE="X doc esd mbrola -asterisk" LINGUAS="fr -es" 0 kB [1] 

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage/overlay
 [2] /usr/local/portage/xfce4-svn
 [3] /usr/portage/local/layman/vps
 [4] /usr/portage/local/layman/voip
 [5] /usr/portage/local/layman/vmware
 [6] /usr/portage/local/layman/gentopia
 [7] /usr/portage/local/layman/liquidx
 [8] /usr/portage/local/layman/gentoo-de
 [9] /usr/portage/local/layman/nx
 [10] /usr/portage/local/layman/portage-xgl
 [11] /usr/portage/local/layman/sunrise
 [12] /usr/portage/local/layman/xwing

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 1) app-accessibility/festival-1.95_beta-r2 to /
seal evms # man emerge
seal evms # emerge festival
Calculating dependencies... done!

>>> Emerging (1 of 1) app-accessibility/festival-1.95_beta-r2 to /
seal evms # ls /usr/portage/packages/All/


Going back to an earlier version with the binary-only merging option doesn't work either !

# emerge -avk =sys-apps/portage-2.1.2_pre3-r5

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary     UD] sys-apps/portage-2.1.2_pre3-r5 [2.1.2_pre3-r6] USE="doc -build -selinux" LINGUAS="-pl" 

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 1) sys-apps/portage-2.1.2_pre3-r5 to /
>>> Extracting info
!!! Setup failed: 3328

At least,
 
ebuild sys-apps/portage-2.1.2_pre3-r5 merge 

was working.

Jj
Comment 1 Jimmy.Jazz 2006-10-21 06:26:42 UTC
# emerge --info
Portage 2.1.2_pre3-r5 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-vs2.1.1-rc37-gentoo x86_64)
=================================================================
System uname: 2.6.18-vs2.1.1-rc37-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.5
Last Sync: Sat, 21 Oct 2006 07:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.5
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.18
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla-thunderbird/components/myspell /usr/lib64/mozilla-firefox/dictionaries /usr/share/X11/xkb /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test userfetch userpriv"
GENTOO_MIRRORS="..."
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay /usr/local/portage/xfce4-svn /usr/portage/local/layman/vps /usr/portage/local/layman/voip /usr/portage/local/layman/vmware /usr/portage/local/layman/gentopia /usr/portage/local/layman/liquidx /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/nx /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/sunrise /usr/portage/local/layman/xwing"
SYNC="rsync://..."
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bitmap-fonts boost bzip2 cairo cdr cli cracklib crypt cups curl dbus dga dlloader dri dts dvd dvdr eds elibc_glibc emboss encode esd exif expat fam firefox flac fontconfig gdbm gif gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 hal howl ieee1394 imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse isdnlog java jpeg kernel_linux lcms ldap libedit libg++ linguas_fr mad maildir matroska mikmod mmap mng mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png posix ppds pppd python qt4 readline reflection ruby sdl session speex spell spl ssl svg sysvipc tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 video_cards_fglrx video_cards_radeon vorbis wmf xml xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Zac Medico gentoo-dev 2006-10-21 13:19:46 UTC
(In reply to comment #0)
> >>> Emerging (1 of 1) sys-apps/portage-2.1.2_pre3-r5 to /
> >>> Extracting info
> !!! Setup failed: 3328

The 3328 error code looks similar to bug 147625.  Run strace on the emerge and you will probably see something leading to the kill signal.

Comment 3 Jason Sievert 2006-10-21 21:16:15 UTC
Same symptoms but I am not getting that error code.  My emerge info is saying that it can not find my gcc???  It was working fine until the upgrade.  Tried gcc-config to a different version and sourced /etc/profile.  No change.

Emerge info.

!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 2.1.2_pre3-r6 (default-linux/x86/2006.0, [unavailable], glibc-2.5-r0, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 
Gentoo Base System version 1.12.5
Last Sync: Sun, 22 Oct 2006 00:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -Wl,--allow-shlib-undefined"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -Wl,--allow-shlib-undefined"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/gnome-experimental /usr/local/overlays/mine"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acpi aim alsa amazon apache2 artworkextra asf audiofile autoipd avahi avi bash-completion beagle berkdb bitmap-fonts cairo calendar cddb cdparanoia cdr chm cli cracklib crypt cups daap dba dbus dga dio directfb divx4linux dlloader dmi dpms dri dts dvb dvd dvdr dvdread elibc_glibc emboss encode esd exif ffmpeg fftw firefox flac flash foomaticdb fortran galago gd gdbm gif gmail gmedia gnome gphoto2 gpm gstreamer gstreamer010 gstreamer10 gtk gtk2 gtkhtml hal howl-compat i8x0 imap imlib inotify input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber jackjava java joystick jpeg kernel_linux ldap libg++ libnotify libsexy libwww live mad matroska mdnsresponder-compat mikmod mmx mmxext mng mod modplug mono motif mozilla mp3 mpeg msn musicbrainz mythtv nas nautilus ncurses nfs nls nntp nowin nptl nptlonly nsplugin offensive ofx ogg oggvorbis opengl oscar pam pcre pda pdf pdflib perl php png ppds pppd python qt4 quicktime readline real reflection remote ruby sdl session shout skins sndfile sourceview speex spell spl spreadsheet sse ssl startup-notification subp subtitles subversion svg tagwriting tcpd tga theora tiff transcode truetype truetype-fonts type1-fonts udev usb userland_GNU v4l v4l2 vcd video_cards_ati vidix vlm vorbis webservice win32codecs wmf wv xine xml xorg xosd xpm xprint xv xvid yahoo yaz zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Jimmy.Jazz 2006-10-22 05:21:59 UTC
(In reply to comment #2)

I'm not quiet sure the message error is related with the problem discussed here. I tried the -k option to show you that it is impossible to go back to any previous version of portage. In fact that was only informative to people who don't know how to proceed to get there box working again :)

In fact, ebuild is still working, so "ebuild sys-apps/portage-2.1.2_pre3-r5 merge" could  help in that situation.

Anyway, you can have a look at the strace log file i send you.
Comment 5 Jimmy.Jazz 2006-10-22 05:24:14 UTC
Created attachment 100208 [details]
emerge trace

strace of emerge -avk

Quite huge so i gzipped it !
Comment 6 Jimmy.Jazz 2006-10-22 05:32:29 UTC
Little BIG correction,

you need to pass the full path to ebuild !!

ebuild /usr/portage/sys-apps/portage/portage-2.1.2_pre3-r5.ebuild merge

works really better.

Sorry for those which had problems with that :)

Jj
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-10-23 03:00:07 UTC
*** Bug 152482 has been marked as a duplicate of this bug. ***
Comment 8 Zac Medico gentoo-dev 2006-10-23 03:24:04 UTC
I'm not noticing anything interesting in those strace logs.  Please reproduce the problem like this:

FEATURES=python-trace emerge --debug package &> debug.log

That log is usually very large.  It should be compressed and placed somewhere for me to download (don't attach if it's too big).
Comment 9 Jimmy.Jazz 2006-10-24 07:36:08 UTC
(In reply to comment #8)
> I'm not noticing anything interesting in those strace logs.  Please reproduce
> the problem like this:
> 
> FEATURES=python-trace emerge --debug package &> debug.log
> 
> That log is usually very large.  It should be compressed and placed somewhere
> for me to download (don't attach if it's too big).
> 

Hi,

i'm really sorry, i don't have a somewhere :)

Portage-2.1.2_pre3-r5 isn't in portage tree anymore. How should i proceed to restore my environment to something stable after having performed the tests again ?
That's about 3 years i didn't need to reinstall my computers. They use gentoo and portage without a glitch since and are still up to date. So i don't want to break my gentoo ;).

I opened an other bug about emerge. The trace file i send to you was about the "Setup failed: 3328" message and not about the fact that emerge just aborts. Jacub just closed it a bit to fast (Bug 152482). Perhaps that reporting could help you.

The fact that i'm using exclusively python 2.5 could be an other explanation.

Anyway, next time i encounter an other bug that implies python, i will first follow your advice and use the FEATURES=python-trace to trace the problem before reporting the bug :)
Comment 10 Zac Medico gentoo-dev 2006-10-24 14:00:38 UTC
(In reply to comment #9)
> i'm really sorry, i don't have a somewhere :)

Usually the tail of the file is enough.  Just use `tail -n 2000 big.log > small.log` and attach that tail of the log.

> Portage-2.1.2_pre3-r5 isn't in portage tree anymore. How should i proceed to
> restore my environment to something stable after having performed the tests
> again ?

http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml

> The fact that i'm using exclusively python 2.5 could be an other explanation.

I've used it with python-2.5 and everything worked fine for me.  Are you using anything special in /etc/portage, such as bashrc or modules?
Comment 11 Jimmy.Jazz 2006-10-25 02:27:02 UTC
(In reply to comment #10)

You will find the log file you ask me in attachment.

I'm using bashrc but only to set CFLAGS for some packages to -O2 rather then -O3
Otherwise there is a postsync.d/q-reinitialize certainly installed by portage i suppose. It contains only one line [ -x /usr/bin/q ] && /usr/bin/q -r
I don't use modules and make.profile is linked to ../usr/portage/profiles/default-linux/amd64/2006.1/desktop

# cat /etc/portage/bashrc

case ${CATEGORY}/${PN} in
    "mail-client/mail-notification")
        export CFLAGS="`echo ${CFLAGS} | /usr/bin/sed -e s/-O3/-O2/`"
        ;;
    "dev-lang/python")
        export CFLAGS="`echo ${CFLAGS} | /usr/bin/sed -e s/-O3/-O2/`"
        ;;
    "media-plugins/gst-plugins-ffmpeg")
        export CFLAGS="${CFLAGS} -lX11 -L/usr/X11R6/lib"
        ;;
    "x11-libs/gtk+")
        export CFLAGS="`echo ${CFLAGS} | /usr/bin/sed -e s/-O3/-O2/`"
        ;;
    "sys-libs/glibc")
        #export CFLAGS="`echo $CFLAGS | /usr/bin/sed -e s/-O3/-O2/`"
        export LDFLAGS="-Wl,-z,now"
        ;;
    "sys-cluster/util-vserver")
        #export CFLAGS="`echo ${CFLAGS} | /usr/bin/sed -e s/-O3/-O2/`"
        #export CXXFLAGS="`echo $CXXFLAGS | /usr/bin/sed -e s/-O3/-O2/`"
        export VDIRBASE="/vservers"
        ;;
    "dev-libs/dietlibc")
        #export CFLAGS="`echo $CFLAGS | /usr/bin/sed -e s/-O3/-O2/`"
        export CFLAGS="`echo $CFLAGS | /usr/bin/sed -e s/-fno-stack-protector-all//`"
        #export CXXFLAGS="`echo $CXXFLAGS | /usr/bin/sed -e s/-O3/-O2/`"
        ;;
    "gnome-base/gnome-panel")
        export CFLAGS="`echo $CFLAGS | /usr/bin/sed -e s/-O3/-O2/`"
        export CXXFLAGS="`echo $CXXFLAGS | /usr/bin/sed -e s/-O3/-O2/`"
        ;;
    "gnome-extra/gnome-swallow")
        export CFLAGS="`echo $CFLAGS | /usr/bin/sed -e s/-O3/-O2/`"
        export CXXFLAGS="`echo $CXXFLAGS | /usr/bin/sed -e s/-O3/-O2/`"
        ;;
    "net-analyzer/net-snmp")
        export CFLAGS="`echo ${CFLAGS} | /usr/bin/sed -e s/-O3/-O2/`"
        ;;
    "dev-lang/mono")
        export CFLAGS="`echo ${CFLAGS} | /usr/bin/sed -e s/-O3/-O2/`"
        ;;

esac

sys-apps/portage-2.1.2_pre2-r9 works well but sys-apps/portage-2.1.2_pre3-r8 doesn't

Comment 12 Jimmy.Jazz 2006-10-25 02:30:19 UTC
Created attachment 100445 [details]
portage 2.1.2_pre3-r6 log

4000 last lines
Comment 13 Gordon Stratton 2006-10-25 16:19:50 UTC
Created attachment 100496 [details]
portage-2.1.2_pre3-r8 debug log

Last 2000 lines of portage-2.1.2_pre3-r8 'sudden exit' debug log produced with

# FEATURES=python-trace emerge --debug spamassassin
Comment 14 Zac Medico gentoo-dev 2006-10-25 20:06:48 UTC
(In reply to comment #12)
> 4000 last lines

All that I could see was the tail end of autoclean and then a successful exit.  Maybe I need the last 100000 lines or so.

(In reply to comment #13)
> Last 2000 lines of portage-2.1.2_pre3-r8 'sudden exit' debug log produced with

Your pre-merge clean phase returned 3328 which may be indicative of bug 147625.  Do you use nss_ldap?
Comment 15 Jimmy.Jazz 2006-10-26 02:30:55 UTC
(In reply to comment #14)

> All that I could see was the tail end of autoclean and then a successful exit. 
> Maybe I need the last 100000 lines or so.

That's a big heap of lines and weighs 977388ko gzipped exactly :) can i send it to you somewhere with scp or sftp ?

> Your pre-merge clean phase returned 3328 which may be indicative of bug 147625.
>  Do you use nss_ldap?
> 

Yes and like comment #9 says (bug 147625) it works with nss_ldap 253 and portage 2.1.2_pre2-r9
Comment 16 Gordon Stratton 2006-10-26 03:56:18 UTC
(In reply to comment #14)
> Your pre-merge clean phase returned 3328 which may be indicative of bug 147625.
>  Do you use nss_ldap?
> 

Yes, I do.  As with #15, portage-2.1.2_pre2-r9 works fine with nss_ldap-253.
Comment 17 Zac Medico gentoo-dev 2006-10-27 22:58:58 UTC
I've looked over the changes between 2.1.2_pre2-r9 and 2.1.2_pre3-r6 and the only thing I noticed that might interact with your ldap setup is a group lookup for the portage user in /usr/lib/portage/pym/portage_data.py:

if secpass >= 2:
	for g in grp.getgrall():
		if "portage" in g[3]:
			userpriv_groups.append(g[2])
	userpriv_groups = list(set(userpriv_groups))

If you remove the above lines from that file, does it make any difference?
Comment 18 Jimmy.Jazz 2006-10-28 06:13:25 UTC
(In reply to comment #17)
> I've looked over the changes between 2.1.2_pre2-r9 and 2.1.2_pre3-r6 and the
> only thing I noticed that might interact with your ldap setup is a group lookup
> for the portage user in /usr/lib/portage/pym/portage_data.py:
> 
> if secpass >= 2:
>         for g in grp.getgrall():
>                 if "portage" in g[3]:
>                         userpriv_groups.append(g[2])
>         userpriv_groups = list(set(userpriv_groups))
> 
> If you remove the above lines from that file, does it make any difference?
> 

userpriv_groups is set to [250]

Commenting out the few lines above make portage work again.


Comment 19 Zac Medico gentoo-dev 2006-10-28 14:23:48 UTC
(In reply to comment #18)
> Commenting out the few lines above make portage work again.

It seems that we've found a bug in nss_ldap-253.

@ldap-bugs: That code snippet from comment #17 walks all available groups to find out which ones the "portage" user belongs to.  Shouldn't that be okay?
Comment 20 Zac Medico gentoo-dev 2006-10-30 08:58:54 UTC
Please see the /etc/nsswitch.conf suggesion here:

http://bugs.gentoo.org/show_bug.cgi?id=147625#c21

*** This bug has been marked as a duplicate of 147625 ***