# https://github.com/shazow/urllib3/issues/567
echo "USENETWORK=yes" >> ~/.pbuilderrc
setup_pbuilder_for_ppa >> ~/.pbuilderrc
+ install_extra_packages >> ~/.pbuilderrc
fi
sudo pbuilder --clean
old=5;;
7*)
old=7;;
+ 8*)
+ old=8;;
esac
update-alternatives --remove-all gcc
xenial)
old=5;;
bionic)
- old=7;;
+ old=8;;
esac
setup_gcc_hook $old > $hookdir/D10update-gcc-alternatives
chmod +x $hookdir/D10update-gcc-alternatives
echo "HOOKDIR=$hookdir"
}
+install_extra_packages() {
+ case $vers in
+ 1[0-2].*)
+ # jewel, kraken, luminous
+ ;;
+ *)
+ # mimic, nautilus, *
+ case $DIST in
+ trusty|xenial)
+ ;;
+ bionic)
+ echo 'EXTRAPACKAGES="g++-8"';;
+ *)
+ ;;
+ esac
+ ;;
+ esac
+}
+
extra_cmake_args() {
# statically link against libstdc++ for building new releases on old distros
if use_ppa; then