Created attachment 300241 [details] build log When python-3 is the active interpreter, sys-libs/tdb-1.2.9 fails to configure: >>> Configuring source in /var/tmp/portage/sys-libs/tdb-1.2.9/work/tdb-1.2.9 ... CCFLAGS="-march=native -O2 -pipe -ggdb" LINKFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" "/var/tmp/portage/sys-libs/tdb-1.2.9/work/tdb-1.2.9/buildtools/bin/waf" --prefix=/usr --libdir=/usr/lib64 --disable-python configure /var/tmp/portage/sys-libs/tdb-1.2.9/work/tdb-1.2.9/wscript: error: Traceback (most recent call last): File "/var/tmp/portage/sys-libs/tdb-1.2.9/work/tdb-1.2.9/buildtools/bin/.waf3-1.5.19-64e3c2006c565edf6967cdbf2812184e/wafadmin/Utils.py", line 199, in load_module exec(compile(code,file_path,'exec'),module.__dict__) File "/var/tmp/portage/sys-libs/tdb-1.2.9/work/tdb-1.2.9/wscript", line 16, in <module> import wafsamba, samba_dist, Options, Logs File "./buildtools/wafsamba/wafsamba.py", line 28, in <module> import samba_dist File "./buildtools/wafsamba/samba_dist.py", line 134 except Exception, e: Portage 2.1.10.44 (hardened/linux/amd64, gcc-4.5.3-asneeded, glibc-2.13-r4, 3.1.5-hardened-libre x86_64) ================================================================= System uname: Linux-3.1.5-hardened-libre-x86_64-06-17-with-gentoo-2.0.3 Timestamp of tree: Sun, 29 Jan 2012 03:15:01 +0000 app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.1.4-r3 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.8.2 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.11.1 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo sunrise kensington qting-edge x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control" 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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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" CXXFLAGS="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch protect-owned sandbox sfperms split-elog split-log splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/" LANG="en_AU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="en" 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="/var/lib/layman/sunrise /var/lib/layman/kensington /var/lib/layman/qting-edge /usr/local/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="aac acl acpi alsa amd64 apache2 apng asf background bash-completion bazaar berkdb bzip2 cleartype cli consolekit corefonts cracklib crashreporter crypt cups cxx dbus deblob dri dvd ebook exceptions fam ffmpeg flac fontconfig gdbm git glib gmp gpm handbook hardened iconv ipv6 ithreads jit jpeg justify kde kontact lastfm less libnotify mikmod mmx mng modules mp3 mp4 mpeg mta mudflap multilib ncurses networkmanager nls nptl nptlonly ogg opengl openmp optimized-qmake pam pax_kernel pcap pcre phonon player png policykit pppd private-headers qt3support qt4 readline rss samba semantic-desktop session sftp sha512 smbclient spell sse sse2 ssl ssse3 startup-notification suhosin svg symlink sysfs tcpd theora threads threadsafe tiff truetype udev unicode upnp uuid vhosts vorbis webm xft xorg xscreensaver xvfb 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="*" APACHE2_MODULES="dav alias auth_basic authn_default auth_digest authn_file authz_host authz_user autoindex cgi deflate dir filter headers include info log_config mime mime_magic negotiation proxy proxy_http rewrite speling status 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" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Description of the change to "except" syntax between Python 2 and Python 3: http://stackoverflow.com/questions/2535760/python-try-except-comma-vs-as-in-except Source of problem in upstream git repository (assuming tdb uses samba's version of waf?): http://gitweb.samba.org/?p=samba.git;a=blob;f=buildtools/wafsamba/samba_dist.py;h=a11a37cc1bf7595bddc531587aeebc38b3bd6cf9;hb=HEAD#l134 Possibly related upstream bug report (vague, no detail): https://bugzilla.samba.org/show_bug.cgi?id=8617 Temporary workaround (use Python 2 for the build): eselect python list eselect python set {1... or whatever python2.x is} emerge -q1 tdb eselect python set {2... or whatever python3.x is}
Created attachment 302987 [details, diff] ebuild patch rule of thumb; this indicates the package doesn't support python3. There is a change from prior ebuilds, localhost tdb # eselect python show python3.1 localhost tdb # emerge =sys-libs/tdb-1.2.1-r1 >>> Emerging (1 of 1) sys-libs/tdb-1.2.1-r1 >>> Installing (1 of 1) sys-libs/tdb-1.2.1-r1 tdb-1.2.9 does indeed fail with python 3.1 3.2. A fix is to make the setting to python 2 unconditional in pkg_setup() localhost tdb # emerge =sys-libs/tdb-1.2.9 >>> Emerging (1 of 1) sys-libs/tdb-1.2.9 >>> Installing (1 of 1) sys-libs/tdb-1.2.9
Also need to modify: PYTHON_DEPEND="python? 2" -> PYTHON_DEPEND="2" or similar.
(In reply to comment #3) PYTHON_DEPEND="python? 2" PYTHON_BDEPEND="2" But PYTHON_BDEPEND is still not supported in gentoo-x86, so use: PYTHON_DEPEND="python? 2" DEPEND="=dev-lang/python-2*"
+ 08 Mar 2012; Patrick Lauer <patrick@gentoo.org> tdb-1.2.9.ebuild: + Build fix for #401291