From a22d4df4b46ce6481f809ee8886ce78a5b254fff Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Tue, 23 Sep 2014 10:45:59 +0200 Subject: [PATCH] Fix debian building where $HOME is read-only. --- debian/rules | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index f7e3829..af65ba7 100755 --- a/debian/rules +++ b/debian/rules @@ -19,14 +19,19 @@ else SIZE=4096 endif +# buildd provides a build environment where $HOME is not writable, but the +# CL compilers here will need to fill-in a per-user cache +export HOME = $(CURDIR)/debian/home + orig: clean + rm -rf $(HOME) cd .. && tar czf pgloader_$(PKGVERS).orig.tar.gz $(EXCLUDE) pgloader override_dh_auto_build: make docs mkdir -p build/bin - buildapp --logfile /tmp/pgloader-build.log \ - --require sb-posix \ + mkdir -p $(HOME) + buildapp --require sb-posix \ --require sb-bsd-sockets \ --load /usr/share/common-lisp/source/cl-asdf/build/asdf.lisp \ --asdf-path . \