[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: differ locale+language depending on the architecture

Holger Levsen holger at moszumanska.debian.org
Wed Apr 6 11:12:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 980fdb93edf5186d75d7fa9a758006253597c4e8
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Apr 6 13:12:32 2016 +0200

    reproducible debian: differ locale+language depending on the architecture
---
 bin/reproducible_build.sh | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index cb6f2c0..28bb5af 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list