diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-04-06 13:12:32 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-04-06 13:12:32 +0200 |
commit | 980fdb93edf5186d75d7fa9a758006253597c4e8 (patch) | |
tree | e7fc7a855f0aa11c64909c68a108961061f7d414 | |
parent | 8f3f5f4da6a74504f6af7f289660913766b4b84a (diff) | |
download | jenkins.debian.net-980fdb93edf5186d75d7fa9a758006253597c4e8.tar.xz |
reproducible debian: differ locale+language depending on the architecture
-rwxr-xr-x | bin/reproducible_build.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index cb6f2c07..28bb5afa 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -591,14 +591,26 @@ second_build() { set -x local TMPCFG=$(mktemp -t pbuilderrc_XXXX --tmpdir=$TMPDIR) NEW_NUM_CPU=$NUM_CPU # on amd64+i386 we vary this based on node choices (by design), on armhf only sometimes. + # differ locale+language depending on the architecture (mostly for readability by different people…) + case $ARCH in + armel) locale=it_CH + language=it + ;; + i386) locale=de_CH + language=de + ;; + *) locale=fr_CH + language=fr + ;; + esac cat > "$TMPCFG" << EOF BUILDUSERID=2222 BUILDUSERNAME=pbuilder2 export DEB_BUILD_OPTIONS="parallel=$NUM_CPU" export TZ="/usr/share/zoneinfo/Etc/GMT-14" -export LANG="fr_CH.UTF-8" -export LC_ALL="fr_CH.UTF-8" -export LANGUAGE="fr_CH:fr" +export LANG="$locale.UTF-8" +export LC_ALL="$locale.UTF-8" +export LANGUAGE="$locale:$language" umask 0002 EOF set +e |