Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407693 - sys-libs/libcap-ng should pull in more recent dev-lang/swig to not fail building Python 3.x bindings
Summary: sys-libs/libcap-ng should pull in more recent dev-lang/swig to not fail build...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-10 15:57 UTC by Godfath3r
Modified: 2012-03-11 18:55 UTC (History)
2 users (show)

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


Attachments
Libcap-ng failure (file_407693.txt,26.75 KB, text/plain)
2012-03-10 16:02 UTC, Godfath3r
Details
diff (file_407693.txt,77 bytes, text/plain)
2012-03-10 16:16 UTC, Godfath3r
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Godfath3r 2012-03-10 15:57:18 UTC
It failed to emerge with the error I'm attaching. After removing from ebuild RESTRICT_PYTHON_ABIS="2.7-pypy-*" and put RESTRICT_PYTHON_ABIS="3.*" instead it compile smooth. 
Seems that some code is incompatible with python 3 or something.
Comment 1 Godfath3r 2012-03-10 16:01:02 UTC
skynet ~ # emerge --info
Portage 2.1.10.44 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 i686)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 09 Mar 2012 19:45:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.4-r1, 2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
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.13, 2.68
sys-devel/automake:       1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.3.4, 4.4.5, 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 x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula AdobeFlash-10.1 AdobeFlash-10.3 Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -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="ftp://files.gentoo.gr http://files.gentoo.gr ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apic apm apng arch_perfmon audiofile automount avahi bash-completion berkdb bts bzip2 cairo cdda cdr clflush cli cmov constant_tsc cracklib crypt css cx16 cx8 cxx dbus de device-mapper dri ds_cpl dtes64 dts dvd dvdr emerald encode est ffmpeg flac flexpriority fortran fpu fxsr gdbm gdu gedit gif gnome gnome-cd gnome-keyring gpm gstreamer gtk hal ht iconv ipv6 java joystick jpeg kdrive lahf_lm ldap libnotify lm mad mca mce mmx modules monitor mono mp3 mp4 mpeg msr mtp mtrr mudflap musepack nautilus ncurses networkmanager nls nptl nptlonly nsplugin ntfs nx ogg opengl openmp oss pae pam pat pbe pcre pdcm pebs pge png pni policykit pppd pse pse36 pulseaudio python qt3support readline samba sep session sndfile sqlite ss sse sse2 ssl ssse3 sysfs tcpd tiff tm tm2 tpr_shadow truetype tsc unicode v4l2 vcd vim-with-x vme vmx vnmi vorbis wavpack webkit win32codecs x86 xcb xorg xtpr 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon" 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" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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
Comment 2 Godfath3r 2012-03-10 16:02:13 UTC
Created attachment 304855 [details]
Libcap-ng failure
Comment 3 Godfath3r 2012-03-10 16:16:19 UTC
Created attachment 304859 [details]
diff
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-03-10 17:05:09 UTC
I can't reproduce this with dev-lang/python:3.2 and libcap-ng-0.6.5 or 0.6.6. Everytime the bindings build fine and install:

--- /usr/lib64/python3.2/
--- /usr/lib64/python3.2/site-packages/
>>> /usr/lib64/python3.2/site-packages/_capng.so
>>> /usr/lib64/python3.2/site-packages/capng.py
--- /usr/lib64/python2.7/
--- /usr/lib64/python2.7/site-packages/
>>> /usr/lib64/python2.7/site-packages/_capng.so
>>> /usr/lib64/python2.7/site-packages/capng.py
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-03-10 17:06:00 UTC
CCing python@ if they have a clue
Comment 6 Arfrever Frehtes Taifersar Arahesis 2012-03-10 17:55:25 UTC
Which version of dev-lang/swig do you use?
Comment 7 Godfath3r 2012-03-10 23:10:02 UTC
(In reply to comment #6)
> Which version of dev-lang/swig do you use?

It's dev-lang/swig-1.3.36

Is this it?
Comment 8 Godfath3r 2012-03-10 23:52:00 UTC
Well, updating swig to current version (2.0.4-r1) solved the problem. 
I compiles ok with RESTRICT_PYTHON_ABIS="2.7-pypy-*"
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2012-03-11 02:27:51 UTC
Sounds like we've got some bad juju with the depends. Something somewhere needs to depend on the newer swig.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2012-03-11 06:32:18 UTC
stop messing with the Importance: field, thanks
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-03-11 09:49:05 UTC
(In reply to comment #9)
> Sounds like we've got some bad juju with the depends. Something somewhere
> needs to depend on the newer swig.

I'm not sure if this is the correct place, but:

+  11 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> libcap-ng-0.6.6.ebuild:
+  Raise dev-lang/swig dependency wrt #407693 by "godfath3rr"
Comment 12 Godfath3r 2012-03-11 16:04:54 UTC
(In reply to comment #10)
> stop messing with the Importance: field, thanks

I didn't, I just changed the status to resolved->fixed. If it's not the case, please change it.
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2012-03-11 16:17:05 UTC
(In reply to comment #12)
> (In reply to comment #10)
> > stop messing with the Importance: field, thanks
> 
> I didn't, I just changed the status to resolved->fixed. If it's not the
> case, please change it.

https://bugs.gentoo.org/show_activity.cgi?id=407693 doesn't agree with you, but it's OK.   Just leave it to 'normal' next time.   Thanks again for reporting.
Comment 14 Arfrever Frehtes Taifersar Arahesis 2012-03-11 18:55:23 UTC
(In reply to comment #11)

> I'm not sure if this is the correct place, but:
> 
> +  11 Mar 2012; Samuli Suominen <ssuominen@gentoo.org>
> libcap-ng-0.6.6.ebuild:
> +  Raise dev-lang/swig dependency wrt #407693 by "godfath3rr"

Old versions of SWIG generate code incompatible with Python 3.
http://sourceforge.net/news/?group_id=1645&id=258423 says that support for Python 3.0 and 3.1 was introduced in SWIG 1.3.37.
Support for Python 3.2 was introduced in SWIG 2.0.4_pre12643.
I think that old versions of SWIG should block new versions of Python, instead of changing dependencies in SWIG reverse dependencies.