if [ `python -c "import portage; print int(portage.vercmp(\"${PV}\",\"$old_version\"))"` -lt 0 ]; then i think PV should be MY_PV Reproducible: Always Steps to Reproduce: 1.ACCEPT_KEYWORD="x86" emerge glibc 2. 3. ================================================================= System uname: 2.6.7-gentoo-r13 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i686 -march=pentium4 -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/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS=" http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apache2 apm arts avi berkdb bzlib caps crypt cups directfb divx4linux encode fftw foomaticdb ftp gdbm gif gmp gpm imlib ipv6 java jpeg kde libg++ libwww mad mikmod mime mmap mmx motif mpeg ncurses nls nptl oggvorbis opengl oss pam pcre pdflib perl php png python qt quicktime readline samba sdl slang sockets spell sse ssl svga tcpd truetype usb x86 xine xml xml2 xmms xvid zlib"
no, $PV is correct
when i emerge gcc: File "<string>", line 1, in ? File "/usr/lib/portage/pym/portage.py", line 2817, in vercmp cmp2=relparse(val2[x]) File "/usr/lib/portage/pym/portage.py", line 2534, in relparse number=string.atof(myver) File "/usr/lib/python2.3/string.py", line 205, in atof return _float(s) ValueError: invalid literal for float(): r1 /usr/sbin/ebuild.sh: line 144: [: -lt: unary operator expected it's not a fatal error.