Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574670 - sys-libs/talloc-2.1.5-r1 with system python !=python2 - waf: except Utils.WafError, e: ^ SyntaxError: invalid syntax
Summary: sys-libs/talloc-2.1.5-r1 with system python !=python2 - waf: except Utils.Waf...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
: 574680 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-14 07:54 UTC by André Terpstra
Modified: 2016-02-14 16:47 UTC (History)
4 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 André Terpstra 2016-02-14 07:54:05 UTC
>>> Emerging (1 of 1) sys-libs/talloc-2.1.5-r1::gentoo                                                         
 * talloc-2.1.5.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                    [ ok ]
>>> Unpacking source...                                                                                        
>>> Unpacking talloc-2.1.5.tar.gz to /var/tmp/portage/sys-libs/talloc-2.1.5-r1/work                            
>>> Source unpacked in /var/tmp/portage/sys-libs/talloc-2.1.5-r1/work                                          
>>> Preparing source in /var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5 ...                        
 * Will copy sources from /var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5                          
 * abi_x86_64.amd64: copying to /var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5-abi_x86_64.amd64   
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * EPYTHON is unset while calling waf-utils. This most likely means that
 * the ebuild did not call the appropriate eclass function before calling waf.
 * Please ensure that python-single-r1_pkg_setup is called in pkg_setup().
 * 
CCFLAGS="-march=native -O2 -pipe" LINKFLAGS="-march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed" "/var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5/buildtools/bin/waf" --prefix=/usr --libdir=/usr/lib64  configure
Traceback (most recent call last):
  File "/var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5/buildtools/bin/waf", line 75, in <module>
    import Scripting
  File "/var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5/third_party/waf/wafadmin/Scripting.py", line 146
    except Utils.WafError, e:
                         ^
SyntaxError: invalid syntax
 * ERROR: sys-libs/talloc-2.1.5-r1::gentoo failed (configure phase):
 *   configure failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_configure
 *   environment, line 3524:  Called multilib-minimal_src_configure
 *   environment, line 1952:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2166:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1813:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1811:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  363:  Called multilib-minimal_abi_src_configure
 *   environment, line 1946:  Called multilib_src_configure
 *   environment, line 2387:  Called waf-utils_src_configure
 *   environment, line 4152:  Called die
 * The specific snippet of code:
 *           CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" "--prefix=${EPREFIX}/usr" "${libdir}" "$@" configure || die "configure failed";
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/talloc-2.1.5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/talloc-2.1.5-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/talloc-2.1.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/talloc-2.1.5-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5-abi_x86_64.amd64'
 * S: '/var/tmp/portage/sys-libs/talloc-2.1.5-r1/work/talloc-2.1.5'

>>> Failed to emerge sys-libs/talloc-2.1.5-r1, Log file:

>>>  '/var/tmp/portage/sys-libs/talloc-2.1.5-r1/temp/build.log'
Comment 1 André Terpstra 2016-02-14 07:54:31 UTC
OberonGentoo ~ # emerge --info
setlocale: unsupported locale setting
setlocale: unsupported locale setting
Portage 2.2.27 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.3.0, glibc-2.22-r1, 4.4.1-gentoo-APT-2015 x86_64)
=================================================================
System uname: Linux-4.4.1-gentoo-APT-2015-x86_64-Intel-R-_Core-TM-_i5-4570_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:    16353256 total,  14233232 free
KiB Swap:    4201464 total,   4201464 free
Timestamp of repository gentoo: Sun, 14 Feb 2016 07:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.4.3::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="nl_NL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 avx avx2 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fma3 fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit popcnt ppds python qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wayland widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="nl en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21 ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965 radeon radeonsi amdgpu" 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"
USE_PYTHON="2.7 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Andrew Church 2016-02-14 08:31:51 UTC
Looks like it needs to be run under python2.
Comment 3 Juergen Rose 2016-02-14 09:47:10 UTC
I have the same issue.
Comment 4 David Seifert gentoo-dev 2016-02-14 10:10:42 UTC
Give it another shot.

commit 9bf58646deab755cf46647f87163260126bb5477
Author: David Seifert <soap@gentoo.org>
Date:   Sun Feb 14 11:09:46 2016 +0100

    sys-libs/talloc: Add python-single-r1_pkg_setup() to pkg_setup()
    
    Gentoo-Bug: 574670
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-02-14 10:25:30 UTC
*** Bug 574680 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Church 2016-02-14 11:13:19 UTC
The package builds fine with that fix, thanks.
Comment 7 Juergen Rose 2016-02-14 13:05:26 UTC
(In reply to David Seifert from comment #4)
> Give it another shot.
> 
> commit 9bf58646deab755cf46647f87163260126bb5477
> Author: David Seifert <soap@gentoo.org>
> Date:   Sun Feb 14 11:09:46 2016 +0100
> 
>     sys-libs/talloc: Add python-single-r1_pkg_setup() to pkg_setup()
>     
>     Gentoo-Bug: 574670

Adding python-single-r1_pkg_setup (without parentheses) worked here.