[libmodule-corelist-perl] 01/03: debian/rules: make the build fail when the current Perl is not supported.
gregor herrmann
gregoa at debian.org
Thu Nov 3 19:31:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libmodule-corelist-perl.
commit 09bbd0fa504a3c0699fbf6b85bdd1d5528a0bb33
Author: gregor herrmann <gregoa at debian.org>
Date: Thu Nov 3 20:19:09 2016 +0100
debian/rules: make the build fail when the current Perl is not supported.
---
debian/rules | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/debian/rules b/debian/rules
index 2d33f6a..a218156 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,13 @@
#!/usr/bin/make -f
+CURRENT_PERL := $(shell perl -e 'print $$]')
+
%:
dh $@
+
+override_dh_auto_build:
+ dh_auto_build
+
+ # safeguard against a Module::CoreList version which doesn't know about the current Perl
+ @echo Checking support for Perl $(CURRENT_PERL)
+ @perl -Iblib/lib -MModule::CoreList -E '$$date=$$Module::CoreList::released{"$(CURRENT_PERL)"} or say "Perl $(CURRENT_PERL) not supported by version $$Module::CoreList::VERSION of Module::CoreList"; exit !$$date;'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmodule-corelist-perl.git
More information about the Pkg-perl-cvs-commits
mailing list