From: Alfredo Deza Date: Tue, 20 Sep 2016 18:53:18 +0000 (-0400) Subject: ceph-dev-build: allow network usage for pbuilder X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F486%2Fhead;p=ceph-build.git ceph-dev-build: allow network usage for pbuilder Signed-off-by: Alfredo Deza --- diff --git a/ceph-dev-build/build/setup_pbuilder b/ceph-dev-build/build/setup_pbuilder index c6f142a7..43ce9176 100755 --- a/ceph-dev-build/build/setup_pbuilder +++ b/ceph-dev-build/build/setup_pbuilder @@ -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