Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372737 - sys-libs/tevent fails to build with Python 3
Summary: sys-libs/tevent fails to build with Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 00:32 UTC by Andreis Vinogradovs ( slepnoga )
Modified: 2012-03-08 06:26 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 Andreis Vinogradovs ( slepnoga ) 2011-06-24 00:32:47 UTC
sys-libs/tevent use waf build system, but ebuild  does not use the waf-utils eclass. If selected pyton 3 as system python  waf not work and crash witch a message:
>> Configuring source in /var/tmp/portage/sys-libs/tevent-0.9.11/work/tevent-0.9.11 ...
 * econf: updating tevent-0.9.11/lib/replace/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating tevent-0.9.11/lib/replace/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --sysconfdir=/etc/samba --localstatedir=/var
Traceback (most recent call last):
  File "./buildtools/bin/waf", line 157, in <module>
    import Scripting
  File "/var/tmp/portage/sys-libs/tevent-0.9.11/work/tevent-0.9.11/buildtools/bin/.waf3-1.5.19-d825ca58092f19b61518932e7b93eaa3/wafadmin/Scripting.py", line 5, in <module>
    import Utils,Configure,Build,Logs,Options,Environment,Task
  File "/var/tmp/portage/sys-libs/tevent-0.9.11/work/tevent-0.9.11/buildtools/bin/.waf3-1.5.19-d825ca58092f19b61518932e7b93eaa3/wafadmin/Configure.py", line 7, in <module>
    import Environment,Utils,Options,Logs
  File "/var/tmp/portage/sys-libs/tevent-0.9.11/work/tevent-0.9.11/buildtools/bin/.waf3-1.5.19-d825ca58092f19b61518932e7b93eaa3/wafadmin/Environment.py", line 6, in <module>
    import Logs,Options,Utils
  File "/var/tmp/portage/sys-libs/tevent-0.9.11/work/tevent-0.9.11/buildtools/bin/.waf3-1.5.19-d825ca58092f19b61518932e7b93eaa3/wafadmin/Options.py", line 27, in <module>
    if default_jobs<1:
TypeError: unorderable types: str() < int()
 * ERROR: sys-libs/tevent-0.9.11 failed (configure phase):



Reproducible: Always

Steps to Reproduce:
1. select python 3 witch eselect
2.emerge tevent
3.
Actual Results:  
waf not work witch python 3.2
Comment 1 Andreis Vinogradovs ( slepnoga ) 2011-06-24 00:34:10 UTC
emerge --info =sys-libs/tevent-0.9.11
Portage 2.2.0_alpha41 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r2, 2.6.39-gentoo-r1-1.04-xen x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r1-1.04-xen-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 23 Jun 2011 02:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo sunrise alexxy x11 crg my-dev rion
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.tups.lv/source"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--sort-common"
LINGUAS="ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
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="/var/lib/layman/sunrise /var/lib/layman/alexxy /var/lib/layman/x11 /var/lib/layman/crg /home/slep/slep/portage /home/slep/rion"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi addressbook alsa amd64 apng assistant avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdr chm cli consolekit cracklib crypt cups cvs cxx dbus declarative device-mapper djvu dri dts dvd dvdr ebook emboss encode exif extras fam fax fbcon festival ffmpeg firefox flac fontconfig fortran fuse gdbm gdu gif gnome-keyring gphoto2 gpm gstreamer gtk hpijs iconv icu idn inotify ipv6 javascript jpeg kde kipi lame laptop lcms ldap ldb libmpeg2 libnl libnotify lm_sensors lxc lzma lzo mad mmap mmx mmxext mng mp3 mp4 mpeg mudflap multilib multimedia mysql natspec ncurses network nfs nls nptl nptlonly nsplugin ofx ogg opengl openmp pam pango pch pcre pdf perl phonon plasma plugins pmu png policykit ppds pppd python qt3support qt4 rdesktop readline reports ris rle samba sasl scanner sdl semantic-desktop servletapi session spell spice sql sqlite sse sse2 ssl ssse3 startup-notification svg sysfs taglib tcpd threads thunar tiff truetype udev unicode usb v4l2 vhost-net vim-syntax vnc vorbis vpx webkit wicd x264 xattr xcb xcomposite xen xinerama xml xmlpatterns xorg xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="intel-hda" 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNEL="linux" LINGUAS="ru" NETBEANS_MODULES="cnd ergonomics apisupport dlight enterprise ide php harness java profiler websvccommon" PHP_TARGETS="php5-2 php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Maxim Koltsov (RETIRED) gentoo-dev 2011-06-24 21:03:29 UTC
This is caused by an error in waf sources (wafadmin/Options.py). Simpliest fix is (line 26):
-default_jobs=os.environ.get('JOBS',-1)
+default_jobs=int(os.environ.get('JOBS',-1))
Patrick, please find out how to patch in-sources waf and report the issue upstream.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-24 21:35:51 UTC
This package has old version of waf. Newer versions of waf already support Python 3. A simpler solution would be to call 'python_set_active_version 2'.
Comment 4 Maxim Koltsov (RETIRED) gentoo-dev 2011-06-25 07:23:56 UTC
(In reply to comment #3)
> This package has old version of waf. Newer versions of waf already support
> Python 3. A simpler solution would be to call 'python_set_active_version 2'.

The point is not in Python3 support, but in bug which is not seen on Python2, because it allows comparing 'str' and 'int'. Is it fixed in new version?
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-25 16:40:52 UTC
(In reply to comment #4)

http://code.google.com/p/waf/source/detail?r=6880
Comment 6 Maxim Koltsov (RETIRED) gentoo-dev 2011-06-26 01:52:02 UTC
(In reply to comment #5)

Ok, then do what you think is right.
Comment 7 Ewoud Kohl van Wijngaarden 2011-06-28 10:05:11 UTC
In bug #373311 I added a tevent-0.9.12 ebuild which at least works around it by following Afrevers advice from comment #3.
Comment 8 Andreis Vinogradovs ( slepnoga ) 2011-06-28 16:42:58 UTC
add #373311 to depend
Comment 9 Víctor Ostorga (RETIRED) gentoo-dev 2011-06-28 17:27:26 UTC
By now, bumped tevent to 0.9.12 and the ebuild depends explicitly on python 2. Will wait until upstream updates waf
Comment 10 Patrick Lauer gentoo-dev 2012-03-08 06:26:05 UTC
Fixed since 0.9.12 as far as I can tell, can't reproduce with .15, closing