From 8f81c004d52b79b0057833073093778607185537 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 29 Sep 2014 11:03:07 +0200 Subject: reproducible: only try to build packages for our architecture --- bin/reproducible_build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 3755bf3b..4290ae38 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -23,7 +23,7 @@ if [ ! -f $PACKAGES_DB ] ; then (name TEXT NOT NULL, version TEXT NOT NULL, status TEXT NOT NULL - CHECK (status IN ("FTBFS","reproducible","unreproducible","404")), + CHECK (status IN ("FTBFS","reproducible","unreproducible","404", "not for us")), build_date TEXT NOT NULL, diffp_path TEXT, PRIMARY KEY (name))' @@ -88,6 +88,14 @@ for SRCPACKAGE in $PACKAGES ; do echo "Warning: ${SRCPACKAGE} is not a source package, or was removed or renamed. Please investigate." sqlite3 -init $INIT $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"404\", \"$DATE\", \"\")" else + ARCH=$(grep "^Architecture: " ${SRCPACKAGE}_*.dsc| cut -d ":" -f2) + if [[ ! "$ARCH" =~ "amd64" ]] && [[ ! "$ARCH" =~ "all" ]] ; then + sqlite3 -init $INIT $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"not for us\", \"$DATE\", \"\")" + echo "Package ${SRCPACKAGE} (${VERSION}) shall only be build on \"$ARCH\" and was thus skipped." + let "COUNT_SKIPPED=COUNT_SKIPPED+1" + SKIPPED="${SRCPACKAGE} ${SKIPPED}" + continue + fi STATUS=$(sqlite3 $PACKAGES_DB "SELECT status FROM source_packages WHERE name = \"${SRCPACKAGE}\" AND version = \"${VERSION}\"") if [ "$STATUS" = "reproducible" ] && [ $(( $RANDOM % 100 )) -gt 20 ] ; then echo "Package ${SRCPACKAGE} (${VERSION}) build reproducibly in the past and was thus randomly skipped." @@ -148,6 +156,6 @@ echo echo echo "$COUNT_TOTAL packages attempted to build in total." echo "$COUNT_GOOD packages successfully built reproducibly: ${GOOD}" -echo "$COUNT_SKIPPED packages skipped which were successfully built reproducibly in the past: ${SKIPPED}" +echo "$COUNT_SKIPPED packages skipped (either because they were successfully built reproducibly in the past or because they are not for amd64 / arch all): ${SKIPPED}" echo "$COUNT_BAD packages failed to built reproducibly: ${BAD}" echo "The following source packages doesn't exist in sid: $SOURCELESS" -- cgit v1.2.3-70-g09d2