The existence of package.keywords (with portage 2.0.50) makes computing dependencies extremely slow. When the file doesn't exist 'emerge -pvU' runs reasonably fast, in the order of tens of seconds. On the other hand when it exists 'emerge -pvU' takes in the order of couple of minutes.
Just some numbers to better illustrate the problem: with package.keywords: 5m26s without package. keywords: 10s
I've noticed this problem and I'm working on it..
Fixed in cvs
I believe this bug still exists and this report should be re-opened: http://forums.gentoo.org/viewtopic.php?t=157340 Please mail or PM me if I you need more info
which version do you use? please show us 'emerge info'
emerge --info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5) ================================================================= System uname: 2.6.5 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.3.13p1 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -fstack-protector -Os - pipe -fomit-frame-pointer " CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config / usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /v ar/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -fstack-protector -Os -pipe -fomit-frame-pointer " DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache prelink sandbox" MAKEOPTS="-s -j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/apps/ebuilds" USE="X alsa apm arts avi berkdb cdr crypt cups encode esd exif foomat icdb gdbm gif gphoto2 gpm gtk gtk2 imlib java jikes jpeg kde libg++ libwww mad mikmod mmx motif mozsvg mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl pic png ppds python qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd truetype usb x86 xml2 xmms xv zlib"
It should be fixed in 2.0.50-r3. Can you try it?
Masatomo Nakano , I did try the new 2.0.50-r3 as was suggested in the topic http://forums.gentoo.org/viewtopic.php?t=157340. It turned out to make no difference.
I just tested in 16 lines package.keywords file, but it worked properly. can you attach your package.keywords file here?
My package.keywords: alsa-lib~x86 alsa-utils~x86 gimp~x86 bootsplash~x86 redhat-artwork~x86 digikam~x86 digikam-plugins~x86 baselayout~x86 sysfsutils~x86 nvidia-kernel~x86 nvidia-glx~x86 openoffice-bin~x86 openoffice-ximian-bin~x86 udev~x86 hotplug-base~x86 hotplug~x86 Even if there is only 1 line in that file, everything slows down completely.
Sorry; correct layout this time: /etc/portage/package.keywords: alsa-lib ~x86 alsa-utils ~x86 gimp ~x86 bootsplash ~x86 redhat-artwork ~x86 digikam ~x86 digikam-plugins ~x86 baselayout ~x86 sysfsutils ~x86 nvidia-kernel ~x86 nvidia-glx ~x86 openoffice-bin ~x86 openoffice-ximian-bin ~x86 udev ~x86 hotplug-base ~x86 hotplug~ x86
I rm-ed the file and built a new /etc/portage/package.keywords. Identical contents. Problem fixed.