abuild -r does not install depends of subpackages
I'm not sure if this is a bug or intended behavior. But I just stumbled across this, creating an issue for future reference.
Minimal version of this APKBUILD, for illustration:
pkgname=soc-qcom-msm8916
depends="$pkgname-ucm swclock-offset"
subpackages="
$pkgname-rproc-all:rproc_all
"
rproc_all() {
depends="msm-modem msm-modem-uim-selection q6voiced"
…
}
$ abuild -r -f
>>> soc-qcom-msm8916: Building pmos/soc-qcom-msm8916 21-r0 (using abuild 3.12.0-r1) started Tue, 16 Apr 2024 20:21:51 +0000
>>> soc-qcom-msm8916: Checking sanity of /home/pmos/build/APKBUILD...
>>> soc-qcom-msm8916: Analyzing dependencies...
>>> soc-qcom-msm8916: Installing for build: build-base swclock-offset
abuild -r
installs swclock-offset
, a dependency of the main package. But not msm-modem
, msm-modem-uim-selection
or q6voiced
, which are depends of the rproc_all()
subpackage.
Before the user can install soc-qcom-msm8916
however, the depends of the subpackage must have been built too.
Related code in abuild is here: https://gitlab.alpinelinux.org/alpine/abuild/-/blob/54fd3e41172a6d1d142782856d47c188af168d03/abuild.in#L2352-2376