Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363299 - app-emulation/xen-tools-4.1.0-r1 check_python does not recognize Python3.1 as >= 2.2
Summary: app-emulation/xen-tools-4.1.0-r1 check_python does not recognize Python3.1 as...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 14:33 UTC by foxpa.ws
Modified: 2011-10-14 18:47 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 foxpa.ws 2011-04-12 14:33:27 UTC
xen-tools fails to compile when the default python interpreter is set to python 3.1. Temporarily selecting a 2.x version allows xen-tools to compile but when the default is returned to 3.1 xen-tools is picked up by python-updater and fails to compile in the same way. Confirmed on two similarly configured servers.

Reproducible: Always

Steps to Reproduce:
1. emerge xen-tools

Actual Results:  
Calculating dependencies... done!
[ebuild   R   ] app-emulation/xen-tools-4.1.0-r1  USE="acm flask pygrub -api -custom-cflags -debug -doc -hvm -ioemu -screen" 0 kB                                                         

Total: 1 package (1 reinstall), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-emulation/xen-tools-4.1.0-r1
 * xen-4.1.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                   [ ok ]
 * Package:    app-emulation/xen-tools-4.1.0-r1
 * Repository: gentoo
 * Maintainer: xen@gentoo.org
 * USE:        acm elibc_glibc flask kernel_linux pygrub userland_GNU x86
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking xen-4.1.0.tar.gz to /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work
>>> Source unpacked in /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work
>>> Preparing source in /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0 ...
 * Applying xen-tools-3.4.0-network-bridge-broadcast.patch ...                        [ ok ]
 * Applying xen-tools-3.3.0-nostrip.patch ...                                         [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0 ...
make -j2 -C tools 
make: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools'
make[1]: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools'
make -C check all
make[2]: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools/check'
PYTHON=python LIBXENAPI_BINDINGS=n ACM_SECURITY=y ./chk build
Xen CHECK-BUILD  Tue Apr 12 10:09:30 EDT 2011
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_openssl_devel: OK
Checking check_python: 
 *** check_python FAILED: need python version >= 2.2
Checking check_python_devel: OK
Checking check_uuid_devel: OK
Checking check_xgettext: OK
Checking check_xml2: OK
Checking check_zlib_devel: OK
Checking check_zlib_lib: OK
make[2]: *** [check-build] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools/check'
make[1]: *** [subdir-all-check] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools'
make: *** [subdirs-all] Error 2
make: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools'
emake failed
 * ERROR: app-emulation/xen-tools-4.1.0-r1 failed (compile phase):
 *   compile failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 4879:  Called die
 * The specific snippet of code:
 *       emake -C tools ${myopt} || die "compile failed";
 * 
 * If you need support, post the output of 'emerge --info =app-emulation/xen-tools-4.1.0-r1',
 * the complete build log and the output of 'emerge -pqv =app-emulation/xen-tools-4.1.0-r1'.
 * The complete build log is located at '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/temp/environment'.
 * S: '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0'

>>> Failed to emerge app-emulation/xen-tools-4.1.0-r1


Portage 2.1.9.42 (default/linux/x86/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.21-xen i686)
=================================================================
System uname: Linux-2.6.21-xen-i686-Intel-R-_Xeon-TM-_CPU_3.60GHz-with-gentoo-1.12.14
Timestamp of tree: Mon, 11 Apr 2011 15:45:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r2, 3.1.3-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.1, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -fstack-protector-all"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -fstack-protector-all"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_CA en"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl acm berkdb bzip2 cli cracklib crypt cups curl curlwrappers cxx dri flask fortran ftp gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly offensive openmp pae pam pcre perl pppd pygrub python readline session snmp sse sse2 ssl sysfs tcpd threads unicode x86 xen xml xorg xsm zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_CA en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-12 18:46:21 UTC
Attach all relevant information. Do not point to external paste sites.
Comment 2 foxpa.ws 2011-04-12 18:59:13 UTC
That is all the relevant information. If you have something specific in mind please name it. That's not a paste site, that's my blog - where I pasted exactly what you'll find in my first post, less the emerge --info. I'm sure if you read it you'll find I've spared you nothing :)
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-08-31 23:23:20 UTC
seems this can be resolved by incorporating an explicit setting to python-2.7 in the setup or configure phase in the ebuild.
if ! [ eselect python list | grep "python2.7 *"] ; then \
     eselect python set python2.7 
fi

or so..
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2011-10-14 18:47:17 UTC
The initial description for this is quite adequate.  By nature of the sandbox, the ebuild can't be adjusted to fix a system state.  At best the ebuild could die with an elog message informing user to manually eselect python-2.7.