Control: tag -1 + patch

On Sun, 22 Jun 2014 23:10:53 +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.

Attached is a patch using an executable .install file which uses
$Config{vendorarch} to set the target directory.
 

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: STS: Nananana
diff -Nru nflog-bindings-0.2/debian/changelog nflog-bindings-0.2/debian/changelog
--- nflog-bindings-0.2/debian/changelog	2012-05-19 16:29:28.000000000 +0200
+++ nflog-bindings-0.2/debian/changelog	2014-07-01 16:53:54.000000000 +0200
@@ -1,3 +1,13 @@
+nflog-bindings (0.2-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix "hardcodes /usr/lib/perl5":
+    Make debian/libnflog-perl.install executable and use $Config{vendorarch}
+    to determine install directory.
+    (Closes: #752349)
+
+ -- gregor herrmann <gre...@debian.org>  Tue, 01 Jul 2014 16:44:40 +0200
+
 nflog-bindings (0.2-3) unstable; urgency=low
 
   * Add missing CPPFLAGS hardening flags (Closes: #670239).
diff -Nru nflog-bindings-0.2/debian/libnflog-perl.install nflog-bindings-0.2/debian/libnflog-perl.install
--- nflog-bindings-0.2/debian/libnflog-perl.install	2011-09-22 21:28:38.000000000 +0200
+++ nflog-bindings-0.2/debian/libnflog-perl.install	2014-07-01 16:59:53.000000000 +0200
@@ -1 +1,4 @@
-usr/lib/perl5
+#!/usr/bin/perl -w
+
+use Config;
+print 'usr/lib/perl5/* ' . substr($Config{vendorarch}, 1) . "\n";

Attachment: signature.asc
Description: Digital Signature

Reply via email to