scripts/bootstrap.sh fails because of missing libmd
[ this is a copy of the email that I tried to send to alpine@bugs.alpinelinux.org but was rejected ]
Hello,
I am new to alpine, so please apologies if I'm missing something obvious.
I'm trying to cross-compile some packages from amd64 to armv7/armhf, but scripts/bootstrap.sh (from aports) after a while, right before building libbsd, complains about a missing libmd and there stops. (this happens regardless of the arch I'm trying to boostrap.)
The exact series of command I ran was:
$ git clone --depth=1 https://github.com/alpinelinux/aports
$ doas addgroup op abuild
$ abuild-keygen -a
$ doas cp /home/op/.abuild/op-6079f11b.rsa.pub /etc/apk/keys/
$ CBUILDROOT=~/cbuildroot/armhf ./scripts/bootstrap.sh armhf
# fails when building libbsd because of missing libmd
$ CBUILDROOT=~/cbuildroot/armv7 ./scripts/bootstrap.sh armv7
# fails as before
I probably don't know what I'm doing, but with the following patch it seems to successfully build libbsd, and then proceeds with the other packages (I've just reached gcc)
(i.e. add ``libmd'' before libbsd)
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 20cc2d5a..8f305a4e 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -96,7 +96,7 @@ EXTRADEPENDS_TARGET="libgcc libstdc++ musl-dev"
# ordered cross-build
for PKG in fortify-headers linux-headers musl libc-dev pkgconf zlib \
- openssl ca-certificates libbsd libtls-standalone busybox busybox-initscripts binutils make \
+ openssl ca-certificates libmd libbsd libtls-standalone busybox busybox-initscripts binutils make \
apk-tools file \
gmp mpfr4 mpc1 isl22 cloog libucontext gcc \
openrc alpine-conf alpine-baselayout alpine-keys alpine-base patch build-base \
I still haven't completed a whole bootstrap (currently building gcc-10) but it seems to progress well. If it matters this is happening on a virtual machine running on vmd(8) on OpenBSD 6.8-CURRENT. Since it's running on a single core it'll take a while to finish building everything, this is why I'm asking early.
Thanks,