gamescope build: pacman without its download sandbox inside the container

This commit is contained in:
The412Banner committed 2026-09-23 09:12:15 -04:00
1 parent 23f3e3ccf7
commit 9841899cff
1 file changed
+3
+3
View File
@@ -7,6 +7,9 @@ set -euxo pipefail
VERSION=${GAMESCOPE_VERSION:-3.16.29}
WORK=/work
cd "$WORK"
# pacman's download sandbox (Landlock + the alpm user) cannot be set up inside the runner's
# container; the packages still come signed from Arch Linux ARM's mirrors.
grep -q '^DisableSandbox' /etc/pacman.conf || sed -i 's/^\[options\]/[options]\nDisableSandbox/' /etc/pacman.conf
pacman -Syu --noconfirm --needed git sudo zstd binutils
# makepkg refuses root; a builder user with passwordless sudo installs the dependencies.
id builder >/dev/null 2>&1 || useradd -m builder