Package: net-snmp Version: 5.7.2.1~dfsg-6 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 net-snmp by making debian/libsnmp-perl.install into an executable perl script. (YMMV; there are certainly other ways to do it.) 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; net-snmp 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 a91d2697204fa08627b8ae7bc26610d318d6aee0 Mon Sep 17 00:00:00 2001 From: Niko Tyni <nt...@debian.org> Date: Tue, 17 Jun 2014 21:20:08 +0300 Subject: [PATCH] Don't hardcode /usr/lib/perl5 in debian/libsnmp-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. --- debian/libsnmp-perl.install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 debian/libsnmp-perl.install diff --git a/debian/libsnmp-perl.install b/debian/libsnmp-perl.install old mode 100644 new mode 100755 index 36e0356..23df4ff --- a/debian/libsnmp-perl.install +++ b/debian/libsnmp-perl.install @@ -1 +1,5 @@ -usr/lib/perl* +#!/usr/bin/perl -w + +use Config; +# expand the perl binary module directory at build time +print substr($Config{vendorarch}, 1) . "\n"; -- 2.0.0