Instead of apk adding dependencies to sysroot, use the EXTRADEPENDS_TARGET
to pass in these dependencies. This does not leave the sysroot in
dirty state, but instead cleans it up.
Current abuild has a bug that when CC is defined, it's used to
guess build architecture. But during cross-compile setup it points
to cross compiler and causing breakage. Export CBUILD after initial
abuild functions.sh run to workaround this.
Replace libressl with openssl, add libbsd and libtls-standalone (for busybox)
but still build libressl for apk-tools.
[TT: Remove libressl, it is not needed anymore.]
In order to install abuild, lzip needs to be available. Add it to the list of
packages built in bootstrap.sh.
Fixes: 9674a6492d ("main/abuild: add support for lzip source packages")
- requires new abuild (from git until 2.30 is tagged)
- properly build initial musl-dev before c-compiler is available
- mark core aports with options=toolchain, and fix all makedepends
- bootstrap.sh: reorganize and use set -e there
- bootstrap.sh: use new EXTRADEPENDS_* to pull in implicit dependencies
during bootstrap to simplify the script