[libcommon-sense-perl] 01/03: Ensure a runtime dependency on the same perl version used at build time.

gregor herrmann gregoa at debian.org
Tue Sep 10 15:12:34 UTC 2013


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libcommon-sense-perl.

commit 9e37b7bf205dbce39b42bbdf661cd29d7c0e7131
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Sep 10 17:04:55 2013 +0200

    Ensure a runtime dependency on the same perl version used at build time.
    
    This also adds an upper bound, as opposed to the last upload, and should
    help to avoid failures like the one described in #722332.
    
    Thanks: Hagen Fuchs for the bug report.
---
 debian/control |    2 +-
 debian/rules   |    7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index c7055aa..3483b5a 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,7 @@ Package: libcommon-sense-perl
 Architecture: any
 Depends: ${misc:Depends},
          ${perl:Depends},
-         ${minperl:Depends}
+         ${sameperl:Depends}
 Description: module that implements some sane defaults for Perl programs
  common::sense implements some sane defaults for Perl programs, as defined by
  two typical (or not so typical - use your common sense) specimens of Perl
diff --git a/debian/rules b/debian/rules
index cb124f0..7564722 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,10 @@
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 
-PERL_CURRENT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}"')
+# maybe we only need the patchlevel and not the subversion here?
+# better save than sorry, and better consistent with other packages ...
+PERL_CURRENT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}.$$Config{subversion}"')
+PERL_NEXT    := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}." . ($$Config{subversion} + 1)')
 
 %:
 	dh $@
@@ -15,4 +18,4 @@ override_dh_auto_install:
 		$(TMP)/usr/share/man/man3/common::sense.3pm
 
 override_dh_gencontrol:
-	dh_gencontrol -- -V'minperl:Depends=perl (>= $(PERL_CURRENT))'
+	dh_gencontrol -- -V'sameperl:Depends=perl (>= $(PERL_CURRENT)), perl (<< $(PERL_NEXT)~)'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcommon-sense-perl.git



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