summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-30 16:58:37 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-30 17:02:12 +0200
commitb6f90f74c953fb582862dcef23afc38bc691249a (patch)
tree5782b7b4e85228f7ae2732110a5c9ca31de44c55
parentd27a80b1634379039a55a958e098a9281f45ec48 (diff)
downloadjenkins.debian.net-b6f90f74c953fb582862dcef23afc38bc691249a.tar.xz
reproducible: stop special casing architectures, almost
-rwxr-xr-xbin/reproducible_build.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index f9701a3e..e067ea8c 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -13,8 +13,8 @@ common_init "$@"
set -e
-# support for different architectures (we have actual support only for amd64)
-ARCH="amd64"
+# support for different architectures
+ARCH="$(dpkg --print-architecture)"
# sleep 1-12 secs to randomize start times
delay_start() {
@@ -414,10 +414,16 @@ check_suitability() {
local SUITABLE=false
local ARCHITECTURES=$(grep "^Architecture: " ${SRCPACKAGE}_*.dsc| cut -d " " -f2- | sed -s "s# #\n#g" | sort -u)
for arch in ${ARCHITECTURES} ; do
- if [ "$arch" = "any" ] || [ "$arch" = "amd64" ] || [ "$arch" = "linux-any" ] || [ "$arch" = "linux-amd64" ] || [ "$arch" = "any-amd64" ] || [ "$arch" = "all" ] ; then
+ if [ "$arch" = "any" ] || [ "$arch" = "$ARCH" ] || [ "$arch" = "linux-any" ] || [ "$arch" = "linux-$ARCH" ] || [ "$arch" = "any-ARCH" ] || [ "$arch" = "all" ] ; then
SUITABLE=true
break
fi
+ # special case arm…
+ if [ "$ARCH" = "armhf" ] && [ "$arch" = "any-arm" ] ; then
+ SUITABLE=true
+ break
+ fi
+
done
if ! $SUITABLE ; then handle_not_for_us $ARCHITECTURES ; fi
}