[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: reproducible Archlinux: be more verbose

Holger Levsen gitlab at salsa.debian.org
Mon Oct 1 15:46:51 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
4a7240ae by Holger Levsen at 2018-10-01T14:31:45Z
reproducible Archlinux: be more verbose

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
20dd1463 by Holger Levsen at 2018-10-01T14:46:38Z
reproducible Archlinux: build2 also needs to be able to run pacman as root

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_build_archlinux_pkg.sh


Changes:

=====================================
bin/reproducible_build_archlinux_pkg.sh
=====================================
@@ -423,10 +423,11 @@ second_build() {
 	export LC_ALL="fr_CH.UTF-8"
 	umask 0002
 	__END__
-	# create group and user
+	# create 'build2' group and user, chown $BUILDIR to them and allow build2 to run pacman as root
 	schroot --run-session -c $SESSION --directory "$BUILDDIR" -u root -- groupadd build2
 	schroot --run-session -c $SESSION --directory "$BUILDDIR" -u root -- useradd -g build2 build2
 	schroot --run-session -c $SESSION --directory "$BUILDDIR" -u root -- chown -R build2:build2 "$BUILDDIR"
+	echo 'build2 ALL= NOPASSWD: /usr/sbin/pacman *' | schroot --run-session -c $SESSION --directory "$BUILDDIR" -u root -- tee -a /etc/sudoers
 	# some more output for debugging
 	set -x
 	# remove possible lock in our local session (happens when root maintenance update running while session starts)
@@ -633,7 +634,10 @@ if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; the
 			ls $TMPDIR/b2/$SRCPACKAGE
 			( echo "<html><body><p>$SRCPACKAGE/$ARTIFACT built in a strange unreproducible way:<br />"
 			ls $TMPDIR/b1/$SRCPACKAGE
+			echo "<br />"
 			ls $TMPDIR/b2/$SRCPACKAGE
+			echo "<br />"
+			echo "Maybe $BUILD_URL has some more information why this happened."
 			echo "</p></body>"
 			) > "$BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html"
 		fi



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/7da0fcb2035b49c9bf126bbcc100426290f99b47...20dd146351f5a9336602114eb737d4f4f6f4edb9

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/7da0fcb2035b49c9bf126bbcc100426290f99b47...20dd146351f5a9336602114eb737d4f4f6f4edb9
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/20181001/14edfc74/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list