[sqitch] 01/05: Provide a HOME directory during build

zeha at debian.org zeha at debian.org
Tue Jul 22 17:11:15 UTC 2014


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

zeha pushed a commit to branch master
in repository sqitch.

commit 4bf35479bddbeb73eea206e9a5b97de6b46d8b8f
Author: Christian Hofstaedtler <zeha at debian.org>
Date:   Tue Jul 22 18:14:38 2014 +0200

    Provide a HOME directory during build
    
    Required for the tests to run.
    Copied from libfile-homedir-perl's rules file.
---
 debian/rules | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..9144a70 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,16 @@
 #!/usr/bin/make -f
 
+# The tests require a home directory (mostly for the .conf file), so
+# provide one.
+BUILDHOME = $(CURDIR)/debian/build
+
 %:
 	dh $@
+
+override_dh_clean:
+	dh_clean
+	rm -rf $(BUILDHOME)
+
+override_dh_auto_test:
+	mkdir -p $(BUILDHOME)
+	HOME=$(BUILDHOME) dh_auto_test

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



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