Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491168 - dev-python/matplotlib-1.3.0[tk gtk] fails to build with python-2* and FEATURES="sandbox usersandbox" (with IndexError: list index out of range)
Summary: dev-python/matplotlib-1.3.0[tk gtk] fails to build with python-2* and FEATURE...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
Depends on:
Reported: 2013-11-13 14:17 UTC by Justin Lecher (RETIRED)
Modified: 2015-03-20 12:35 UTC (History)
5 users (show)

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

matplotlib-1.3.0:20131113-141133.log (matplotlib-1.3.0:20131113-141133.log,516.35 KB, text/plain)
2013-11-13 14:18 UTC, Justin Lecher (RETIRED)
einfo for matplotlib-1.4.2 (matplotlib-1.4.2-einfo.txt,6.20 KB, text/plain)
2015-03-09 10:42 UTC, Thomas Jürges
emerge output matplotlib-1.4.2 (matplotlib-1.4.2-emerge.txt,3.67 KB, text/plain)
2015-03-09 10:43 UTC, Thomas Jürges

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2013-11-13 14:17:34 UTC
 -lm -lpython3.3 -o /var/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python3_3/build/build/lib/matplotlib/backends/
             gtk3cairo: yes [version 3.6.8]
                gtkagg: yes [Gtk: 2.24.22 pygtk: 2.24.0]
Traceback (most recent call last):
  File "", line 145, in <module>
    result = package.check()
  File "/var/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python2_7/", line 1050, in check
    ext = self.get_extension()
  File "/var/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python2_7/", line 1070, in get_extension
  File "/var/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python2_7/", line 1304, in add_flags
    result = self.parse_tcl_config(tcl_lib_dir, tk_lib_dir)
  File "/var/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python2_7/", line 1164, in parse_tcl_config
    tcl_config, 'TCL_LIB_SPEC').split()[0][2:].strip()
IndexError: list index out of range

it hangs  and I need to kill the python process which runs build

$ einfo =dev-python/matplotlib-1.3.0
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.1-asneeded, glibc-2.17, 3.12.0-lh x86_64)
                         System Settings
System uname: Linux-3.12.0-lh-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16468064 total,   2934120 free
KiB Swap:    4194300 total,   4171676 free
Timestamp of tree: Wed, 13 Nov 2013 07:30:01 +0000
ld GNU gold (GNU Binutils 2.23.2) 1.11
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r4, 3.2.5-r3, 3.3.2-r2
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.1.2, 4.7.3-r1, 4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo sunrise bicatali betagarden dummy Neurogeek science last-hope
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g -Wimplicit-function-declaration"
CONFIG_PROTECT="/etc /usr/share/eselect/ /usr/share/gnupg/qualified.txt /usr/share/nano/ /var/lib/hsqldb /var/spool/munin-async/.ssh /var/spool/torque"
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="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g -Wenum-compare"
EMERGE_DEFAULT_OPTS=" -vt --keep-going --autounmask-write --autounmask --quiet-build=n"
FCFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g"
FEATURES="assume-digests binpkg-logs buildsyspkg ccache cgroup collision-protect compressdebug distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g"
GENTOO_MIRRORS=" /mnt/tmpfs/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j4 -l8"
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"
PORTDIR_OVERLAY="/local/overlays/sunrise-reviewed /local/overlays/bicatali /local/overlays/betagarden /local/overlays/dummy /local/overlays/neurogeek /local/overlays/sci /local/overlays/lh-overlay"
USE="X acl alsa amd64 avx bash-completion berkdb branding bzip2 cairo caps cli cracklib crypt cups cxx dbus dri fortran gdbm gif gmp gstreamer gtk iconv icu ipv6 jpeg jpeg2k ldap logrotate mmx mmxext modules mudflap multilib ncurses network-cron nls nptl nsplugin numa opengl openmp pam pcre pgo png pulseaudio qt3support readline session smp sse sse2 sse2_4way sse2check sse3 sse4 sse41 sse4_1 sse4a sse5 ssl ssse3 startup-notification tcpd threads tiff truetype unicode vaapi vdpau xinerama 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" DRACUT_MODULES="plymouth" 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" GRUB_PLATFORMS="efi-32 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 pdfimport scripting-javascript wiki-publisher nlpsolver" LINGUAS="en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm armeb" QEMU_USER_TARGETS="i386 x86_64 arm armeb" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"

                        Package Settings

dev-python/matplotlib-1.3.0 was built with the following:
USE="cairo gtk gtk3 tk -doc -examples -excel -fltk -latex -qt4 -test -wxwidgets" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_3"
CFLAGS="-O2 -pipe -ftracer -march=native -Wimplicit-function-declaration -fno-strict-aliasing"
CXXFLAGS="-O2 -pipe -ftracer -march=native -Wenum-compare -fno-strict-aliasing"
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-11-13 14:18:57 UTC
Created attachment 363196 [details]

Comment 2 Justin Lecher (RETIRED) gentoo-dev 2013-11-20 11:36:32 UTC
This is reproducable. I tried it douzens of times with different settings (USE combinations ...) but the only thing which fixes it, is to disable the sandbox. Any suggestion what to test more or how to debug this?
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-12-09 12:30:04 UTC
you need USE="tk gtk" with any other combination for this bug. USE="tk -gtk gtk3" is fine.
Comment 4 Thomas Jürges 2015-03-09 10:41:39 UTC
This is just to confirm the issue and the workaround:

I can reproduce every time that emerging dev-python/matplotlib-1.4.2 hangs when MAKEOPTD="-j4" is set:

mac ~ # genlop -t matplotlib | tail
 * dev-python/matplotlib

     Tue Feb 24 20:34:21 2015 >>> dev-python/matplotlib-1.3.0-r1
       merge time: 34 minutes and 14 seconds.

And I can confirm that emerging the same ebuild with MAKEOPTS="-j1" works as expected.
Comment 5 Thomas Jürges 2015-03-09 10:42:46 UTC
Created attachment 398498 [details]
einfo for matplotlib-1.4.2
Comment 6 Thomas Jürges 2015-03-09 10:43:17 UTC
Created attachment 398500 [details]
emerge output matplotlib-1.4.2
Comment 7 Thomas Jürges 2015-03-09 10:45:00 UTC
Sorry, I screwed this up.  My posts belong to bug 522840.  I am sorry for the noise.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2015-03-09 11:03:19 UTC
For me it is fixed in 1.4.2.
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2015-03-20 12:35:29 UTC
Please reopen if this problem still exists with version 1.4