[SCM] Packaging for Google Go branch, debian-sid, updated. debian/2%1-3-8-g8f6a836

Ondřej Surý ondrej at sury.org
Wed Apr 18 07:48:55 UTC 2012


The following commit has been merged in the debian-sid branch:
commit 230ead6676696fede740bae877eb45a9a13f8e54
Author: Ondřej Surý <ondrej at sury.org>
Date:   Sun Apr 15 10:49:06 2012 +0200

    Create fake home directory to pass the os/user test

diff --git a/debian/rules b/debian/rules
index d0effbc..4566f32 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,11 +16,12 @@ override_dh_auto_clean:
 	rm -f debian/*+
 	rm -f debian/build.stamp
 	rm -f test/pass.out test/run.out test/times.out
+	rm -rf debian/home
 
 override_dh_auto_build: debian/build.stamp
 
 override_dh_auto_test:
-	$(no_check) || { cd $(CURDIR)/src && $(CURDIR)/debian/test.bash $(GOROOT)/pkg/tool/$(GOHOSTOS)_$(GOHOSTARCH); }
+	$(no_check) || { cd $(CURDIR)/src && mkdir $(CURDIR)/debian/home && HOME=$(CURDIR)/debian/home $(CURDIR)/debian/test.bash $(GOROOT)/pkg/tool/$(GOHOSTOS)_$(GOHOSTARCH); }
 
 override_dh_compress:
 	dh_compress -Xusr/share/doc/$(PACKAGE)-doc/html -Xusr/share/doc/$(PACKAGE)-doc/godoc

-- 
Packaging for Google Go



More information about the Pkg-google-commits mailing list