When doing a world update after upgrading to the most recent portage (unstable 2.90.51_pre13) libswf refuses to build. The make cannot file swftest. When I cd into the work directory for the ebuild, swftest exists, and I can run it successfully doing a ./swftest. The Makefile references only swftest, not ./swftest. The same exact package however does work on another machine that is using portage 2.0.50-r8. After adding some debug commands to /usr/lib/portage/bin/emake, I discovered what I believe is the cause for this. portage-2.0.50-r8 does not run emake for this ebuild, portage-2.0.51_pre13 does. Reproducible: Always Steps to Reproduce: 1. Running portage 2.0.51_pre13 2. sudo emerge -av --oneshot libswf Actual Results: $ sudo emerge -av --oneshot libswf These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] media-libs/libswf-0.99 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] Yes >>> emerge (1 of 1) media-libs/libswf-0.99 to / >>> md5 src_uri ;-) dist.99.linux.tar.Z >>> Unpacking source... >>> Unpacking dist.99.linux.tar.Z to /usr/portage/distfiles/tmp/portage/libswf-0.99/work >>> Source unpacked. gcc swftest.c -o swftest libswf.a -lm libswf.a(swfimage.o)(.text+0x672): In function `swf_definebitmap': : warning: the use of `mktemp' is dangerous, better use `mkstemp' swftest make: swftest: Command not found make: *** [swftest] Error 127 !!! ERROR: media-libs/libswf-0.99 failed. !!! Function src_compile, Line 481, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: installed libswf The following is the system is does not work on: vericgar@darkelf vericgar $ emerge info Portage 2.0.51_pre13 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.25-gentoo i686 AMD Duron(tm) processor) ================================================================= System uname: 2.4.25-gentoo i686 AMD Duron(tm) processor Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 Binutils: sys-devel/binutils-2.14.90.0.8-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirror.cpsc.ucalgary.ca/mirror/gentoo.org http://lug.mtu.edu/gentoo/ http://gentoo.llarian.net/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/portage/distfiles/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.1.5/gentoo-portage" USE="X amd apm autofs avi berkdb cdr crypt cscope cups curl dga directfb dvd encode fbcon flash foomaticdb gatos gd gdbm ggi gif gpm gtk gtk2 imagemagick imap imlib innodb java jikes jpeg libwww mad maildir mcal md5sum mikmod mmx mpeg mpi mysql ncurses oav offensive oggvorbis opengl openssh oss pam pdflib perl php png ppds python quicktime rage128 readline ruby samba sdl skey slang snmp spell sse ssl svga tcltk tcpd tetex tiff transcode truetype usb v4l videos vim-with-x wxwindows x86 xinerama xml2 xmms xosd xv xvid zlib" The following is the system it does work on: admin@mooncougar admin $ emerge info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.25-gentoo) ================================================================= System uname: 2.4.25-gentoo i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.4.16 distcc 2.13 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i586 -fomit-frame-pointer -pipe" CHOST="i386-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control /var/www/localhost/htdocs/squirrelmail/plugins" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i586 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirror.cpsc.ucalgary.ca/mirror/gentoo.org http://lug.mtu.edu/gentoo/ http://gentoo.llarian.net/" MAKEOPTS="-j5" PKGDIR="/usr/portage/distfiles/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://localhost/gentoo-portage" USE="acl aim apache2 berkdb crypt cscope flash gd gdbm gif icq imagemagick imap imlib innodb jabber jpeg libg++ libwww maildir mcal memlimit mmx mpi msn mysql ncurses oscar pam pdflib perl png python readline sasl slang snmp spell sqlite sse ssl tcpd tiff vhosts x86 xml xml2 yahoo zlib"
Depending on the current directory in the PATH is bad style anyway - adding a little sed magic to fix this. Perhaps the portage team is still interested in this, so re-assigning.
Root should never have . in the PATH. It's an incorrect assumption on the Makefile's part.