-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

thanks for your bug-report.

attached is a quick fix for the problem.
i haven't pushed it to the vcs yet, as the changes for the 0.93.3-1
upload have not been pushed yet by piem, and i want to keep causality in
the git history :-)


fgamsdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8Kp7UACgkQkX2Xpv6ydvSMsACg2XJLYcpepZCeh9sj/51An4ZU
3jsAn2jUXhvocSsf2XMgi0cibVL+0jh7
=5Hny
-----END PGP SIGNATURE-----
From 9e1930555261fc417473ceaefb870aec7e3bb770 Mon Sep 17 00:00:00 2001
From: IOhannes m zmoelnig <zmoel...@umlauto.umlaeute.mur.at>
Date: Sun, 8 Jan 2012 19:48:01 +0100
Subject: [PATCH] Only remove assets from gem-doc if it's there (Closes:
 #655048)

on the buildbots, binary:all packages are not built, so there is no debian/gem-doc directory
---
 debian/rules |   32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/debian/rules b/debian/rules
index 61fb45a..36bed1e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 #export DH_VERBOSE=1
 
 archconfflags := \
-        --prefix=/usr \
+	--prefix=/usr \
 	--with-pd=/usr/include/pd \
 	--enable-mmx \
 	--without-ALL \
@@ -41,37 +41,39 @@ override_dh_auto_test:
 override_dh_install:
 	dh_install
 	# remove libtool files, they are not needed
-	find $(CURDIR)/debian/gem-extra/usr/lib/ -name '*.la'  -delete
+	find debian/gem-extra/usr/lib/ -name '*.la'  -delete
 	# remove some assets
-	find $(CURDIR)/debian/gem-doc/usr/share/ -name '*.ttf' -delete
-	find $(CURDIR)/debian/gem-doc/usr/share/ -name '*.avi' -delete
-	find $(CURDIR)/debian/gem-doc/usr/share/ -name '*.mov' -delete
-	find $(CURDIR)/debian/gem-doc/usr/share/ -name '*.mpg' -delete
+	if [ -d debian/gem-doc ]; then \
+	 find debian/gem-doc/usr/share/ -name '*.ttf' -delete; \
+	 find debian/gem-doc/usr/share/ -name '*.avi' -delete; \
+	 find debian/gem-doc/usr/share/ -name '*.mov' -delete; \
+	 find debian/gem-doc/usr/share/ -name '*.mpg' -delete; \
+	fi
 	# the following COPYING only contains license information for vera.ttf
 	# which is not included in the Debian package
-	rm $(CURDIR)/debian/gem-doc/usr/share/gem/examples/data/COPYING.txt
+	test -d debian/gem-doc ]; then rm debian/gem-doc/usr/share/gem/examples/data/COPYING.txt; fi
 	# remove extra LICENSE files for gem-extra
-	rm $(CURDIR)/debian/gem-extra/usr/lib/pd/extra/pix_mano/LICENSE.txt
-	rm $(CURDIR)/debian/gem-extra/usr/lib/pd/extra/pix_drum/LICENSE.txt
+	rm debian/gem-extra/usr/lib/pd/extra/pix_mano/LICENSE.txt
+	rm debian/gem-extra/usr/lib/pd/extra/pix_drum/LICENSE.txt
 
 # calculate proper dependencies (for .pd_linux files) 
 override_dh_shlibdeps:
 	dh_shlibdeps
-	find $(CURDIR)/debian/gem -name "*.pd_linux" -exec \
+	find debian/gem -name "*.pd_linux" -exec \
 		dpkg-shlibdeps -Tdebian/gem.substvars {} +
-	find $(CURDIR)/debian/gem-extra -name "*.pd_linux" -exec \
+	find debian/gem-extra -name "*.pd_linux" -exec \
 		dpkg-shlibdeps -Tdebian/gem-extra.substvars {} +
 
 override_dh_strip:
 	dh_strip
-	find $(CURDIR)/debian -name "*.pd_linux" -exec \
-	        strip --remove-section=.comment --remove-section=.note --strip-unneeded {} +
+	find debian -name "*.pd_linux" -exec \
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded {} +
 
 
 override_dh_fixperms:
 	dh_fixperms -Xpd-gem
-	chmod 0755 $(CURDIR)/debian/gem/usr/bin/pd-gem
-	find $(CURDIR)/debian -name '*.pd_linux' -exec \
+	chmod 0755 debian/gem/usr/bin/pd-gem
+	find debian -name '*.pd_linux' -exec \
 		chmod 0644 {} +
 
 override_dh_compress:
-- 
1.7.8.2

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to