[Qa-jenkins-scm] [jenkins.debian.net] 01/03: reproducible Arch Linux: add a bit more debugging output
Holger Levsen
holger at layer-acht.org
Mon Dec 11 01:35:45 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit c645a4447af0bf3895f46902064f6e8ba7358eb4
Author: Holger Levsen <holger at layer-acht.org>
Date: Sun Dec 10 19:25:58 2017 +0000
reproducible Arch Linux: add a bit more debugging output
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_build_archlinux_pkg.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index 7e14b42..a5ff7c0 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -143,8 +143,10 @@ first_build() {
schroot --run-session -c $SESSION --directory "$BUILDDIR" -- env GIT_SSL_NO_VERIFY=1 asp checkout "$SRCPACKAGE" 2>&1 | tee -a $LOG || echo "Error: failed to download PKGBUILD for $SRCPACKAGE from $REPOSITORY" | tee -a $LOG
# $SRCPACKAGE is actually the binary package
ACTUAL_SRCPACKAGE=$(ls "$BUILDDIR")
- # just set timezone in the 1st build
+ # modify timezone in the 1st build
echo 'export TZ="/usr/share/zoneinfo/Etc/GMT+12"' | schroot --run-session -c $SESSION --directory /tmp -- tee -a /var/lib/jenkins/.bashrc
+ # some more output for debugging
+ set -x
# remove possible lock in our local session (happens when root maintenance update running while session starts)
schroot --run-session -c $SESSION --directory "$BUILDDIR" -u root -- rm -f /var/lib/pacman/db.lck 2>&1 | tee -a $LOG
# update before pulling new dependencies
@@ -219,13 +221,15 @@ second_build() {
schroot --run-session -c $SESSION --directory "$BUILDDIR" -- env GIT_SSL_NO_VERIFY=1 asp checkout "$SRCPACKAGE" 2>&1 | tee -a $LOG || echo "Error: failed to download PKGBUILD for $SRCPACKAGE from $REPOSITORY" | tee -a $LOG
# $SRCPACKAGE is actually the binary package
ACTUAL_SRCPACKAGE=$(ls "$BUILDDIR")
- # add more variations in the 2nd build: TZ, LANG, LC_ALL, umask
+ # add more variations in the 2nd build: TZ (differently), LANG, LC_ALL, umask
schroot --run-session -c $SESSION --directory /tmp -- tee -a /var/lib/jenkins/.bashrc <<-__END__
export TZ="/usr/share/zoneinfo/Etc/GMT-14"
export LANG="fr_CH.UTF-8"
export LC_ALL="fr_CH.UTF-8"
umask 0002
__END__
+ # some more output for debugging
+ set -x
# remove possible lock in our local session (happens when root maintenance update running while session starts)
schroot --run-session -c $SESSION --directory "$BUILDDIR" -u root -- rm -f /var/lib/pacman/db.lck 2>&1 | tee -a $LOG
# update before pulling new dependencies
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list