tags 605816 +patch thanks
The attached patch points $HOME for the build at a subdirectory of the build tree (which is created in build and nuked in clean) allowing the package to be built by users with a nonexistent homedir and ensuring that the users homedir can neither affect or be affected by the build process.
--- suckless-tools-37/debian/rules 2010-12-04 21:50:49.000000000 +0000 +++ suckless-tools-37.new/debian/rules 2010-12-04 21:49:57.000000000 +0000 @@ -1,5 +1,7 @@ #!/usr/bin/make -f +export HOME :=$(CURDIR)/debian/fakehome + SHELL := sh -e TOOLS = $(shell ls | sed -e 's|debian||') @@ -9,13 +11,14 @@ override_dh_auto_clean: dh_auto_clean - + rm -rf debian/fakehome for TOOL in $(TOOLS); \ do \ make -C $${TOOL} clean; \ done override_dh_auto_build: + mkdir debian/fakehome find . -name config.mk | xargs sed -i 's,-s ${LIBS},${LIBS},' for TOOL in $(TOOLS); \ do \