[libmodule-signature-perl] 09/10: Build-depend on gnupg and set HOME in override_dh_auto_configure.

gregor herrmann gregoa at debian.org
Mon Jul 18 21:37:07 UTC 2016


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

gregoa pushed a commit to branch master
in repository libmodule-signature-perl.

commit 6b2be60d7712d0a5033e4588684e1e868fdf5f3f
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Jul 18 23:33:34 2016 +0200

    Build-depend on gnupg and set HOME in override_dh_auto_configure.
    
    Otherwise Makefile.PL just exits, and the package is empty.
---
 debian/control | 3 ++-
 debian/rules   | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index ffa60cf..404b88f 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,8 @@ Section: perl
 Testsuite: autopkgtest-pkg-perl
 Priority: optional
 Build-Depends: debhelper (>= 9)
-Build-Depends-Indep: perl
+Build-Depends-Indep: gnupg | gnupg2,
+                     perl
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libmodule-signature-perl.git
 Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libmodule-signature-perl.git
diff --git a/debian/rules b/debian/rules
index 88d2f96..960bf90 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,18 @@
 #!/usr/bin/make -f
 
 TEST_FILES=	$(filter-out t/3-verify.t,$(wildcard t/*.t))
+BUILDHOME = $(CURDIR)/debian/build
 
 %:
 	dh $@
 
+override_dh_clean:
+	dh_clean
+	rm -rf $(BUILDHOME)
+
+override_dh_auto_configure:
+	mkdir -p $(BUILDHOME)
+	HOME=$(BUILDHOME) dh_auto_configure
+
 override_dh_auto_test:
 	dh_auto_test -- TEST_FILES="$(TEST_FILES)"

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



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