Control: tag -1 + patch On Thu, 17 Jul 2014 02:13:35 +0300, Niko Tyni wrote:
> This package builds with perl_5.20.0-1, but the resulting package has
> a file conflict with perl-tk:
>
> dpkg: error processing archive
> /srv/reprepro/pool/main/libt/libtk-tablematrix-perl/libtk-tablematrix-perl_1.23-6+b3_amd64.deb
> (--unpack):
> trying to overwrite
> '/usr/lib/x86_64-linux-gnu/perl5/5.20/auto/Tk/pTk/extralibs.ld', which is
> also in package perl-tk 1:804.032-3+b1
>
> This is because the manual removal in debian/rules is done with a hardcoded
> path.
Patch attached which uses $Config{vendorarch} for the path.
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
`-
diff -Nru libtk-tablematrix-perl-1.23/debian/changelog libtk-tablematrix-perl-1.23/debian/changelog
--- libtk-tablematrix-perl-1.23/debian/changelog 2011-10-01 15:11:24.000000000 +0200
+++ libtk-tablematrix-perl-1.23/debian/changelog 2014-07-18 16:05:40.000000000 +0200
@@ -1,3 +1,12 @@
+libtk-tablematrix-perl (1.23-6.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix "hardcodes /usr/lib/perl5":
+ use $Config{vendorarch} in debian/rules to find perl lib path dynamically
+ (Closes: #755028)
+
+ -- gregor herrmann <[email protected]> Fri, 18 Jul 2014 16:02:07 +0200
+
libtk-tablematrix-perl (1.23-6) unstable; urgency=low
* Switch to dpkg-source 3.0 (quilt) format.
diff -Nru libtk-tablematrix-perl-1.23/debian/rules libtk-tablematrix-perl-1.23/debian/rules
--- libtk-tablematrix-perl-1.23/debian/rules 2011-10-01 15:07:22.000000000 +0200
+++ libtk-tablematrix-perl-1.23/debian/rules 2014-07-18 16:04:37.000000000 +0200
@@ -9,6 +9,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
%:
dh $@
@@ -17,6 +19,6 @@
override_dh_install:
dh_install
- rm -rfv debian/libtk-tablematrix-perl/usr/lib/perl5/auto/Tk/pTk # conflicts with perl-tk
- rm -rfv debian/libtk-tablematrix-perl/usr/lib/perl5/Tk/pTk # conflicts with perl-tk
+ rm -rfv debian/libtk-tablematrix-perl/$(ARCHLIB)/auto/Tk/pTk # conflicts with perl-tk
+ rm -rfv debian/libtk-tablematrix-perl/$(ARCHLIB)/Tk/pTk # conflicts with perl-tk
signature.asc
Description: Digital Signature

