Commit 61a4dcaa authored by Eli Schwartz's avatar Eli Schwartz Committed by Holger Levsen

reproducible Arch Linux: fix pacman-git package from AUR fails to build

The proper way to build AUR packages is to grab the tarballed snapshot,
in order to ensure any additional files that come with the PKGBUILD are
actually there.
Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 3a5781e2
......@@ -149,16 +149,13 @@ if [ "$HOSTNAME" = "profitbricks-build4-amd64" ] ; then
WGET_OPTS="--no-check-certificate"
fi
PKGBUILD_FILE="$(mktemp --tmpdir=$TEMPDIR archlinuxrb-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")' >> $PKGBUILD_FILE
PACMAN_GIT_SNAPSHOT="$(mktemp --tmpdir=$TEMPDIR archlinuxrb-PACMAN-GIT-XXXXXXXXXXXX)"
wget $WGET_OPTS -O "$PACMAN_GIT_SNAPSHOT" "https://aur.archlinux.org/cgit/aur.git/snapshot/pacman-git.tar.gz"
$USERCMD bash <<-__END__
set -e
mkdir /pacman-git
tar -xzvf "$PACMAN_GIT_SNAPSHOT" -C /
cd /pacman-git
mv $PKGBUILD_FILE ./PKGBUILD
MAKEFLAGS="-j$NUM_CPU" makepkg
__END__
$ROOTCMD sh -c 'yes | pacman -U /pacman-git/pacman-*-x86_64.pkg.tar.xz'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment