[libextutils-autoinstall-perl] 01/05: debian/rules: create CPAN config before running test suite.
gregor herrmann
gregoa at debian.org
Mon Jul 21 19:51:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libextutils-autoinstall-perl.
commit 8065ed541678c99921496f356195ebac8f20afd9
Author: gregor herrmann <gregoa at debian.org>
Date: Mon Jul 21 21:31:38 2014 +0200
debian/rules: create CPAN config before running test suite.
Closes: #752930
---
debian/rules | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/debian/rules b/debian/rules
index bc67c36..952c4d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,4 +11,16 @@ override_dh_clean:
override_dh_auto_test:
mkdir -p $(BUILDHOME)
+
+ # workaround for #752930
+ # 0) create ~/.cpan/CPAN/MyConfig.pm ourselves before EU::AutoInstall
+ # tries to do it and fails horribly in a loop in the install_help
+ # question
+ # 1) "preseed" exactly this install_help question, otherwise the default
+ # 'local::lib' is chosen and CPAN.pm goes out hunting
+ # 2) "preseed" urllist as well, otherwise CPAN.pm from 5.18 asks for it
+ # and tries to download a mirror list. in 5.20 it contains
+ # www.cpan.org already.
+ HOME=$(BUILDHOME) perl -MCPAN -e '$$CPAN::Config = {"install_help" => q[manual], "urllist" => [q[http://www.cpan.org/]]}; CPAN::Shell->mkmyconfig;'
+
HOME=$(BUILDHOME) dh_auto_test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libextutils-autoinstall-perl.git
More information about the Pkg-perl-cvs-commits
mailing list