[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Arch Linux: add code to determine the version of the package being built (and temporarily spam irc)
Holger Levsen
holger at layer-acht.org
Wed Nov 29 16:03:55 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 8f077e951ccb05048aece00fc0a32a338192385b
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Nov 29 16:03:31 2017 +0000
reproducible Arch Linux: add code to determine the version of the package being built (and temporarily spam irc)
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_build_archlinux_pkg.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index 5051a6b..6cf3cad 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -172,6 +172,13 @@ first_build() {
schroot --run-session -c $SESSION --directory "$BUILDDIR" -- pacman -Q 2>&1 | tee -a $LOG
# TODO: debugging, remove me
schroot --run-session -c $SESSION --directory "$BUILDDIR" -- pacman -Si gnupg 2>&1 | tee -a $LOG
+ # determine the version of the package being build
+ source PKGBUILD
+ if [[ -n epoch ]] ; then
+ epoch="$epoch:"
+ fi
+ VERSION="$epoch$pkgver-$pkgrel"
+ irc_message archlinux-reproducible "doing 1st build of source package ${SRCPACKAGE} ($VERSION) in $REPOSITORY now..."
# nicely run makepkg with a timeout of $TIMEOUT hours
timeout -k $TIMEOUT.1h ${TIMEOUT}h /usr/bin/ionice -c 3 /usr/bin/nice \
schroot --run-session -c $SESSION --directory "$BUILDDIR/$ACTUAL_SRCPACKAGE/trunk" -- bash -l -c "$MAKEPKG_ENV_VARS makepkg --syncdeps --noconfirm 2>&1" | tee -a $LOG
@@ -253,6 +260,13 @@ second_build() {
schroot --run-session -c $SESSION --directory "$BUILDDIR" -- pacman -Q 2>&1 | tee -a $LOG
# TODO: debugging, remove me
schroot --run-session -c $SESSION --directory "$BUILDDIR" -- pacman -Si gnupg 2>&1 | tee -a $LOG
+ # determine the version of the package being build
+ source PKGBUILD
+ if [[ -n epoch ]] ; then
+ epoch="$epoch:"
+ fi
+ VERSION="$epoch$pkgver-$pkgrel"
+ irc_message archlinux-reproducible "doing 2nd build of source package ${SRCPACKAGE} ($VERSION) in $REPOSITORY now..."
# nicely run makepkg with a timeout of $TIMEOUT hours
timeout -k $TIMEOUT.1h ${TIMEOUT}h /usr/bin/ionice -c 3 /usr/bin/nice \
schroot --run-session -c $SESSION --directory "$BUILDDIR/$ACTUAL_SRCPACKAGE/trunk" -- bash -l -c "$MAKEPKG_ENV_VARS makepkg --syncdeps --noconfirm 2>&1" | tee -a $LOG
--
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