when I emerge any version of gcc-config while using portage 2.0.47-r2 I get the following: [almach /usr/bin] # emerge /usr/portage/sys-devel/gcc-config/gcc-config-1.2.9.ebuild Calculating dependencies ...done! >>> emerge (1 of 1) sys-devel/gcc-config-1.2.9 to / >>> Unpacking source... >>> Source unpacked. >>> Install gcc-config-1.2.9 into /var/tmp/portage/gcc-config-1.2.9/image/ category sys-devel * Compiling wrapper... * Adding compat symlinks... /usr/lib/portage/bin/newbin: dobin: command not found /usr/lib/portage/bin/prepall: prepallman: command not found /usr/lib/portage/bin/prepall: prepallinfo: command not found /usr/lib/portage/bin/prepall: prepallstrip: command not found >>> Completed installing into /var/tmp/portage/gcc-config-1.2.9/image/ >>> Merging sys-devel/gcc-config-1.2.9 to / --- /usr/ --- /usr/lib/ >>> /usr/lib/gcc-config/ >>> /usr/lib/gcc-config/wrapper --- /usr/sbin/ >>> /usr/sbin/gcc-config -> ../bin/gcc-config >>> Regenerating /etc/ld.so.cache... >>> sys-devel/gcc-config-1.2.9 merged. this is just a test of 1.2.9, all other versions available show the exact same thing except for version numbers here and there. things work with portage 2.0.46-r12. [almach /usr/bin] # emerge info Portage 2.0.46-r12 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7) ================================================================= System uname: 2.4.20 i686 Pentium II (Deschutes) GENTOO_MIRRORS="http://gentoo.linux.no/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib qtmt quicktime spell truetype xml2 xmms xv arts berkdb bonobo cdr esd gdbm gif gnome-libs gpm gtkhtml guile imlib java kde ldap libwww motif nls oggvorbis opengl pam perl png python qt readline scanner sdl slang ssl svga tcpd tetex tiff gnome imap mozilla pda tcltk X gtk alsa dvd gnome2 gtk2" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" Reproducible: Always Steps to Reproduce: 1. get a 1.2-based box (or mine or MAL from the gentoo-dev-lists box) 2. emerge portage 2.0.47-r2 3. emerge gcc-config Actual Results: forkbombs galore, and there is no /usr/[s]bin/gcc-config. Expected Results: installed gcc-config and worked? Portage 2.0.46-r12 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7) ================================================================= System uname: 2.4.20 i686 Pentium II (Deschutes) GENTOO_MIRRORS="http://gentoo.linux.no/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib qtmt quicktime spell truetype xml2 xmms xv arts berkdb bonobo cdr esd gdbm gif gnome-libs gpm gtkhtml guile imlib java kde ldap libwww motif nls oggvorbis opengl pam perl png python qt readline scanner sdl slang ssl svga tcpd tetex tiff gnome imap mozilla pda tcltk X gtk alsa dvd gnome2 gtk2" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
*** Bug 16098 has been marked as a duplicate of this bug. ***
I'm still investigating why this happens, but /usr/lib/portage/bin gets dropped from the PATH passed to ebuild.sh if userpriv and usersandbox are missing from FEATURES. I have confirmed this personally and with others on IRC. So, as a workaround, make sure that you add userpriv and usersandbox to your FEATURES to avoid this bug.
Has been determined to be a not-quite-root issue. I'd have to guess you're using 'sudo' or 'su' and not 'su -'
personally I always use "ssh root@<hostname>". that _should_ work, right?
I always use "su -"
Fixed in cvs portage-2.0.47-r3 This is caused by PATH modification in .bashrc