Control: tag -1 + patch On Mon, 23 Jun 2014 23:07:45 +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 implementing this approach:
+ * Fix "hardcodes /usr/lib/perl5":
+ - Make libclearsilver-perl.install executable and use $Config{vendorarch}.
+ - Use $Config{vendorarch} also in debian/rules.
+ - Bump debhelper compat level and dependency to 9.
+ (Closes: #752469)
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: Funny Van Dannen: Der Wal
diff -Nru clearsilver-0.10.5/debian/changelog clearsilver-0.10.5/debian/changelog
--- clearsilver-0.10.5/debian/changelog 2011-12-29 21:58:10.000000000 +0100
+++ clearsilver-0.10.5/debian/changelog 2014-07-01 17:43:28.000000000 +0200
@@ -1,3 +1,14 @@
+clearsilver (0.10.5-1.4) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix "hardcodes /usr/lib/perl5":
+ - Make libclearsilver-perl.install executable and use $Config{vendorarch}.
+ - Use $Config{vendorarch} also in debian/rules.
+ - Bump debhelper compat level and dependency to 9.
+ (Closes: #752469)
+
+ -- gregor herrmann <[email protected]> Tue, 01 Jul 2014 17:33:28 +0200
+
clearsilver (0.10.5-1.3) unstable; urgency=high
* Non-maintainer upload.
diff -Nru clearsilver-0.10.5/debian/compat clearsilver-0.10.5/debian/compat
--- clearsilver-0.10.5/debian/compat 2006-06-05 19:27:40.000000000 +0200
+++ clearsilver-0.10.5/debian/compat 2014-07-01 17:38:06.000000000 +0200
@@ -1 +1 @@
-5
+9
diff -Nru clearsilver-0.10.5/debian/control clearsilver-0.10.5/debian/control
--- clearsilver-0.10.5/debian/control 2011-04-08 21:49:32.000000000 +0200
+++ clearsilver-0.10.5/debian/control 2014-07-01 17:38:04.000000000 +0200
@@ -1,7 +1,7 @@
Source: clearsilver
Section: devel
Priority: optional
-Build-Depends: python-all-dev (>= 2.5.4-1~), debhelper (>= 5.0.37.2), cdbs (>= 0.4.41), zlib1g-dev, autotools-dev, quilt, python-support
+Build-Depends: python-all-dev (>= 2.5.4-1~), debhelper (>= 9), cdbs (>= 0.4.41), zlib1g-dev, autotools-dev, quilt, python-support
XS-Python-Version: all
Maintainer: Jesus Climent <[email protected]>
Uploaders: Otavio Salvador <[email protected]>, Lars Kruse <[email protected]>
diff -Nru clearsilver-0.10.5/debian/libclearsilver-perl.install clearsilver-0.10.5/debian/libclearsilver-perl.install
--- clearsilver-0.10.5/debian/libclearsilver-perl.install 2006-08-23 15:41:06.000000000 +0200
+++ clearsilver-0.10.5/debian/libclearsilver-perl.install 2014-07-01 17:39:52.000000000 +0200
@@ -1 +1,3 @@
-debian/tmp/usr/lib/perl5
+#!/usr/bin/perl -w
+use Config;
+print substr($Config{vendorarch}, 1) . "\n";
diff -Nru clearsilver-0.10.5/debian/rules clearsilver-0.10.5/debian/rules
--- clearsilver-0.10.5/debian/rules 2011-04-08 21:20:26.000000000 +0200
+++ clearsilver-0.10.5/debian/rules 2014-07-01 17:34:44.000000000 +0200
@@ -17,11 +17,13 @@
CFLAGS += -fPIC
+PERL_ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
# retrieve supported python versions (2.3 and 2.4 as of June 02006)
PYVERS=$(shell pyversions -vr debian/control)
DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/tmp
-DEB_SHLIBDEPS_INCLUDE_libclearsilver-perl := debian/libclearsilver-perl/usr/lib/perl5
+DEB_SHLIBDEPS_INCLUDE_libclearsilver-perl := debian/libclearsilver-perl$(PERL_ARCHLIB)
DEB_SHLIBDEPS_INCLUDE_python-clearsilver := $(patsubst %,debian/python-clearsilver/usr/lib/python-%/$(call py_sitename, %),$(PYVERS))
build/python-clearsilver:: $(PYVERS:%=build-python-%)
signature.asc
Description: Digital Signature

