summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_setup_archlinux_schroot.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-15 12:51:02 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-15 12:51:02 +0100
commit1a507bbebad8352489058fd47840e6420163ec6c (patch)
treed791ce38f5f04cb180c6068869fedf98cde95435 /bin/reproducible_setup_archlinux_schroot.sh
parente095c328e396f175620d85b0a36d5b293b87f401 (diff)
downloadjenkins.debian.net-1a507bbebad8352489058fd47840e6420163ec6c.tar.xz
reproducible archlinux: enable multilib, so multilib can be build
Diffstat (limited to 'bin/reproducible_setup_archlinux_schroot.sh')
-rwxr-xr-xbin/reproducible_setup_archlinux_schroot.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh
index 2b5bf3da..97b3a4e2 100755
--- a/bin/reproducible_setup_archlinux_schroot.sh
+++ b/bin/reproducible_setup_archlinux_schroot.sh
@@ -87,7 +87,11 @@ echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/root/.bashrc
# configure pacman
$ROOTCMD bash -l -c 'pacman-key --init'
$ROOTCMD bash -l -c 'pacman-key --populate archlinux'
+# use a specific mirror
echo "Server = $ARCHLINUX_MIRROR/\$repo/os/\$arch" | tee -a $SCHROOT_BASE/$TARGET/etc/pacman.d/mirrorlist
+# enable multilib
+# (-0777 tells perl to read the whole file before processing it. then it just does a multi-line regex…)
+perl -0777 -i -pe 's/#\[multilib\]\n#Include = \/etc\/pacman.d\/mirrorlist/[multilib]\nInclude = \/etc\/pacman.d\/mirrorlist/igs' $SCHROOT_BASE/$TARGET/etc/pacman.conf
$ROOTCMD bash -l -c 'pacman -Syu --noconfirm'
$ROOTCMD bash -l -c 'pacman -S --noconfirm base-devel devtools abs'
# configure abs