diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-10-18 01:31:16 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-10-18 01:31:16 +0200 |
commit | 524e7ec32d6141ebc89e17de11750decae12398d (patch) | |
tree | 3cff1510a8e7499fd5a16c5f388b1d2844f7348f | |
parent | d6f0c8714c29b95c164c4d82cc3cf1660e82488b (diff) | |
download | jenkins.debian.net-524e7ec32d6141ebc89e17de11750decae12398d.tar.xz |
reproducible arch: properly run commands with bash
-rwxr-xr-x | bin/reproducible_arch_schroot_setup.sh | 14 | ||||
-rwxr-xr-x | bin/reproducible_build_arch_pkg.sh | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh index 4beae5d6..fda9dff1 100755 --- a/bin/reproducible_arch_schroot_setup.sh +++ b/bin/reproducible_arch_schroot_setup.sh @@ -84,13 +84,13 @@ chmod 755 $SCHROOT_BASE/$TARGET/etc/profile.d/proxy.sh echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/root/.bashrc # configure pacman -$ROOTCMD bash -c pacman-key --init -$ROOTCMD bash -c pacman-key --populate archlinux +$ROOTCMD bash -c 'pacman-key --init' +$ROOTCMD bash -c 'pacman-key --populate archlinux' echo "Server = $ARCH_MIRROR/\$repo/os/\$arch" | tee -a $SCHROOT_BASE/$TARGET/etc/pacman.d/mirrorlist -$ROOTCMD bash -c pacman -Syu --noconfirm -$ROOTCMD bash -c pacman -S --noconfirm base-devel devtools abs +$ROOTCMD bash -c 'pacman -Syu --noconfirm' +$ROOTCMD bash -c 'pacman -S --noconfirm base-devel devtools abs' # configure abs -$ROOTCMD bash -c abs core extra +$ROOTCMD bash -c 'abs core extra' # configure sudo echo 'jenkins ALL= NOPASSWD: /usr/sbin/pacman *' | $ROOTCMD tee -a /etc/sudoers @@ -98,7 +98,7 @@ echo 'jenkins ALL= NOPASSWD: /usr/sbin/pacman *' | $ROOTCMD tee -a /etc/sudoers $ROOTCMD mkdir /var/lib/jenkins $ROOTCMD chown -R jenkins:jenkins /var/lib/jenkins echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/var/lib/jenkins/.bashrc -$USERCMD bash -c gpg --check-trustdb # first run will create ~/.gnupg/gpg.conf -$USERCMD bash -c gpg --recv-keys 0x091AB856069AAA1C +$USERCMD bash -c 'gpg --check-trustdb' # first run will create ~/.gnupg/gpg.conf +$USERCMD bash -c 'gpg --recv-keys 0x091AB856069AAA1C' echo "schroot $TARGET set up successfully in $SCHROOT_BASE/$TARGET - exiting now." diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh index 1b2c8539..5c2be897 100755 --- a/bin/reproducible_build_arch_pkg.sh +++ b/bin/reproducible_build_arch_pkg.sh @@ -54,7 +54,7 @@ first_build() { schroot --run-session -c $SESSION --directory /tmp -- cp -r /var/abs/core/$SRCPACKAGE $BUILDDIR/ # just set 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 - schroot --run-session -c $SESSION --directory $BUILDDIR/$SRCPACKAGE -- bash -c makepkg --syncdeps --noconfirm --skippgpcheck 2>&1 | tee -a $LOG + schroot --run-session -c $SESSION --directory $BUILDDIR/$SRCPACKAGE -- bash -c 'makepkg --syncdeps --noconfirm --skippgpcheck 2>&1' | tee -a $LOG schroot --end-session -c $SESSION if ! "$DEBUG" ; then set +x ; fi } @@ -79,7 +79,7 @@ second_build() { echo 'export LANG="fr_CH.UTF-8"' | schroot --run-session -c $SESSION --directory /tmp -- tee -a /var/lib/jenkins/.bashrc echo 'export LC_ALL="fr_CH.UTF-8' | schroot --run-session -c $SESSION --directory /tmp -- tee -a /var/lib/jenkins/.bashrc echo 'umask 0002' | schroot --run-session -c $SESSION --directory /tmp -- tee -a /var/lib/jenkins/.bashrc - schroot --run-session -c $SESSION --directory $BUILDDIR/$SRCPACKAGE -- bash -c makepkg --syncdeps --noconfirm --skippgpcheck 2>&1 | tee -a $LOG + schroot --run-session -c $SESSION --directory $BUILDDIR/$SRCPACKAGE -- bash -c 'makepkg --syncdeps --noconfirm --skippgpcheck 2>&1' | tee -a $LOG schroot --end-session -c $SESSION if ! "$DEBUG" ; then set +x ; fi } |