]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-build: allow network usage for pbuilder 486/head
authorAlfredo Deza <adeza@redhat.com>
Tue, 20 Sep 2016 18:53:18 +0000 (14:53 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 20 Sep 2016 18:53:18 +0000 (14:53 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-dev-build/build/setup_pbuilder

index c6f142a7fe2b268ddfce2561266a930cbd446b34..43ce91768d819772eec0457cd57da5d632c6e838 100755 (executable)
@@ -74,8 +74,15 @@ fi
 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
+# things that rely on a proper (writable) path. Setting this to the system user's $HOME is not enough
+# because of how pbuilder uses a chroot environment for builds, using a temporary directory here ensures
+# that writes will be successful.
+echo "BUILD_HOME=`mktemp -d`" >> ~/.pbuilderrc
+# Some Ceph components will want to use cached wheels that may have older versions of buggy executables
+# like: /usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl which causes errors that are already fixed
+# in newer versions. This ticket solves the specific issue in 8.1.1 (which vendors urllib3):
+# https://github.com/shazow/urllib3/issues/567
+echo "USENETWORK=yes" >> ~/.pbuilderrc
 
 sudo pbuilder --clean