Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34629 - portage-2.0.49-r18 fails with python-2.3
Summary: portage-2.0.49-r18 fails with python-2.3
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2003-11-28 08:07 UTC by hydralisk
Modified: 2011-10-30 22:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hydralisk 2003-11-28 08:07:20 UTC
When I tried to upgrade portage from -r16 to -r18, the build failed because the
python2.2 (I have python2.3) executable could not be found. I did a grep and
traced the error to the shebang line in src/python-missingos/setup.py. This line
should be changed from

#! /usr/bin/env python2.2

to

#! /usr/bin/env python

I applied this change, and then did an ebuild install && ebuild qmerge. This was
successful.

Reproducible: Always
Steps to Reproduce:
1. emerge portage-2.0.49-r18
2.
3.

Actual Results:  
Emerge fails.

Expected Results:  
Emerge succeeds.

Here is the full error message:
% sudo emerge portage
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.49-r18 to /
>>> md5 src_uri ;-) portage-2.0.49-r18.tar.bz2
>>> Unpacking source...
>>> Unpacking portage-2.0.49-r18.tar.bz2 to /var/tmp/portage/portage-2.0.49-r18/work
>>> Source unpacked.
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... libc.so.6
Checking glibc subversion...
gcc -march=i386 -O1 -pipe -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT
libsandbox.c
gcc -march=i386 -O1 -pipe -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT
sandbox_futils.c
gcc libsandbox.o sandbox_futils.o -shared -fPIC -ldl -lc -o libsandbox.so
-nostdlib -lgcc
gcc -march=i386 -O1 -pipe -Wall -c sandbox.c
gcc sandbox.o sandbox_futils.o getcwd.c -ldl -lc -o sandbox
                                                                               
                      
>>> Install portage-2.0.49-r18 into /var/tmp/portage/portage-2.0.49-r18/image/
category sys-apps
/usr/bin/env: python2.2: No such file or directory
                                                                               
                      
!!! ERROR: sys-apps/portage-2.0.49-r18 failed.
!!! Function src_install, Line 94, Exitcode 127
!!! (no error message)

% emerge info
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9,
2.6.0-test10-gentoo-r1)
=================================================================
System uname: 2.6.0-test10-gentoo-r1 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -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 /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com http://gentoo.noved.org
http://gentoo.seren.com/gentoo"MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi apm avi berkdb bonobo cdr crypt cups directfb encode esd fbcon
foomaticdb gdbm gif gnome gstreamer gtk gtk2 gtkhtml imlib ipv6 java jpeg libg++
libwww mad mikmod motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls
oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl
slang spell ssl svga tcpd tetex truetype usb x86 xml2 xmms xv zlib"
 
% qpkg -I -i dev-lang/python
dev-lang/python-2.3.2-r2 *
        A really great language [ http://www.python.org ]
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2003-11-29 13:53:35 UTC
I searched program which use python2.2 regarding portage.
 src/python-missingos/setup.py (hydralisk pointeded out)
 bin/emergehelp.py
 qa/iuse/iuse2.py (I don't know we use it now)
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-12-07 22:34:24 UTC
That code is only supposed to be compiled if you have python2.2 present
on your system. It should not be compiled for 2.3.

And this was fixed in the ebuild since the bug was submitted.