Latest unstable portage-version, portage-2.0.53_rc2, gets stuck in an endless loop when I try to "emerge -auDv world". I synced, updated portage (including an update to python-2.4.2 - I ran python-update after that) and now get this: emerge -auDv world These are the packages that I would merge, in order: Calculating world dependencies ...done! After calculating the dependencies, it eats up all cpu-time and seems to be stuck in an endless loop. I can "emerge -auDv individual_packet", or "emerge -auDv system", but not world. Happens only if I use "-u" or "-U". Portage-2.0.51.22-r2 has no problems though. Downgrading solves the problem at the moment. Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge -auDv portage 3. python-update 4. etc-update 5. emerge -auDv world Actual Results: Portage gets stuck in en endless loop Expected Results: Portage displaying the packages it wants to merge Portage 2.0.53_rc2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r2 i686) ================================================================= System uname: 2.6.13-gentoo-r2 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.12.0_pre8 ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /opt/glftpd/etc /opt/glftpd/ftp-data /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control /var/run/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/" LC_ALL="en_US.iso885915" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aac aalib alsa apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bonobo bzlib cdr cjk crypt cups curl dba dga directfb dts dvd dvdr dvdread emboss encode esd fam ffmpeg firefox flac foomaticdb fortran ftp gd gdbm gif gpm gtk gtk2 gtkhtml icq imagemagick imlib ipv6 java jpeg junit kde libg++ libwww lirc mad mikmod mjpeg mmx motif mozcalendar mozilla mp3 mpeg mysql nas ncurses nls no-old-linux nptl nptlonly nvidia ogg oggvorbis opengl oss pam pdflib perl php png postgres ppds python qt quicktime readline sblive sdl session slang socks5 spell sqlite sse ssl svg svga tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis wmf xdeltas xine xml xml2 xmms xv xvid zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Can you try with the --debug parameter please?
I can confirm this here, emerge info: darktama@disoft-dc ~ $ emerge info Portage 2.0.53_rc2 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.5.20050722-r0, 2.6.13-hardened x86_64) ================================================================= System uname: 2.6.13-hardened x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre8 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/home/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks multilib-strict sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.iinet.net.au/pub/Gentoo/ http://mirror.pacific.net.au/linux/Gentoo/"LANG="de_DE" LINGUAS="en de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/home/portage" PORTDIR_OVERLAY="/usr/local/overlays/scratch /usr/local/overlays/modular_xorg" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="amd64 X a52 aac aalib acl acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzlib cairo calendar cdparanoia cdr crypt cups curl dbus dlloader dri dvd dvdr dvdread eds emboss encode esd exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gif glitz glut gnome gpm gstreamer gtk gtk2 guile hal hardened imagemagick imlib inotify ipv6 ithreads jack java javascript jikes jpeg kde kerberos krb4 lcms ldap libwww lm_sensors lzw lzw-tiff mad mmap mng mono motif mp3 mpeg mpi msn ncurses nls nocd nptl nptlonly nvidia offensive ogg oggvorbis openal opengl pam pdflib perl png postgres python qt quicktime readline recode samba sasl sdl session speex spell ssl subversion sysvipc tcltk tcpd theora threads tiff truetype truetype-fonts type1 type1-fonts unicode usb userlocales vcd videos vorbis xine xinerama xml xml2 xosd xpm xprint xsl xv xvid xvmc zlib linguas_en linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS "emerge -uDN world -pv --debug" scrolls heaps of stuff while calculating deps, gets to "...done!" and the outputs nothing else while chewing 100% cpu. Here's the last few lines, I can upload an entire log somewhere if needed. Parent: ebuild / app-misc/screen-4.0.2-r4 nomerge Depstring: >=sys-libs/ncurses-5.2 pam? ( virtual/pam ) selinux? ( sec-policy/selinux-screen >=sec-policy/selinux-base-policy-20050821 ) >=sys-devel/autoconf-2.58 !bootstrap? ( sys-devel/patch ) !bootstrap? ( sys-devel/patch ) >= sys-libs/ncurses-5.2 pam? ( virtual/pam ) selinux? ( sec-policy/selinux-screen >=sec-policy/selinux-base-policy-20050821 ) Candidates: ['>=sys-devel/autoconf-2.58', '>=sys-libs/ncurses-5.2', 'sys-libs/pam', 'sys-devel/patch']ebuild: sys-devel/autoconf-2.59-r7 binpkg: None ebuild: sys-libs/ncurses-5.4.20050319 binpkg: None ebuild: sys-libs/pam-0.78-r2 binpkg: None ebuild: sys-devel/patch-2.5.9-r1 binpkg: None Exiting... ebuild / app-misc/screen-4.0.2-r4 nomerge Exiting... None ...done!
Using --debug produces the same results here as mentioned in comment #2: [...] Exiting... ebuild / app-misc/screen-4.0.2-r4 nomerge Exiting... None ...done! endless loop after that :(
Created attachment 69713 [details, diff] Removes the catching of signals Try again with this patch. When the dep calculation has finished and it gets into the loop, Ctrl-C and attach the resulting traceback please.
Created attachment 69716 [details] Traceback for "emerge -uDN world -pv" Here you go.
Do several runs yield essentially the same list?
Basically yes, occasionally it ends with: File "/usr/lib/portage/pym/portage_dep.py", line 77, in use_reduce if ("*" in uselist): File "/usr/lib/portage/pym/portage.py", line 1516, in __getitem__ def __getitem__(self,mykey):
*** Bug 107894 has been marked as a duplicate of this bug. ***
Created attachment 69724 [details, diff] Adds some noise about where execution is going Applies to fresh 2.0.53_pre2 (includes the other patch) If possible, could you join #gentoo-portage on irc.freenode.net please?
Created attachment 69726 [details, diff] Fixes the problem A config object was being passed where a list of USE flags should have been being passed. This looks like it's been around for a while - not sure why it hasn't been noticed earlier.
WORKSFORME :) Thanks Jason!
2.0.53_rc3 added to CVS. Will hit the mirrors in ~45 minutes.