r67232 - /website/debhelper.pod

carnil at users.alioth.debian.org carnil at users.alioth.debian.org
Mon Jan 10 07:58:46 UTC 2011


Author: carnil
Date: Mon Jan 10 07:57:09 2011
New Revision: 67232

URL: http://svn.debian.org/wsvn/?sc=1&rev=67232
Log:
add example how to woraround for builds wich needs a writable home directory during builds

Modified:
    website/debhelper.pod

Modified: website/debhelper.pod
URL: http://svn.debian.org/wsvn/website/debhelper.pod?rev=67232&op=diff
==============================================================================
--- website/debhelper.pod (original)
+++ website/debhelper.pod Mon Jan 10 07:57:09 2011
@@ -282,7 +282,7 @@
 
 =end html
 
-This requires support for overrides, introduced in B<debhelper 7.0.50>
+This requires support for overrides, introduced in B<debhelper 7.0.50>.
 
 =head2 Parallel building
 
@@ -299,6 +299,29 @@
 
 This requires B<debhelper 7.4.4>.
 
+=head2 running tests needing writable HOME
+
+Sometimes tests need to have access to a writeable C<$HOME>.
+
+=begin html
+
+<pre>BUILDHOME = $(CURDIR)/debian/build
+
+%:
+&#09;dh $@
+
+override_dh_clean:
+&#09;dh_clean
+&#09;rm -rf $(BUILDHOME)
+
+override_dh_auto_test:
+&#09;mkdir -p $(BUILDHOME)
+&#09;HOME=$(BUILDHOME) dh_auto_test
+</pre>
+
+=end html
+
+This requires support for overrides, introduced in B<debhelper 7.0.50>.
 
 =head1 Module::AutoInstall
 




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