aports/scripts/bootstrap.sh breaks in aports/main/musl/APKBUILD
File main/musl/APKBUILD has a bug that breaks the build.
In package()
is a command that tries to get the name of the library:
local LDSO=$(make -f Makefile --eval "$(echo -e 'print-ldso:\n\t@echo $$(basename $(LDSO_PATHNAME))')" print-ldso)
The variable LDSO will also capture the enter directory / leave directory output of make!
To fix it, add the --no-print-directory
option to make.
local LDSO=$(make --no-print-directory -f Makefile --eval "$(echo -e 'print-ldso:\n\t@echo $$(basename $(LDSO_PATHNAME))')" print-ldso)