Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322347 - dev-python/matplotlib-0.99.1.1-r2 w/ USE="doc" fails to build Matplotlib.pdf
Summary: dev-python/matplotlib-0.99.1.1-r2 w/ USE="doc" fails to build Matplotlib.pdf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 09:06 UTC by Helmut Jarausch
Modified: 2010-06-03 23:17 UTC (History)
4 users (show)

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


Attachments
modified ebuild which does work with USE=doc (matplotlib-0.99.1.1-r2.ebuild,5.56 KB, text/plain)
2010-06-01 09:07 UTC, Helmut Jarausch
Details
ebuild diff (matplotlib-0.99.1.1-r2.ebuild.diff,632 bytes, patch)
2010-06-01 09:48 UTC, Helmut Jarausch
Details | Diff
build log (matplotlib-build.log,1.94 KB, text/plain)
2010-06-01 14:31 UTC, Helmut Jarausch
Details
build.log for 0.99.1.1-r2. (sorry) (matplotlib_build.log,170.79 KB, text/plain)
2010-06-02 08:41 UTC, Helmut Jarausch
Details
Wrong test for 'Matplotlib.pdf' (matplotlib-0.99.1.1-r2.ebuild.diff,468 bytes, patch)
2010-06-03 12:40 UTC, Electrion Mycene
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2010-06-01 09:06:44 UTC
Trying to emerge dev-python/matplotlib-0.99.1.1-r2  with USE=doc fails (as it did for 0.99.1.1-r1). The log just tells you it couldn't find Matplotlib.pdf

Unfortunately I don't fully understand the ebuild's logic regarding Python's version.
Here I have Python-2.6.5-r2 and Python-3.1.2-r3 installed but I've eselected
python2.6 .

The attached cut down ebuild does work here.


Reproducible: Always
Comment 1 Helmut Jarausch 2010-06-01 09:07:55 UTC
Created attachment 233759 [details]
modified ebuild which does work with USE=doc
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-06-01 09:41:47 UTC
Please, post ebuild diffs/patches instead of full ebuilds because it's much easier to see what you changed then.
Comment 3 Helmut Jarausch 2010-06-01 09:48:40 UTC
Created attachment 233765 [details, diff]
ebuild diff
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-01 13:54:57 UTC
The proposed change assumes an already installed matplotlib, and does not build html docs.
Please attach your build.log with the portage version.
Thanks.
Comment 5 Helmut Jarausch 2010-06-01 14:31:12 UTC
emerge --info 'dev-python/matplotlib' 
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.1-r0, 2.6.34-ck x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-ck-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 01 Jun 2010 13:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.7b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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="-mtune=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j4"
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 /usr/local/portage/layman/java-overlay /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 atm avahi berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp gnome gpm gtk gtk2 hal iconv ipv6 jpeg kde lapack lcms libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt qt3support qt4 readline reflection sdl session smp spell spl sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid 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="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/matplotlib-0.99.1.1-r1 was built with the following:
USE="cairo doc gtk (multilib) qt4 tk -examples -excel -fltk -latex -traits -wxwidgets" 
Comment 6 Helmut Jarausch 2010-06-01 14:31:56 UTC
Created attachment 233779 [details]
build log
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-01 15:35:00 UTC
(In reply to comment #6)
> Created an attachment (id=233779) [details]
> build log

This is an older build log for 0.98.5.2. Could you post the newest one?
Thanks.

Comment 8 Helmut Jarausch 2010-06-02 08:41:46 UTC
Created attachment 233827 [details]
build.log for 0.99.1.1-r2. (sorry)
Comment 9 Denilson Sá Maia 2010-06-02 16:19:43 UTC
Just to let you know I was hit by this bug. It happens with the currently-stable 0.99.1.1-r1 version. Thus, please don't forget to also fix the stable version.
Comment 10 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-02 19:52:50 UTC
We are investigating. It seems somewhat related from an incompatibility between python-2.6.5* and python-dateutil.
Comment 11 Electrion Mycene 2010-06-03 12:39:19 UTC
I'm not sure my case is related as while emerging matplotlib with the "doc" USE-flag, it actually process the doc with sphinx and then die as it couldn't find Matplotlib.pdf

I think the test for Matplotlib.pdf in the ebuild is wrong:
[[ -e build/latex/Matplotlib.pdf ]] && die "doc generation failed"
should be replaced by:
[[ -e build/latex/Matplotlib.pdf ]] || die "doc generation failed"

as the die statement should be executed if the test is false

Comment 12 Electrion Mycene 2010-06-03 12:40:37 UTC
Created attachment 233961 [details, diff]
Wrong test for 'Matplotlib.pdf'
Comment 13 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-03 16:32:54 UTC
(In reply to comment #12)
> Wrong test for 'Matplotlib.pdf'

Yes the test is wrong. However the main failure here is this one:

python2.6: CXX/cxx_extensions.cxx:1320: virtual Py::PythonExtensionBase::~PythonExtensionBase(): Assertion `ob_refcnt == 0' failed.

This seems to be due to an incompatibility of some of our python patches introduced in python-gentoo-patches-2.6.5-r1 with python-dateutil.

Comment 14 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-03 19:14:36 UTC
The doc generation failed because of an assert left by a -DNDEBUG flag. It is not so clear which example failed, but it would be good to report upstream if anyone is willing to dig in.

+*matplotlib-0.99.3 (03 Jun 2010)
+
+  03 Jun 2010; Sébastien Fabbro <bicatali@gentoo.org>
+  matplotlib-0.99.1.1-r1.ebuild, -matplotlib-0.99.1.1-r2.ebuild,
+  +matplotlib-0.99.3.ebuild:
+  Version bump. Also forced -DNDEBUG to fix doc generation (bug #322347)
+
Comment 15 François Bissey 2010-06-03 22:38:01 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Wrong test for 'Matplotlib.pdf'
> 
> Yes the test is wrong. However the main failure here is this one:
> 
> python2.6: CXX/cxx_extensions.cxx:1320: virtual
> Py::PythonExtensionBase::~PythonExtensionBase(): Assertion `ob_refcnt == 0'
> failed.
> 
> This seems to be due to an incompatibility of some of our python patches
> introduced in python-gentoo-patches-2.6.5-r1 with python-dateutil.
> 
Is there a bug tracking this? We are have been seeing that kind of stuff
between python-2.6.4 and 2.6.5 in sage. A -DNDEBUG just evaporated leading
to runtime failures. And possibly it may be a lead for my own matplotlib
bug. 
Comment 16 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-03 23:17:21 UTC
(In reply to comment #15)

> > 
> Is there a bug tracking this? We are have been seeing that kind of stuff
> between python-2.6.4 and 2.6.5 in sage. A -DNDEBUG just evaporated leading
> to runtime failures. And possibly it may be a lead for my own matplotlib
> bug. 
> 

See bug #242160.