[SCM] Debian packaging of Padre-Plugin-YAML CPAN distribution branch, master, updated. debian/0.05-1-2-gac5244d

Salvatore Bonaccorso carnil at debian.org
Fri Mar 23 10:04:12 UTC 2012


The following commit has been merged in the master branch:
commit 480c664fa1896a7f3feaf6cf24e6488596747a26
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Fri Mar 23 10:56:20 2012 +0100

    Fix FTBFS when the home of building user is not writable
    
    Add override targets for dh_clean and expand the override target for
    dh_auto_test to have a writable home for the building user. This fixes
    a FTBFS failure on e.g. buildd hosts or in sbuild environments.

diff --git a/debian/rules b/debian/rules
index 5487b3b..e7e47ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,15 @@
 #!/usr/bin/make -f
 
+BUILDHOME = $(CURDIR)/debian/build
+
 %:
 	dh $@
 
+override_dh_clean:
+	dh_clean
+	rm -rf $(BUILDHOME)
+
 override_dh_auto_test:
-	xvfb-run -a dh_auto_test
+	mkdir -p $(BUILDHOME)
+	HOME=$(BUILDHOME) xvfb-run -a dh_auto_test
 

-- 
Debian packaging of Padre-Plugin-YAML CPAN distribution



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