Control: tag -1 + patch On Sun, 22 Jun 2014 23:07:47 +0300, Niko Tyni wrote:
> For this to work, packages containing binary perl modules need to migrate > from using the hardcoded /usr/lib/perl5 directory to the value of the > $Config{vendorarch} variable, as defined in the 'Config' module. I'm attaching a patch which uses $Config{vendorarch} in the relevant files. Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Mark Knopfler: The Road
diff -Nru libhdate-1.6/debian/changelog libhdate-1.6/debian/changelog --- libhdate-1.6/debian/changelog 2013-09-21 13:17:48.000000000 +0200 +++ libhdate-1.6/debian/changelog 2014-06-30 23:43:18.000000000 +0200 @@ -1,3 +1,13 @@ +libhdate (1.6-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix "hardcodes /usr/lib/perl5" + - use $Config{vendorarch} in debian/rules and debian/libhdate-perl.* + - make the latter two executable + (Closes: #752348) + + -- gregor herrmann <gre...@debian.org> Mon, 30 Jun 2014 23:31:58 +0200 + libhdate (1.6-2) unstable; urgency=low * Patch fix_3: fix an endless loop with hcal -3 (Closes: #692039). diff -Nru libhdate-1.6/debian/libhdate-perl.dirs libhdate-1.6/debian/libhdate-perl.dirs --- libhdate-1.6/debian/libhdate-perl.dirs 2013-08-16 15:23:02.000000000 +0200 +++ libhdate-1.6/debian/libhdate-perl.dirs 2014-06-30 23:41:20.000000000 +0200 @@ -1 +1,3 @@ -usr/lib/perl5 +#!/usr/bin/perl -w +use Config; +print substr($Config{vendorarch}, 1) . "\n"; diff -Nru libhdate-1.6/debian/libhdate-perl.install libhdate-1.6/debian/libhdate-perl.install --- libhdate-1.6/debian/libhdate-perl.install 2013-08-16 15:23:02.000000000 +0200 +++ libhdate-1.6/debian/libhdate-perl.install 2014-06-30 23:41:20.000000000 +0200 @@ -1 +1,3 @@ -usr/lib/perl5/* +#!/usr/bin/perl -w +use Config; +print substr($Config{vendorarch}, 1) . "\n"; diff -Nru libhdate-1.6/debian/rules libhdate-1.6/debian/rules --- libhdate-1.6/debian/rules 2013-09-18 07:02:56.000000000 +0200 +++ libhdate-1.6/debian/rules 2014-06-30 23:38:47.000000000 +0200 @@ -1,10 +1,12 @@ #!/usr/bin/make -f +ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') + %: dh $* --with python2,autotools_dev override_dh_auto_configure: - dh_auto_configure -- --with-perl-sitelib-dir=/usr/lib/perl5 + dh_auto_configure -- --with-perl-sitelib-dir=$(ARCHLIB) override_dh_python2: dh_python2 -s --no-guessing-versions
signature.asc
Description: Digital Signature