]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build: set BUILD_HOME in .pbuilderrc
authorAlfredo Deza <adeza@redhat.com>
Wed, 14 Sep 2016 09:56:09 +0000 (15:26 +0530)
committerAlfredo Deza <adeza@redhat.com>
Wed, 14 Sep 2016 12:43:18 +0000 (18:13 +0530)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-build/build/setup_pbuilder

index 0e352c749c628f2f0767c133249818de0d2a5216..4c3fad7c05510d3813dcc64a6916f8d1e3a94a10 100755 (executable)
@@ -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