Control: tag -1 + patch

On Sun, 22 Jun 2014 23:05:43 +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 that uses $Config{vendorarch} in an executable
.install file.

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: Dave Brubeck: Trolley Song
diff -Nru highlight-3.9/debian/changelog highlight-3.9/debian/changelog
--- highlight-3.9/debian/changelog	2012-05-23 18:32:13.000000000 +0200
+++ highlight-3.9/debian/changelog	2014-06-30 23:25:44.000000000 +0200
@@ -1,3 +1,14 @@
+highlight (3.9-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix "hardcodes /usr/lib/perl5":
+    - make debian/libhighlight-perl.install executable and use
+      $Config{vendorarch} there
+    - use debhelper (compat level) 9
+    (Closes: #752347)
+
+ -- gregor herrmann <gre...@debian.org>  Mon, 30 Jun 2014 23:16:31 +0200
+
 highlight (3.9-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru highlight-3.9/debian/compat highlight-3.9/debian/compat
--- highlight-3.9/debian/compat	2012-05-23 18:32:13.000000000 +0200
+++ highlight-3.9/debian/compat	2014-06-30 23:22:13.000000000 +0200
@@ -1,2 +1,2 @@
-7
+9
 
diff -Nru highlight-3.9/debian/control highlight-3.9/debian/control
--- highlight-3.9/debian/control	2012-05-23 18:32:13.000000000 +0200
+++ highlight-3.9/debian/control	2014-06-30 23:22:27.000000000 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Ayman Negm <n...@debian.org>
 Uploaders: David Bremner <brem...@debian.org>
-Build-Depends: debhelper (>= 7.0.50), swig, liblua5.1-0-dev, libboost-dev,
+Build-Depends: debhelper (>= 9), swig, liblua5.1-0-dev, libboost-dev,
 	       pkg-config
 Standards-Version: 3.9.3
 Homepage: http://www.andre-simon.de
diff -Nru highlight-3.9/debian/libhighlight-perl.install highlight-3.9/debian/libhighlight-perl.install
--- highlight-3.9/debian/libhighlight-perl.install	2012-05-23 18:32:13.000000000 +0200
+++ highlight-3.9/debian/libhighlight-perl.install	2014-06-30 23:23:15.000000000 +0200
@@ -1,2 +1,8 @@
-examples/swig/highlight.so usr/lib/perl5/auto/highlight
-examples/swig/highlight.pm usr/lib/perl5
+#!/usr/bin/perl -w
+
+use Config;
+
+my $vendorarch = substr($Config{vendorarch}, 1);
+
+print "examples/swig/highlight.so $vendorarch/auto/highlight\n";
+print "examples/swig/highlight.pm $vendorarch\n";

Attachment: signature.asc
Description: Digital Signature

Reply via email to