tags 752351 + pending
thanks

Dear maintainer,

I've prepared an NMU for pdl (versioned as 1:2.007-2.1) using gregor's 
patch and uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.

Regards,
    dam
diff -Nru pdl-2.007/debian/changelog pdl-2.007/debian/changelog
--- pdl-2.007/debian/changelog	2013-11-12 15:43:07.000000000 +0200
+++ pdl-2.007/debian/changelog	2014-08-04 10:54:29.000000000 +0300
@@ -1,3 +1,16 @@
+pdl (1:2.007-2.1) unstable; urgency=medium
+
+  [ gregor herrmann ]
+  * Non-maintainer upload.
+  * Fix "hardcodes /usr/lib/perl5":
+    - rename files in debian/ which contain "/usr/lib/perl5" to .in, replace
+      "/usr/lib/perl5" with a variable
+    - create original files from debian/rules, replacing the variable with
+      the current value of $Config{vendorarch}
+    (Closes: #752351)
+
+ -- Damyan Ivanov <d...@debian.org>  Mon, 04 Aug 2014 07:54:19 +0000
+
 pdl (1:2.007-2) unstable; urgency=low
 
   * successfully built with gcc 4.8 (closes: #701335, #713346)
diff -Nru pdl-2.007/debian/pdl.install pdl-2.007/debian/pdl.install
--- pdl-2.007/debian/pdl.install	2012-05-25 18:18:47.000000000 +0300
+++ pdl-2.007/debian/pdl.install	1970-01-01 02:00:00.000000000 +0200
@@ -1,3 +0,0 @@
-Doc/scantree.pl usr/lib/perl5/PDL/Doc/
-Doc/mkhtmldoc.pl usr/lib/perl5/PDL/Doc/
-debian/dh_pdl usr/bin
diff -Nru pdl-2.007/debian/pdl.install.in pdl-2.007/debian/pdl.install.in
--- pdl-2.007/debian/pdl.install.in	1970-01-01 02:00:00.000000000 +0200
+++ pdl-2.007/debian/pdl.install.in	2014-08-04 10:53:15.000000000 +0300
@@ -0,0 +1,3 @@
+Doc/scantree.pl @vendorarch@/PDL/Doc/
+Doc/mkhtmldoc.pl @vendorarch@/PDL/Doc/
+debian/dh_pdl usr/bin
diff -Nru pdl-2.007/debian/pdl.links pdl-2.007/debian/pdl.links
--- pdl-2.007/debian/pdl.links	2012-02-19 11:23:33.000000000 +0200
+++ pdl-2.007/debian/pdl.links	1970-01-01 02:00:00.000000000 +0200
@@ -1,4 +0,0 @@
-/var/lib/pdl/Index.pod /usr/lib/perl5/PDL/Index.pod
-/var/lib/pdl/pdldoc.db /usr/lib/perl5/PDL/pdldoc.db
-/var/lib/pdl/html /usr/share/doc/pdl/html
-/usr/share/man/man3/PDL.3pm.gz /usr/share/man/man1/pdl.1.gz
diff -Nru pdl-2.007/debian/pdl.links.in pdl-2.007/debian/pdl.links.in
--- pdl-2.007/debian/pdl.links.in	1970-01-01 02:00:00.000000000 +0200
+++ pdl-2.007/debian/pdl.links.in	2014-08-04 10:53:15.000000000 +0300
@@ -0,0 +1,4 @@
+/var/lib/pdl/Index.pod /@vendorarch@/PDL/Index.pod
+/var/lib/pdl/pdldoc.db /@vendorarch@/PDL/pdldoc.db
+/var/lib/pdl/html /usr/share/doc/pdl/html
+/usr/share/man/man3/PDL.3pm.gz /usr/share/man/man1/pdl.1.gz
diff -Nru pdl-2.007/debian/pdl.lintian-overrides pdl-2.007/debian/pdl.lintian-overrides
--- pdl-2.007/debian/pdl.lintian-overrides	2013-11-07 17:00:20.000000000 +0200
+++ pdl-2.007/debian/pdl.lintian-overrides	1970-01-01 02:00:00.000000000 +0200
@@ -1,9 +0,0 @@
-# HG: the html doc is generated in the postinst maintainer script, so lintian
-#     just does not see it
-pdl: doc-base-file-references-missing-file pdl:12 /var/lib/pdl/html/Index.html
-pdl: doc-base-file-references-missing-file pdl:13 /var/lib/pdl/html/*.html
-# there is one long code line in the manpage, which cannot be broken
-pdl: manpage-has-errors-from-man usr/share/man/man3/PDL::FFT.3pm.gz 232: warning [p 2, 3.3i]: can't break line
-# these two images neeed to be in usr/lib
-pdl: image-file-in-usr-lib usr/lib/perl5/PDL/Transform/Cartography/earth_day.jpg
-pdl: image-file-in-usr-lib usr/lib/perl5/PDL/Transform/Cartography/earth_night.jpg
diff -Nru pdl-2.007/debian/pdl.lintian-overrides.in pdl-2.007/debian/pdl.lintian-overrides.in
--- pdl-2.007/debian/pdl.lintian-overrides.in	1970-01-01 02:00:00.000000000 +0200
+++ pdl-2.007/debian/pdl.lintian-overrides.in	2014-08-04 10:53:15.000000000 +0300
@@ -0,0 +1,9 @@
+# HG: the html doc is generated in the postinst maintainer script, so lintian
+#     just does not see it
+pdl: doc-base-file-references-missing-file pdl:12 /var/lib/pdl/html/Index.html
+pdl: doc-base-file-references-missing-file pdl:13 /var/lib/pdl/html/*.html
+# there is one long code line in the manpage, which cannot be broken
+pdl: manpage-has-errors-from-man usr/share/man/man3/PDL::FFT.3pm.gz 232: warning [p 2, 3.3i]: can't break line
+# these two images neeed to be in usr/lib
+pdl: image-file-in-usr-lib @vendorarch@/PDL/Transform/Cartography/earth_day.jpg
+pdl: image-file-in-usr-lib @vendorarch@/PDL/Transform/Cartography/earth_night.jpg
diff -Nru pdl-2.007/debian/pdl.postinst pdl-2.007/debian/pdl.postinst
--- pdl-2.007/debian/pdl.postinst	2013-11-08 10:17:49.000000000 +0200
+++ pdl-2.007/debian/pdl.postinst	1970-01-01 02:00:00.000000000 +0200
@@ -1,44 +0,0 @@
-#! /bin/sh
-# postinst script for pdl
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-
-case "$1" in
-    configure|triggered)
-      perl /usr/lib/perl5/PDL/Doc/scantree.pl /usr/lib/perl5/,/usr/share/perl5 /var/lib/pdl/pdldoc.db /var/lib/pdl/Index.pod >/dev/null 2>&1
-      perl /usr/lib/perl5/PDL/Doc/mkhtmldoc.pl -s "PDL/" /usr/lib/perl5/PDL /var/lib/pdl/html >/dev/null 2>&1
-      perl /usr/lib/perl5/PDL/Doc/mkhtmldoc.pl -s "PDL/" /usr/share/perl5/PDL /var/lib/pdl/html >/dev/null 2>&1
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff -Nru pdl-2.007/debian/pdl.postinst.in pdl-2.007/debian/pdl.postinst.in
--- pdl-2.007/debian/pdl.postinst.in	1970-01-01 02:00:00.000000000 +0200
+++ pdl-2.007/debian/pdl.postinst.in	2014-08-04 10:53:15.000000000 +0300
@@ -0,0 +1,44 @@
+#! /bin/sh
+# postinst script for pdl
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+    configure|triggered)
+      perl /@vendorarch@/PDL/Doc/scantree.pl /@vendorarch@/,/usr/share/perl5 /var/lib/pdl/pdldoc.db /var/lib/pdl/Index.pod >/dev/null 2>&1
+      perl /@vendorarch@/PDL/Doc/mkhtmldoc.pl -s "PDL/" /@vendorarch@/PDL /var/lib/pdl/html >/dev/null 2>&1
+      perl /@vendorarch@/PDL/Doc/mkhtmldoc.pl -s "PDL/" /usr/share/perl5/PDL /var/lib/pdl/html >/dev/null 2>&1
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff -Nru pdl-2.007/debian/pdl.triggers pdl-2.007/debian/pdl.triggers
--- pdl-2.007/debian/pdl.triggers	2013-11-07 21:18:40.000000000 +0200
+++ pdl-2.007/debian/pdl.triggers	1970-01-01 02:00:00.000000000 +0200
@@ -1,2 +0,0 @@
-interest /usr/lib/perl5/PDL
-interest /usr/share/perl5/PDL
diff -Nru pdl-2.007/debian/pdl.triggers.in pdl-2.007/debian/pdl.triggers.in
--- pdl-2.007/debian/pdl.triggers.in	1970-01-01 02:00:00.000000000 +0200
+++ pdl-2.007/debian/pdl.triggers.in	2014-08-04 10:53:15.000000000 +0300
@@ -0,0 +1,2 @@
+interest /@vendorarch@/PDL
+interest /usr/share/perl5/PDL
diff -Nru pdl-2.007/debian/rules pdl-2.007/debian/rules
--- pdl-2.007/debian/rules	2013-11-09 01:59:01.000000000 +0200
+++ pdl-2.007/debian/rules	2014-08-04 10:53:15.000000000 +0300
@@ -26,6 +26,8 @@
 
 subst_pdlapi  = -Vpdlapi:Provides="`perl -Mblib -MPDL::Config::Debian -e 'print \"pdlapi-$$PDL::Config::Debian::pdl_core_version\n\"'`"
 
+vendorarch := $(shell perl -MConfig -e 'print substr($$Config{vendorarch}, 1)')
+
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
@@ -67,7 +69,10 @@
 	# Add here commands to clean up after the build process.
 	[ ! -f Makefile ] || $(MAKE) distclean
 	rm -f t/callext.o t/callext.so Graphics/TriD/OpenGL/tmp*.h-out \
-	 	Perldl2/pdl2.pod debian/dh_pdl.1
+	 	Perldl2/pdl2.pod debian/dh_pdl.1 \
+	 	debian/pdl.lintian-overrides debian/pdl.install \
+	 	debian/pdl.links debian/pdl.postinst \
+	 	debian/pdl.triggers
 
 install: build test
 	dh_testdir
@@ -81,6 +86,12 @@
 	# create placeholder in usr/share/perl5/PDL
 	echo > $(CURDIR)/debian/pdl/usr/share/perl5/PDL/.placeholder
 
+	# set perl vendorarch directory dynamically
+	for f in debian/pdl.lintian-overrides debian/pdl.install \
+	 	debian/pdl.links debian/pdl.postinst \
+	 	debian/pdl.triggers ; do \
+	 	sed -e 's,@vendorarch@,$(vendorarch),g' $$f.in > $$f ; \
+	done
 
 # Build architecture-independent files here.
 binary-indep: build install

Reply via email to