Failed to run 'scripts/bootstrap.sh riscv64'
I am unable to run scripts/bootstrap.sh riscv64
to completion (error in [3]).
I suspect that this commit: 511351f2 may have introduced additional dependencies to busybox that are unaccounted for in the bootstrap.sh
script, but I'm not familiar enough with aports to further debug the issue.
Steps to reproduce in a docker container:
mkdir -p work/cache && docker run --rm -it -w=/mnt -v=$PWD:/mnt -v=$PWD/work/cache:/var/cache/ alpine:edge
Then inside the container:
./setup-00.sh
su -c ./setup-01.sh builder
[1] setup-00.sh
USER=builder
cat <<- EOF > /etc/apk/repositories
https://dl-cdn.alpinelinux.org/alpine/edge/main
https://dl-cdn.alpinelinux.org/alpine/edge/community
EOF
apk update
apk upgrade
apk add alpine-sdk sudo
adduser -D $USER
cat <<- EOF > /etc/sudoers.d/$USER
$USER ALL=(ALL) NOPASSWD:ALL
EOF
addgroup $USER abuild
mkdir -p work && chown $USER:$USER work
[2] setup-01.sh
abuild-keygen -ain
git clone --depth 1 --branch master https://gitlab.alpinelinux.org/alpine/aports work/aports || (
cd work/aports && git pull
cd -
)
cd work/aports && ./scripts/bootstrap.sh riscv64
[3] relevant log section
...
>>> libretls: Updating the main/riscv64 repository index...
>>> libretls: Signing the index...
>>> busybox: Building main/busybox 1.35.0-r10 (using abuild 3.9.0-r0) started Tue, 03 May 2022 21:10:30 +0000
>>> busybox: Checking sanity of /mnt/work/aports/main/busybox/APKBUILD...
>>> busybox: Analyzing dependencies...
ERROR: unable to select packages:
.hostdepends-busybox-20220503.211030:
masked in: cache
satisfies: world[.hostdepends-busybox=20220503.211030]
utmps-dev (no such package):
required by: .hostdepends-busybox-20220503.211030[utmps-dev]
utmps-static (no such package):
required by: .hostdepends-busybox-20220503.211030[utmps-static]
skalibs-static (no such package):
required by: .hostdepends-busybox-20220503.211030[skalibs-static]
>>> ERROR: busybox: builddeps failed
>>> busybox: Uninstalling dependencies...
ERROR: No such package: .makedepends-busybox
ERROR: No such package: .hostdepends-busybox