Package: hivex
Version: 1.3.10-1
Severity: important
Tags: patch
User: debian-p...@lists.debian.org
Usertags: perl-5.20-transition

Starting with version 5.20.0 (currently in experimental), the Debian
perl package is changing the "vendorarch" library paths (currently
/usr/lib/perl5) to include the multiarch triplet and the perl version. See
#748380 for details.

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.

The attached patch implements this for hivex by making
debian/libwin-hivex-perl.install into an executable perl script.
YMMV; there are certainly other ways to do this.

I've tested that this produces no debdiff visible changes on current sid
while fixing a build failure at the 'install' stage with perl_5.20.0-1.

Please consider including something like this sooner rather than later:
libwin-hivex-perl is a build dependency for other packages that need
to be rebuilt for the Perl 5.20 transition, and this issue is currently
hindering our rebuild tests.
-- 
Niko Tyni   nt...@debian.org
>From ae24fd982222b4c62ea66a06dd4512d72e181266 Mon Sep 17 00:00:00 2001
From: Niko Tyni <nt...@debian.org>
Date: Wed, 18 Jun 2014 18:40:50 +0300
Subject: [PATCH] Don't hardcode /usr/lib/perl5 in
 debian/libwin-hivex-perl.install

Starting with version 5.20.0, the Debian perl package is changing
the "vendorarch" library paths (currently /usr/lib/perl5) to include
the multiarch triplet and the perl version. See #748380 for details.

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.

The implementation uses an executable debhelper install file.
---
 debian/libwin-hivex-perl.install | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 debian/libwin-hivex-perl.install

diff --git a/debian/libwin-hivex-perl.install b/debian/libwin-hivex-perl.install
old mode 100644
new mode 100755
index dd9d062..d15bebb
--- a/debian/libwin-hivex-perl.install
+++ b/debian/libwin-hivex-perl.install
@@ -1,7 +1,11 @@
-usr/lib/perl5
+#!/usr/bin/perl -w
+use Config;
 
+print substr($Config{vendorarch}, 1) . "\n";
+
+print <<EOF;
 usr/share/man/man3/Win::Hivex.3pm
 usr/share/man/man3/Win::Hivex::Regedit.3pm
-
 usr/bin/hivexregedit
 usr/share/man/man1/hivexregedit.1
+EOF
-- 
2.0.0

Reply via email to