From 3282e81a3a68a624deb06e7768671b1666458ddf Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 26 May 2016 09:26:09 +0100 Subject: [PATCH] debian/rules: Cope with `sbuild', which sets a fake home directory. --- debian/rules | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/rules b/debian/rules index b6d10e5..db3d030 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,15 @@ #! /usr/bin/make -f %:; dh $@ --parallel -Bdebian/build +## The `sbuild' tool sets a fake `home' directory which doesn't exist. This +## breaks ASDF, which wants to write FASL files into `~/.cache/common-lisp/'. +## Set an explicit cache directory for it, and clear away the FASL cache +## directory on clean. +export XDG_CACHE_HOME := $(shell pwd)/debian/build/cache +override_dh_auto_clean: + dh_auto_clean + rm -rf debian/build/cache + ## Don't strip the main executable. (It doesn't work, and you get left with ## a bare SBCL.) override_dh_strip:; dh_strip -Xusr/bin/sod -- 2.11.0