Your message dated Thu, 07 Aug 2014 21:35:59 +0000
with message-id <e1xfvlr-0007za...@franck.debian.org>
and subject line Bug#752336: fixed in libpreludedb 1.0.0-2.2
has caused the Debian Bug report #752336,
regarding libpreludedb: hardcodes /usr/lib/perl5
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
752336: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752336
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libpreludedb
Version: 1.0.0-2.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 libpreludedb by generating
debian/libprelude-perl.install at install time. YMMV; there are certainly
other ways to do this (and I'd have used an executable install file
if the debhelper compat level was high enough.)

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.
-- 
Niko Tyni   nt...@debian.org
>From cb0df23a2733c1a92ec7d873fbb8bf75c02792d3 Mon Sep 17 00:00:00 2001
From: Niko Tyni <nt...@debian.org>
Date: Fri, 20 Jun 2014 00:09:35 +0300
Subject: [PATCH 2/2] Don't hardcode /usr/lib/perl* in
 debian/libpreludedb-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 creates debhelper install file at build time.
Alternatively, starting with compat level 9 debhelper supports
executable configuration files that could be used to the same effect.
---
 debian/libpreludedb-perl.install    | 1 -
 debian/libpreludedb-perl.install.in | 1 +
 debian/rules                        | 4 ++++
 3 files changed, 5 insertions(+), 1 deletion(-)
 delete mode 100644 debian/libpreludedb-perl.install
 create mode 100644 debian/libpreludedb-perl.install.in

diff --git a/debian/libpreludedb-perl.install b/debian/libpreludedb-perl.install
deleted file mode 100644
index 074862e..0000000
--- a/debian/libpreludedb-perl.install
+++ /dev/null
@@ -1 +0,0 @@
-debian/tmp/usr/lib/perl*
diff --git a/debian/libpreludedb-perl.install.in b/debian/libpreludedb-perl.install.in
new file mode 100644
index 0000000..6f78606
--- /dev/null
+++ b/debian/libpreludedb-perl.install.in
@@ -0,0 +1 @@
+debian/tmp/${archlib}
diff --git a/debian/rules b/debian/rules
index 9e9dee3..8236e64 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,8 @@ INSTALLE=install -m755 -o0 -g0
 
 PYVERS=$(shell pyversions -vr)
 
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
 TMPDIR=debian/tmp
 
 prefix=$(CURDIR)/debian/tmp/usr
@@ -35,6 +37,7 @@ clean:
 	[ ! -f bindings/perl/Makefile ] || $(MAKE) -C bindings/perl realclean
 	[ ! -f Makefile ] || $(MAKE) distclean
 	rm -rf bindings/python/build
+	rm -f debian/libpreludedb-perl.install
 	dh_clean
 
 install: install-core $(PYVERS:%=install-python%)
@@ -48,6 +51,7 @@ install-core: build
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
 	find $(CURDIR)/debian/tmp -name \*.pyc -exec rm -f {} \;
 	find $(CURDIR)/debian/tmp -name \*.la -delete
+	sed -e 's,$${archlib},$(ARCHLIB),g' debian/libpreludedb-perl.install.in > debian/libpreludedb-perl.install
 #	$(INSTALLD) $(TMPDIR)/etc/prelude/	\
 #		$(TMPDIR)/etc/prelude/default/	\
 #		$(TMPDIR)/etc/prelude/profile/	\
-- 
2.0.0


--- End Message ---
--- Begin Message ---
Source: libpreludedb
Source-Version: 1.0.0-2.2

We believe that the bug you reported is fixed in the latest version of
libpreludedb, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 752...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ansgar Burchardt <ans...@debian.org> (supplier of updated libpreludedb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 05 Aug 2014 22:27:33 +0200
Source: libpreludedb
Binary: libpreludedb-dev libpreludedb0 libpreludedb-perl python-preludedb
Architecture: source
Version: 1.0.0-2.2
Distribution: unstable
Urgency: medium
Maintainer: Mickael Profeta <prof...@debian.org>
Changed-By: Ansgar Burchardt <ans...@debian.org>
Description:
 libpreludedb-dev - Security Information Management System [ Development files ]
 libpreludedb-perl - Security Information Management System [ Base library ]
 libpreludedb0 - Security Information Management System [ Base library ]
 python-preludedb - Security Information Management System [ Base library ]
Closes: 752335 752336
Changes:
 libpreludedb (1.0.0-2.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Force swig to regenerate bindings/perl/PreludeDB.c by removing it
     before building and in the clean target. (Closes: #752335)
   * Use perl's $Config{vendorarch} instead of /usr/lib/perl5. Thanks
     to Niko Tyni for the patch. (Closes: #752336)
Checksums-Sha1:
 614c91a0400dddeabf0edcc68e1873d7a8207d77 2082 libpreludedb_1.0.0-2.2.dsc
 b9a621031e423fc5d5d336281930ef3c7ea9ab9b 4601 libpreludedb_1.0.0-2.2.diff.gz
Checksums-Sha256:
 46175eca00e1c15d829da43bbc6e25a6c4391a41a791832c1a80d5fa7baa0b6b 2082 
libpreludedb_1.0.0-2.2.dsc
 358e5d9f4e064eba11ce27c8ea1f9ff8915001316959b5a4622f6c172697a88c 4601 
libpreludedb_1.0.0-2.2.diff.gz
Files:
 9ebabc70270688b94711a99087d42222 2082 libs extra libpreludedb_1.0.0-2.2.dsc
 da10e65796a4c48957c467516640f1f4 4601 libs extra libpreludedb_1.0.0-2.2.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJT4SwEAAoJEIATJTTdNH3IV/UP/0OsyHQbkle9zhAvJ4tz2stN
EEl9JcQEksn3ZvbtC915q9LsEMLUUmKWXzKKGTeiQkUJAyx1dR3ixr4hmGGXjJHd
32i8RGXRr7fzDhscBtP491YazcUePXgxCa7cdMpMj6QhELDmWiUQ8v2mwE2ISSQ/
ptiz77jOzK0KvKQYn6u0Sfd9KSfAGFszZJHGeRRPIqBOnBGcLLzoYM0zT+PcjKY8
zcsdeehTNjwTwiBoG3q/T7iawjmlYvKKsW4t01cBKZH4eW4ZArt4R0VMqHg/RUQZ
8fbjsmPKEX9xwtMCFrrU4OIa+Zqv+TBnGjrxJT89hMzP0e8bOJduA/6it48LjPFg
8BJkLQb9NxfYUdn1veOvTCCmULTNa+YGmDl2ylkVmCe7R3/vkJtpc2Df/NdjhgWu
DkHLYSKPRqXAJvYgQRsxUyk50H4WncC7aFpYqbSIyWK/0vdxtqVHjMYHZ9U68JFf
sPnDgqmLKPIC/UiVg0V7T5CmQvR2zAzuVzwH/XkkHkBB7vKojDdcjX0S+Z2E7Vr6
K48eKBBgujmg8FKGb5ouiQFwPjXuXb36vDbDtO9CAws/CYI70nJTe5WvpQOxcL9R
53oErvkqnfFvJEQSTWUiOvV+InXCmgByndnrS4BUcWbGfv4jkOEkncchzWzm9++4
387/CyI/DcRSoBA3D29s
=8Gwa
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to