Hi,

Attached is the diff for my matplotlib 0.87.7-0.2 NMU.

Greetings
Martin

-- 
Martin Zobel-Helas                      GPG Key-ID:    0x5d64f870
Debian Developer                        eMail Privat:  [EMAIL PROTECTED]
Debian Stable Release Manager           eMail Debian:  [EMAIL PROTECTED]
Debian Listmaster                       jabber ID:     [EMAIL PROTECTED]
diff -u matplotlib-0.87.7/debian/changelog matplotlib-0.87.7/debian/changelog
--- matplotlib-0.87.7/debian/changelog
+++ matplotlib-0.87.7/debian/changelog
@@ -1,3 +1,12 @@
+matplotlib (0.87.7-0.2) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Using patch provided by Mark Hymers <[EMAIL PROTECTED]>
+    - Add check to debian/rules to prevent builds silently failing to build
+      one of the plugins.  (Closes: #411925)
+
+ -- Martin Zobel-Helas <[EMAIL PROTECTED]>  Wed, 28 Feb 2007 10:39:43 +0100
+
 matplotlib (0.87.7-0.1) unstable; urgency=medium
 
   * Remove build dependency on python-numpy-ext.
diff -u matplotlib-0.87.7/debian/rules matplotlib-0.87.7/debian/rules
--- matplotlib-0.87.7/debian/rules
+++ matplotlib-0.87.7/debian/rules
@@ -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
diff -u matplotlib-0.87.7/debian/copyright matplotlib-0.87.7/debian/copyright
--- matplotlib-0.87.7/debian/copyright
+++ matplotlib-0.87.7/debian/copyright
@@ -1,5 +1,5 @@
 This package was debianized by Vittorio Palmisano <[EMAIL PROTECTED]> on
-Sun, 07 Jan 2007 23:00:01 +0100
+Wed, 28 Feb 2007 09:47:13 +0000
 
 It was downloaded from http://matplotlib.sourceforge.net/
 

Reply via email to