Bug#551356: libpar-packer-perl: fails to extract Parl with Perl 5.10.1
gregor herrmann
gregoa at debian.org
Thu Oct 29 15:06:05 UTC 2009
On Thu, 22 Oct 2009 10:37:51 +0300, Niko Tyni wrote:
> > > Honestly I am not acquainted with PAR, just tried to run it first time. Do you
> > > mean PAR requires perl version exact that was used for building?..
> > That was my interpretation of the error above, which might be wrong
> There's a static perl 5.10.0 inside both /usr/bin/parl and
> /usr/share/perl5/PAR/StrippedPARL/Static.pm, and it won't work
> with Config.pm from 5.10.1.
Thanks for the confirmation.
> > > > Do we need to add libperl5.10 (<< $current+1~) or something like
> > > > that?
>
> It's clearly necessary ATM but I'm not quite sure if that's intentional
> or a bug. myldr/Makefile.PL builds parl with -B, which is supposed
> to embed core modules.
>
> I think it's an OK solution at least for the moment as long as it's
> made binNMU safe.
Ok, I've now come up with the change below, which leads to:
Depends: perl (>= 5.10.1), [..] libperl5.10 (>= 5.10.1), perl (<< 5.10.2~), [..]
#v+
Index: debian/control
===================================================================
--- debian/control (revision 46498)
+++ debian/control (working copy)
@@ -22,6 +22,7 @@
Package: libpar-packer-perl
Architecture: any
Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends},
+ perl (>= ${perl:current}), perl (<< ${perl:next}),
libarchive-zip-perl (>= 1),
libgetopt-argvfile-perl (>= 1.07),
libmodule-scandeps-perl (>= 0.81),
Index: debian/rules
===================================================================
--- debian/rules (revision 46498)
+++ debian/rules (working copy)
@@ -1,5 +1,11 @@
#!/usr/bin/make -f
+PERLVER := $(shell perl -e 'printf "%vd\n", $$^V')
+VMAJOR := $(shell echo $(PERLVER) | cut -f 1 -d .)
+VMINOR := $(shell echo $(PERLVER) | cut -f 2 -d .)
+VPATCH := $(shell echo $(PERLVER) | cut -f 3 -d .)
+NEXTPATCH := $(shell expr $(VPATCH) + 1 2>/dev/null)
+
%:
dh --with quilt $@
@@ -20,3 +26,8 @@
dh_auto_install
prename s/\.pl/-archive/ \
$(TMP)/usr/bin/par.pl $(TMP)/usr/share/man/man1/par.pl.1p
+
+override_dh_gencontrol:
+ dh_gencontrol -- \
+ -Vperl:current="$(VMAJOR).$(VMINOR).$(VPATCH)" \
+ -Vperl:next="$(VMAJOR).$(VMINOR).$(NEXTPATCH)~"
#v-
Does this look sane?
Cheers,
gregor
--
.''`. http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
: :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/
`. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
`- NP: Elton John: Sad Songs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20091029/b3a78b02/attachment-0001.pgp>
More information about the pkg-perl-maintainers
mailing list