[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: Special-case u-boot on armhf to not build arch:all, as

Vagrant Cascadian gitlab at salsa.debian.org
Thu Jan 9 23:56:04 GMT 2020



Vagrant Cascadian pushed to branch master at Debian QA / jenkins.debian.net


Commits:
08ef4bae by Vagrant Cascadian at 2020-01-09T15:54:36-08:00
reproducible: Special-case u-boot on armhf to not build arch:all, as
the arch:all dependencies are not available on armhf. The majority of
u-boot targets are arch:armhf; reproducibility issues have
historically been target-specific.

- - - - -


1 changed file:

- bin/reproducible_build.sh


Changes:

=====================================
bin/reproducible_build.sh
=====================================
@@ -602,12 +602,18 @@ EOF
 		# pbuilder, so grant complete network access to it.
 		echo "USENETWORK=yes" >> "$TMPCFG"
 	fi
+	DEBBUILDOPTS="-b"
+	if [ "${ARCH}" = "armhf" ] && [ "${SRCPACKAGE}" = "u-boot" ]; then
+		# u-boot dependencies for arch:all on armhf are not available,
+		# as it uses cross-compilers for several architectures.
+		DEBBUILDOPTS="-B"
+	fi
 	set +e
 	# remember to change the sudoers setting if you change the following command
 	sudo timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice \
 	  /usr/sbin/pbuilder --build \
 		--configfile $TMPCFG \
-		--debbuildopts "-b" \
+		--debbuildopts "$DEBBUILDOPTS" \
 		--basetgz /var/cache/pbuilder/$SUITE-reproducible-base.tgz \
 		--buildresult $TMPDIR/b1 \
 		--logfile b1/build.log \
@@ -692,7 +698,13 @@ EOF
 			pbuilder_options+=(--extrapackages usrmerge)
 			;;
 	esac
-
+	DEBBUILDOPTS="-b"
+	if [ "${ARCH}" = "armhf" ] && [ "${SRCPACKAGE}" = "u-boot" ]; then
+		# u-boot dependencies for arch:all on armhf are not
+		# available, as it uses cross-compilers for several
+		# architectures.
+		DEBBUILDOPTS="-B"
+	fi
 	set +e
 	# remember to change the sudoers setting if you change the following command
 	# (the 2nd build gets a longer timeout trying to make sure the first build
@@ -702,7 +714,7 @@ EOF
 		/usr/sbin/pbuilder --build \
 			--configfile $TMPCFG \
 			--hookdir /etc/pbuilder/rebuild-hooks \
-			--debbuildopts "-b" \
+			--debbuildopts "$DEBBUILDOPTS" \
 			--basetgz /var/cache/pbuilder/$SUITE-reproducible-base.tgz \
 			--buildresult $TMPDIR/b2 \
 			--logfile b2/build.log \



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/08ef4bae5bc20dbf0352c962d6ec2784076add5d

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/08ef4bae5bc20dbf0352c962d6ec2784076add5d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200109/06948ce3/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list