Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46824 - metakit-2.4.9.2-r1 --with-python can break
Summary: metakit-2.4.9.2-r1 --with-python can break
Status: RESOLVED DUPLICATE of bug 46823
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-04 23:10 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-04-04 23:10:37 UTC
metakit-2.4.9.2-r1 ebuild relies on python-config in src_install(), and on python -c 'import sys; print sys.version[0:3]' in src_unpack(). This is problematic, because the two methods are not guaranteed to return the same python version.

Basically, /usr/bin/python is the latest version of python, while /usr/bin/python-config is the last version of python that was installed (i.e. emerge '<python-2.3' will clobber python-config). 

So, if you have emerged a python-2.2 after python-2.3, the metakit ebuild says

/bin/sh ./libtool --mode=install /bin/install -c Mk4py.so /var/tmp/portage/metakit-2.4.9.2-r1/image//usr/lib/python2.3/site-packages
/bin/install -c Mk4py.so /var/tmp/portage/metakit-2.4.9.2-r1/image//usr/lib/python2.3/site-packages
/bin/install: cannot create regular file `/var/tmp/portage/metakit-2.4.9.2-r1/image//usr/lib/python2.3/site-packages': No such file or directory
make: *** [install-python] Error 1
 
!!! ERROR: dev-db/metakit-2.4.9.2-r1 failed.
!!! Function src_install, Line 49, Exitcode 2
!!! (no error message)

Note that metakit-2.4.9.3-r2 performs some kind of ebuildical magic to avoid this problem, but unfortunately, it's ~x86 at the moment.

Reproducible: Always
Steps to Reproduce:
1. emerge '<python-2.3'
2. emerge '=metakit-2.4.9.2-r1'


Actual Results:  
ebuild fails

Expected Results:  
ebuild succeeds...

Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.3-gentoo)
=================================================================
System uname: 2.6.3-gentoo i686 AMD Athlon(TM) XP 2500+
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -frename-registers -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 /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/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/bmg-gnome-current"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm arts avi berkdb bonobo cdr crypt cups dga directfb
dnd doc dumb-allegro dvd dvdr encode esd ethereal evo fbcon flash foomaticdb
gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++
libwww mad mbox mikmod mmx mng motif mozilla mpeg mule mysql nas ncurses nls oav
odbc oggvorbis opengl oss pam pda pdflib perl pic plotutils png postgres python
qt quicktime readline samba scanner sdl slang slp spell sse ssl svga tcltk tcpd
tetex tiff truetype usb wmf x86 xface xinerama xml2 xmms xv xvid zlib"
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-04-04 23:12:46 UTC

*** This bug has been marked as a duplicate of 46823 ***