The build output is attached. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51-r15 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r7epia0 i686) ================================================================= System uname: 2.6.10-gentoo-r7epia0 i686 VIA Nehemiah Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 20 2005, 04:27:23)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=c3-2 -Os -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/X11 /etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /usr /etc/env.d" CXXFLAGS="-march=c3-2 -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.uni-c.dk/gentoo/ http://ftp.du.se/pub/os/gentoo http://mirror.uni-c.dk/gentoo/" LANG="sv_SE.utf8" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/fluidportage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 alsa apache2 avi berkdb bitmap-fonts crypt curl dvd emboss encode f77 flac font-server gdbm gif gtk2 imlib jpeg kde libg++ libwww mad mikmod mmx mpeg ncurses oggvorbis pdflib perl png python quicktime readline slang spell sqlite sse ssl tcpd tetex threads truetype truetype-fonts type1-fonts unichrome unicode vhosts xml2 xv zlib video_cards_cle266 video_cards_via" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Created attachment 52158 [details] MAKEOPTS="-j1" emerge newt --oneshot &> newtbuild The output from the build
something is badly wrong with your python: "for ver in python.3 ; do \" this is the output on my machine: "for ver in python2.3 ; do \"
I reemerged python. It didn't help.
could you open up newt-0.50.35-r4.ebuild, and after the call to 'python_version' please insert this line: einfo "python_version: '$PYVER_ALL' '$PYVER_MAJOR' '$PYVER_MINOR' '$PYVER_MICRO' '$PYVER'" and run the emerge again, then include the output from the above line?
I added: einfo "python_version: '$PYVER_ALL' '$PYVER_MAJOR' '$PYVER_MINOR' '$PYVER_MICRO' '$PYVER'" env | grep PY to the ebuild and env | grep PY as the last statement in python_version() from python.eclass and got: PYVER_ALL=2.3.4 PYVER=.3 PYVER_MINOR=3 PYVER_MICRO=4 PYTHON_DONTCOMPILE=1 PYVER_MAJOR= * python_version: '2.3.4' '' '3' '4' '.3' PYVER_ALL=2.3.4 PYVER=.3 PYVER_MINOR=3 PYVER_MICRO=4 PYTHON_DONTCOMPILE=1 PYVER_MAJOR= however: minibox etc # python -V Python 2.3.4 minibox etc # tmpstr="$(python -V 2>&1 )"; echo ${tmpstr#Python } | cut -d. -f1 2 minibox etc # tmpstr="$(python -V 2>&1 )"; echo ${tmpstr#Python } | cut -d. -f2 3 minibox etc # tmpstr="$(python -V 2>&1 )"; echo ${tmpstr#Python } | cut -d. -f3 4 now this is strange... it seems, for some reson way beyond me, that "cut -d. -f1" does not work in that particular context it is executed in while emerging newt...
emerge metakit yields similar results, which at least rules out the newt ebuild. It's completley beyond me why cut wouldn't work in that eclass... replacing cut -d. -f1 in the eclass with simply cat does print out 2.3.4 so the pipe works. If it was consistent and wouldn't work in the shell I could atleast suspect some compiler bug.
ah, found the problem. it's cut being broken when compiled with -Os *** This bug has been marked as a duplicate of 81031 ***
So I was close =)