Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280431 - app-admin/eselect-python-20090804 breaks dev-python/pycxx-6.1.0
Summary: app-admin/eselect-python-20090804 breaks dev-python/pycxx-6.1.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 08:24 UTC by Helmut Jarausch
Modified: 2009-08-07 15:18 UTC (History)
1 user (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 Helmut Jarausch 2009-08-05 08:24:20 UTC
eselect-python installs a symlink to python-wrapper as /usr/bin/python.
dev-python/pycxx doesn't like this:

ERROR: dev-python/pycxx-6.1.0 failed.
Call stack:
	      ebuild.sh, line	49:  Called src_compile
	    environment, line 2995:  Called distutils_src_compile
	    environment, line  784:  Called python_execute_function 'build_modules'
	    environment, line 2631:  Called validate_PYTHON_ABIS
	    environment, line 3497:  Called die
The specific snippet of code:
	  die "/usr/bin/python isn't valid program";
 The die message:
  /usr/bin/python isn't valid program


Reproducible: Always




emerge --info
Portage 2.2_rc36 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.0.1
Timestamp of tree: Wed, 05 Aug 2009 07:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/java-overlay"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X acl acpi alsa amd64 atm avahi berkdb branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg fftw firefox fortran fuse gdbm gfortran gif gimp gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg kde lapack lcms libnotify mad mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session smp spell spl sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Holger Hoffstätte 2009-08-06 10:40:47 UTC
Another victim is mod_fcgid which apparently manages to start the new wrapper, but then dies with scary segfaults in dmesg:
python[7308]: segfault at 0 ip 410a1544 sp bfbf11b8 error 4 in libc-2.10.1.so[41024000+16d000]
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-06 11:48:55 UTC
Reinstall app-admin/eselect-python and run:
eselect python set python2.6
Comment 3 Holger Hoffstätte 2009-08-06 12:13:55 UTC
(In reply to comment #2)
> Reinstall app-admin/eselect-python and run:
> eselect python set python2.6

Yes, that works in the shell but mod_fcgid still throws up when loading a script (hgwebdir in my case). I just repeated this - it was not just a freak accident. I guess it does not like the binary, maybe because of -fno-PIC and dynamic loading in a module?
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-06 12:32:44 UTC
Comment #1 describe completely different bug than comment #0.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-07 02:53:02 UTC
The reporter: Please run:
emerge --sync
emerge -1 ">=app-admin/eselect-python-20090804"
eselect python set python2.6

If emerging of dev-python/pycxx-6.1.0 still fails, please post the output of:
readlink /usr/bin/python
And attach /usr/bin/python-wrapper file with application/octet-stream MIME type.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-07 02:55:18 UTC
(In reply to comment #1 and comment #3)

If you are able to reproduce your problem after reinstalling ">=app-admin/eselect-python-20090804", then please report a new bug.
Comment 7 Helmut Jarausch 2009-08-07 07:47:02 UTC
(In reply to comment #5)
> The reporter: Please run:
> emerge --sync
> emerge -1 ">=app-admin/eselect-python-20090804"
> eselect python set python2.6
> 

Yes, it works now - thanks!
Helmut.

Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-07 15:18:18 UTC
(In reply to comment #7)
> (In reply to comment #5)
> > The reporter: Please run:
> > emerge --sync
> > emerge -1 ">=app-admin/eselect-python-20090804"
> > eselect python set python2.6
> > 
> 
> Yes, it works now - thanks!

OK. I'm marking this bug as FIXED.