summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_setup_pbuilder.sh
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2015-05-13 23:53:26 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-14 11:38:46 +0200
commitc6adeaf4ea3bea48c6d2e05b484d2a7cd2ad56c9 (patch)
treeb922b73c2dbbd0e72d9fb098f8195fc41bff046b /bin/reproducible_setup_pbuilder.sh
parent60cdd67de87a178470c5fa94831ce63fad4d1bf2 (diff)
downloadjenkins.debian.net-c6adeaf4ea3bea48c6d2e05b484d2a7cd2ad56c9.tar.xz
reproducible: include locales-all in pbuilder tgz
It is currently intended that both builds are built with different locales to get more variation. In reproducible_build.sh LC_ALL is set to fr_CH.UTF-8. But the minimal pbuilder currently doesn't know this locale, so e.g. calling `date` still outputs English strings. By including locales-all in the pbuilder tgz, all locales will be available.
Diffstat (limited to 'bin/reproducible_setup_pbuilder.sh')
-rwxr-xr-xbin/reproducible_setup_pbuilder.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh
index ea407d2a..1134f779 100755
--- a/bin/reproducible_setup_pbuilder.sh
+++ b/bin/reproducible_setup_pbuilder.sh
@@ -80,6 +80,7 @@ setup_pbuilder() {
NAME=$1
shift
PACKAGES="$@"
+ EXTRA_PACKAGES="locales-all"
echo "$(date) - creating /var/cache/pbuilder/${NAME}.tgz now..."
TMPFILE=$(mktemp)
LOG=$(mktemp)
@@ -94,7 +95,7 @@ setup_pbuilder() {
pbuilder_http_proxy="--http-proxy $http_proxy"
fi
create_setup_tmpfile ${TMPFILE} "${PACKAGES}"
- sudo pbuilder --create $pbuilder_http_proxy --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution $SUITE
+ sudo pbuilder --create $pbuilder_http_proxy --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution $SUITE --extrapackages "$EXTRA_PACKAGES"
if [ "$DEBUG" = "true" ] ; then
cat "$TMPFILE"
fi