[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible archlinux: refactor and enable multilib repository

Holger Levsen holger at moszumanska.debian.org
Tue Dec 15 01:12:19 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 5dc30b0096fd8ffd1a0998227658d37afd05dccd
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Dec 15 02:11:56 2015 +0100

    reproducible archlinux: refactor and enable multilib repository
---
 bin/reproducible_build_archlinux_pkg.sh     | 12 ++++++------
 bin/reproducible_common.sh                  |  2 +-
 bin/reproducible_setup_archlinux_schroot.sh |  5 ++++-
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index 9bce19c..ed3847a 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -74,12 +74,12 @@ choose_package() {
 	local PKG
 	for REPO in $ARCHLINUX_REPOS ; do
 		case $REPO in
-			core)	MIN_AGE=6
-				;;
-			extra)	MIN_AGE=27
-				;;
-			*)	MIN_AGE=99	# should never happen…
-				;;
+			core)		MIN_AGE=6
+					;;
+			extra|multilib)	MIN_AGE=27
+					;;
+			*)		MIN_AGE=99	# should never happen…
+					;;
 		esac
 		for PKG in $(cat ${ARCHLINUX_PKGS}_$REPO) ; do
 			# build package if it has never build or at least $MIN_AGE days ago
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 371bf06..3fff5bd 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -54,7 +54,7 @@ USERTAGS="toolchain infrastructure timestamps fileordering buildpath username ho
 
 # common settings for testing Archlinux
 ARCHLINUX_BUILD_NODE=profitbricks-build3-amd64
-ARCHLINUX_REPOS="core extra"
+ARCHLINUX_REPOS="core extra multilib"
 ARCHLINUX_PKGS=/srv/reproducible-results/.archlinux_pkgs
 
 # common settings for testing rpm based distros
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh
index 02f49cb..2b5bf3d 100755
--- a/bin/reproducible_setup_archlinux_schroot.sh
+++ b/bin/reproducible_setup_archlinux_schroot.sh
@@ -12,6 +12,9 @@ DEBUG=false
 . /srv/jenkins/bin/common-functions.sh
 common_init "$@"
 
+# common code
+. /srv/jenkins/bin/reproducible_common.sh
+
 # define archlinux mirror to be used
 ARCHLINUX_MIRROR=http://mirror.one.com/archlinux/
 
@@ -88,7 +91,7 @@ echo "Server = $ARCHLINUX_MIRROR/\$repo/os/\$arch" | tee -a $SCHROOT_BASE/$TARGE
 $ROOTCMD bash -l -c 'pacman -Syu --noconfirm'
 $ROOTCMD bash -l -c 'pacman -S --noconfirm base-devel devtools abs'
 # configure abs
-$ROOTCMD bash -l -c 'abs core extra'
+$ROOTCMD bash -l -c "abs $ARCHLINUX_REPOS"
 # configure sudo
 echo 'jenkins ALL= NOPASSWD: /usr/sbin/pacman *' | $ROOTCMD tee -a /etc/sudoers
 

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