Package: python-matplotlib Version: 0.87.7-0.1 Severity: grave Tags: patch As of 0.87.7-0.1, matplotlib on ppc, mipsel, mips, arm, sparc, s390, alpha built against the numpy rc and therefore failed to build the numpy extensions.
20:53 < mhy> hi, there's a problem with python-matplotlib. Those architectures (most: ppc, mipsel, mips, arm, sparc, s390, alpha) which tried to build against python-numpy 1.0rc* failed to build the numpy extensions and is therefore pretty useless; a binNMU will fix it (tested rebuilding on PPC here); do I need to file a bug / mail debian-release to get one done? 20:53 < waldi> mhy: the build failed silent? 20:53 < mhy> waldi: yes (not my package...) 20:54 < mhy> waldi: it's valid for upstream matplotlib to only build the numeric or numarray extensions; I'd have thought the debian packaging should check that all three have been built though 20:55 < mhy> especially as numpy is the default, and hence it breaks by default 20:58 < vorlon> mhy: yes, that should get a sourceful bugfix for the problem of the silent failure 20:59 < mhy> vorlon: right, I'll file a bug and try and work up a patch (a manifest check or something) Patch is attached which checks for failure of any of the three modules to build. I intend to ask someone to NMU this in a couple of days if this isn't fixed by then as I really need a fixed matplotlib in etch. Thanks, Mark -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: powerpc (ppc64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-2-powerpc64 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages python-matplotlib depends on: ii dvipng 1.9-1+etch.1 convert DVI files to PNG graphics ii python 2.4.4-2 An interactive high-level object-o ii python-central 0.5.12 register and build utility for Pyt ii python-dateutil 1.1-1 powerful extensions to the standar ii python-dev 2.4.4-2 Header files and a static library ii python-gtk2 2.8.6-8 Python bindings for the GTK+ widge ii python-matplotlib-data 0.87.7-0.1 python based plotting system (data ii python-numeric-ext 24.2-7 Extension modules for Numeric Pyth ii python-numpy 1:1.0.1-1 Numerical Python adds a fast array ii python-tz 2006p-0.1 Python version of the Olson timezo python-matplotlib recommends no packages. -- no debconf information
diff -Naur matplotlib-0.87.7-orig/debian/changelog matplotlib-0.87.7/debian/changelog --- matplotlib-0.87.7-orig/debian/changelog 2007-02-21 21:30:22.000000000 +0000 +++ matplotlib-0.87.7/debian/changelog 2007-02-21 21:33:07.000000000 +0000 @@ -1,3 +1,10 @@ +matplotlib (0.87.7-0.2) unstable; urgency=low + + * Add check to debian/rules to prevent builds silently failing to build one + of the plugins. Closes: #xxxxxx + + -- Mark Hymers <[EMAIL PROTECTED]> Wed, 21 Feb 2007 20:35:47 +0000 + matplotlib (0.87.7-0.1) unstable; urgency=medium * Remove build dependency on python-numpy-ext. diff -Naur matplotlib-0.87.7-orig/debian/rules matplotlib-0.87.7/debian/rules --- matplotlib-0.87.7-orig/debian/rules 2007-02-21 21:30:22.000000000 +0000 +++ matplotlib-0.87.7/debian/rules 2007-02-21 21:30:02.000000000 +0000 @@ -62,6 +62,33 @@ -d $(CURDIR)/debian/$(p)/usr/lib/python$*/site-packages/ --no-compile #dh_install -p$(p) lib/dateutil usr/lib/python$*/site-packages/ #dh_install -p$(p) lib/pytz usr/lib/python$*/site-packages/ + + # Check that we have built all of the plugins; FTBFS if not; this + # is better than having packages silently fail to build on the + # autobuilders. + # The plugin abbreviations are: + # ns_ = numpy, na_ = numarray, nc_ = numeric + for v in $(PYVERS); do \ + for p in na ns nc; do \ + for f in transforms.so image.so cntr.so nxutils.so; do \ + # Check for these four files for each plugin: \ + # _na_transforms.so, _na_image.so, _na_cntr.so, _na_nxutils.so \ + if test ! -f debian/python-matplotlib/usr/lib/python$$v/site-packages/matplotlib/_$${p}_$${f}; then \ + echo "Missing plugin file _$${p}_$${f}: Failing build"; \ + exit 1; \ + fi \ + done \ + # Also check for the backend plugins: \ + # e.g. backends/_na_backend_agg.so \ + for f in agg.so gdk.so; do \ + if test ! -f debian/python-matplotlib/usr/lib/python$$v/site-packages/matplotlib/backends/_$${p}_backend_$${f}; then \ + echo "Missing backend file _$${p}_backend_$${f}: Failing build"; \ + exit 1; \ + fi \ + done \ + done \ + done + touch $@ install-indep: build-indep