[Qa-jenkins-scm] [jenkins.debian.net] 03/06: reproducible Arch Linux: using mktemp for pacman tmp PKGBUILD file
Holger Levsen
holger at layer-acht.org
Thu Nov 23 08:56:56 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 8d026b9cfb2fd50c3ef89c7f4f3ed923ae7646a1
Author: anthraxx <levente at leventepolyak.net>
Date: Thu Nov 23 00:57:40 2017 +0100
reproducible Arch Linux: using mktemp for pacman tmp PKGBUILD file
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_setup_archlinux_schroot.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh
index 84b4a2f..58698f1 100755
--- a/bin/reproducible_setup_archlinux_schroot.sh
+++ b/bin/reproducible_setup_archlinux_schroot.sh
@@ -132,15 +132,16 @@ if [ "$HOSTNAME" = "profitbricks-build4-amd64" ] ; then
WGET_OPTS="--no-check-certificate"
fi
-wget $WGET_OPTS -O "/tmp/PKGBUILD" "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacman-git"
+PKGBUILD_FILE="$(mktemp --tmpdir=$TEMPDIR PKGBUILD-XXXXXXXXXXXX)"
+wget $WGET_OPTS -O "$PKGBUILD_FILE" "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacman-git"
# work around dependency weirdness: pacman-git is currently detected as 5.0.1, which is older than the released version
-echo 'provides=("pacman=5.0.2")' >> /tmp/PKGBUILD
+echo 'provides=("pacman=5.0.2")' >> $PKGBUILD_FILE
$USERCMD bash <<-__END__
set -e
mkdir /pacman-git
cd /pacman-git
-mv /tmp/PKGBUILD .
+mv $PKGBUILD_FILE ./PKGBUILD
makepkg
__END__
$ROOTCMD sh -c 'yes | pacman -U /pacman-git/pacman-*-x86_64.pkg.tar.xz'
--
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