From: Alfredo Deza Date: Wed, 14 Sep 2016 09:56:09 +0000 (+0530) Subject: ceph-build: set BUILD_HOME in .pbuilderrc X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b269ab5c4d0237eba4772e6263449d23110801b1;p=ceph-build.git ceph-build: set BUILD_HOME in .pbuilderrc Signed-off-by: Alfredo Deza --- diff --git a/ceph-build/build/setup_pbuilder b/ceph-build/build/setup_pbuilder index 0e352c74..4c3fad7c 100755 --- a/ceph-build/build/setup_pbuilder +++ b/ceph-build/build/setup_pbuilder @@ -73,6 +73,9 @@ fi # Unable to resolve dependencies! Giving up... echo "$components" > ~/.pbuilderrc echo "$debootstrapopts" >> ~/.pbuilderrc +# Newer pbuilder versions set $HOME to /nonexistent which breaks all kinds of +# things that rely on a proper (writable) home directory +echo "BUILD_HOME=/home/`whoami`/.pbuilderrc" >> ~/.pbuilderrc sudo pbuilder --clean