build.sh: pin pmbootstrap 3.11.1 from git
Some checks failed
image / image (push) Failing after 2m5s

Alpine's packaged pmbootstrap predates pmaports' master->main rename and
fails reading channels.cfg. Pinning also matches the version the rest of
this script was written against.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jorijn van der Graaf 2026-08-08 16:40:11 +02:00
commit ca9e36c95c

View file

@ -21,7 +21,11 @@ cd "$(dirname "$0")"
# The checkout stays root-owned (later workflow steps need its .git); the # The checkout stays root-owned (later workflow steps need its .git); the
# build user only gets dist/. # build user only gets dist/.
if [ "$(id -u)" = 0 ]; then if [ "$(id -u)" = 0 ]; then
apk add -q pmbootstrap git sudo # pmbootstrap pinned from git: Alpine's package is older and e.g. still
# reads channels.cfg from origin/master (upstream pmaports moved to main).
apk add -q git sudo openssl python3 py3-pip
pip install -q --break-system-packages \
git+https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git@3.11.1
id build >/dev/null 2>&1 || adduser -D build id build >/dev/null 2>&1 || adduser -D build
echo 'build ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/build echo 'build ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/build
rm -rf dist rm -rf dist