Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408243 - media-tv/xbmc-11.0_rc1 with python3.2 - src_configure(): File "<string>", line 1, in <module> TypeError: unorderable types: str() >= float()
Summary: media-tv/xbmc-11.0_rc1 with python3.2 - src_configure(): File "<string>", lin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Xbox project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 00:07 UTC by mingdao
Modified: 2012-03-23 15:22 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/media-tv/xbmc-11.0_rc1/temp/build.log (build.log,20.81 KB, text/plain)
2012-03-15 00:07 UTC, mingdao
Details
Ebuild fix to choose python-2 during build process (python2-fix.patch,837 bytes, patch)
2012-03-15 17:13 UTC, Ian Stakenvicius (RETIRED)
Details | Diff
xbmc-11.0_rc1.ebuild (xbmc-11.0_rc1.ebuild,5.60 KB, text/plain)
2012-03-23 15:20 UTC, mingdao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mingdao 2012-03-15 00:07:02 UTC
Created attachment 305399 [details]
/var/tmp/portage/media-tv/xbmc-11.0_rc1/temp/build.log

mingdao@HTPC ~ $ emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-AMD_Athlon-tm-_II_X3_445_Processor-with-gentoo-2.0.3
Timestamp of tree: Mon, 12 Mar 2012 19:45:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US"
MAKEOPTS="-j5"
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=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 apng berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gd gdbm gdu gif gpm iconv jpeg lcms libnotify mad matroska mce misalignsse mmx mng modules mp3 mp4 mpeg mtrr mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pae pango pcre pdf png policykit ppds pppd qt3support readline sdl session spell sse sse2 sse4a ssl startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid 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 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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
Comment 1 mingdao 2012-03-15 00:08:43 UTC
The only thing I see in the build.log is:
configure: error: this package requires Python >= 2.4.

However:
mingdao@HTPC ~ $ eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-15 01:22:00 UTC
Simply don't set python 3.2 as your "system" python for now.
Comment 3 mingdao 2012-03-15 14:49:24 UTC
Builds fine with python2.7 ... thanks.
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2012-03-15 17:13:16 UTC
Created attachment 305535 [details, diff]
Ebuild fix to choose python-2 during build process

Tested this fix today; had Python-3.1 eselected instead of 3.2, but I expect it would have failed without this anyways.

Patch is against the 11.0_rc1 ebuild.
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2012-03-15 19:04:14 UTC
Note, this just fixes compilation -- i have no idea what will happen at runtime, but I expect that there will be issues, given all the scripts seem to use '/usr/bin/python' shebangs, instead of '/usr/bin/python2' (or the specific python2 flavour xbmc was compiled against)
Comment 6 SpanKY gentoo-dev 2012-03-19 00:04:25 UTC
looks like people are making commits without talking to anyone

http://sources.gentoo.org/media-tv/xbmc/xbmc-9999.ebuild?r1=1.102&r2=1.103
Comment 7 Ian Stakenvicius (RETIRED) gentoo-dev 2012-03-19 14:03:55 UTC
Hmm, yes.  

That PYTHON_DEPEND in -9999 should change to "2" though; given that upstream still (only) supports python-2.4 ...
Comment 8 SpanKY gentoo-dev 2012-03-23 05:00:02 UTC
maybe ... but seeing as we don't have python-2.4 in the tree, and no one really cares about python-2.5 anymore, it's kind of a moot point ...
Comment 9 mingdao 2012-03-23 15:20:43 UTC
Created attachment 306429 [details]
xbmc-11.0_rc1.ebuild
Comment 10 mingdao 2012-03-23 15:22:53 UTC
(In reply to comment #5)
> Note, this just fixes compilation -- i have no idea what will happen at
> runtime, but I expect that there will be issues, given all the scripts seem
> to use '/usr/bin/python' shebangs, instead of '/usr/bin/python2' (or the
> specific python2 flavour xbmc was compiled against)

I replied to this and attached the ebuild in the above comment. When I hit submit it didn't have this reply. I don't know how to use this bug tracker. Anyway...

I've built it with the above attachment with python2.7 selected as default, and with python3.2 selected as default. It runs either way. Currently using it with python3.2 set as default.