[Qa-jenkins-scm] [jenkins.debian.net] 05/05: reproducible: build: refactor: more comments

Holger Levsen holger at moszumanska.debian.org
Sat Apr 18 15:31:10 UTC 2015


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 a5ead45478ec7ba4a5a75581d62f60d98b953fc5
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Mon Apr 6 01:29:47 2015 +0200

    reproducible: build: refactor: more comments
---
 bin/reproducible_build.sh | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 9963a6e..94c66b2 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -249,6 +249,7 @@ check_suitability() {
 build_rebuild() {
 	local FTBFS=1
 	local TMPLOG=$(mktemp --tmpdir=$PWD)
+	local RBUILDLOG=$(mktemp --tmpdir=$PWD) # FIXME check wheter my changes here are fine
 	local TMPCFG=$(mktemp -t pbuilderrc_XXXX --tmpdir=$PWD)
 	local NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
 	mkdir b1 b2
@@ -293,7 +294,7 @@ build_rebuild() {
 		if [ -f b2/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] ; then
 			# both builds were fine, i.e., they did not FTBFS.
 			local FTBFS=0
-			cleanup_userContent # FIXME check wheter my changes were fine
+			cleanup_userContent # FIXME check wheter my changes here are fine
 			mv $RBUILDLOG /var/lib/jenkins/userContent/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log
 			RBUIlDLOG=/var/lib/jenkins/userContent/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log
 			call_debbindiff
@@ -308,16 +309,19 @@ build_rebuild() {
 }
 
 
-TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d)
+#
+# below there is what controls the world
+#
+
+TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d)  # where everything actually happens
 trap cleanup_all INT TERM EXIT
 cd $TMPDIR
 
 DATE=$(date +'%Y-%m-%d %H:%M')
 START=$(date +'%s')
 
-choose_package
+choose_package  # defines SUITE, PKGID, SRCPACKAGE, SCHEDULED_DATE, SAVE_ARTIFACTS
 
-RBUILDLOG=$(mktemp --tmpdir=$PWD) # FIXME
 DBDREPORT=$(echo ${SRCPACKAGE}_${EVERSION}.debbindiff.html)
 BUILDINFO=${SRCPACKAGE}_${EVERSION}_${ARCH}.buildinfo
 
@@ -330,7 +334,7 @@ EVERSION=$(echo $VERSION | cut -d ":" -f2)  # EPOCH_FREE_VERSION was too long
 cat ${SRCPACKAGE}_${EVERSION}.dsc | tee -a ${RBUILDLOG}
 
 check_suitability
-build_rebuild
+build_rebuild  # defines RBUILDLOG
 
 cd ..
 cleanup_all

-- 
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