Skip to content
Commits on Source (2)
......@@ -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
......