tag 752803 patch
thanks

On Thu, Jun 26, 2014 at 08:23:21PM +0300, Niko Tyni wrote:
> Package: ossp-uuid
> Version: 1.6.2-1.3
> Severity: important
> User: debian-p...@lists.debian.org
> Usertags: perl-5.20-transition

> This package fails to build with perl_5.20.0-1 from experimental:
>   chrpath debian/libossp-uuid-perl/usr/lib/perl5/auto/OSSP/uuid/uuid.so && \
>   chrpath -d debian/libossp-uuid-perl/usr/lib/perl5/auto/OSSP/uuid/uuid.so
>   open: No such file or directory
>   elf_open: Invalid argument

I'm attaching a proposed patch for this. I've tested that this doesn't
cause any debdiff-visible changes on current sid, while fixing the build
with perl_5.20.0-1.

Given the large number of reverse dependencies, this bug is one of the
more important ones for the Perl transition. Please let me know if you'd
like me to NMU.
-- 
Niko Tyni   nt...@debian.org
>From 5982bd9c25a71d28c5259fe5aafe2988fa1320a3 Mon Sep 17 00:00:00 2001
From: Niko Tyni <nt...@debian.org>
Date: Fri, 27 Jun 2014 15:30:12 +0300
Subject: [PATCH] Don't hardcode /usr/lib/perl5 in debian/rules

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/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 295b560..3dd2c01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,8 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
 override_dh_auto_configure:
 	ln -sf /usr/share/misc/config.sub .
 	ln -sf /usr/share/misc/config.guess . 
@@ -44,8 +46,8 @@ override_dh_auto_install:
 	dh_auto_install
 
 	cd perl; make install PREFIX=$(CURDIR)/debian/libossp-uuid-perl/usr
-	chrpath debian/libossp-uuid-perl/usr/lib/perl5/auto/OSSP/uuid/uuid.so && \
-	chrpath -d debian/libossp-uuid-perl/usr/lib/perl5/auto/OSSP/uuid/uuid.so
+	chrpath debian/libossp-uuid-perl/$(ARCHLIB)/auto/OSSP/uuid/uuid.so && \
+	chrpath -d debian/libossp-uuid-perl/$(ARCHLIB)/auto/OSSP/uuid/uuid.so
 
 	#cd php/build-php5; make install INSTALL_ROOT=$(CURDIR)/debian/php5-uuid
 	#chmod -x debian/php5-uuid/usr/lib/php5/*/uuid.so
-- 
2.0.0

Reply via email to