r46503 - in /trunk/libpar-packer-perl/debian: changelog control rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Thu Oct 29 15:47:31 UTC 2009


Author: gregoa
Date: Thu Oct 29 15:47:13 2009
New Revision: 46503

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=46503
Log:
We need the same perl version at runtime as at build time; add some
substvar handling to debian/control and debian/rules to enforce an "upper
bound". Thanks to Eugene V. Lyubimkin for the bug report and to Niko Tyni
for his help in the analysis (closes: #551356).

Modified:
    trunk/libpar-packer-perl/debian/changelog
    trunk/libpar-packer-perl/debian/control
    trunk/libpar-packer-perl/debian/rules

Modified: trunk/libpar-packer-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-packer-perl/debian/changelog?rev=46503&op=diff
==============================================================================
--- trunk/libpar-packer-perl/debian/changelog (original)
+++ trunk/libpar-packer-perl/debian/changelog Thu Oct 29 15:47:13 2009
@@ -1,6 +1,13 @@
 libpar-packer-perl (0.991-3) UNRELEASED; urgency=low
 
+  [ Ryan Niebur ]
   * Update ryan52's email address
+
+  [ gregor herrmann ]
+  * We need the same perl version at runtime as at build time; add some
+    substvar handling to debian/control and debian/rules to enforce an "upper
+    bound". Thanks to Eugene V. Lyubimkin for the bug report and to Niko Tyni
+    for his help in the analysis (closes: #551356).
 
  -- Ryan Niebur <ryan at debian.org>  Fri, 25 Sep 2009 00:25:54 -0700
 

Modified: trunk/libpar-packer-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-packer-perl/debian/control?rev=46503&op=diff
==============================================================================
--- trunk/libpar-packer-perl/debian/control (original)
+++ trunk/libpar-packer-perl/debian/control Thu Oct 29 15:47:13 2009
@@ -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),

Modified: trunk/libpar-packer-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpar-packer-perl/debian/rules?rev=46503&op=diff
==============================================================================
--- trunk/libpar-packer-perl/debian/rules (original)
+++ trunk/libpar-packer-perl/debian/rules Thu Oct 29 15:47:13 2009
@@ -1,10 +1,16 @@
 #!/usr/bin/make -f
+
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
+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 $@
-
-PACKAGE = $(shell dh_listpackages)
-TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 override_dh_auto_test:
 	ln -sf par.pl blib/script/par-archive
@@ -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)~"




More information about the Pkg-perl-cvs-commits mailing list