"pmb:strict" doesn't zap before building
I have a relatively specific use case with the pmb:strict
option which is that a package requires a dependency (cmake-3.15) which conflicts with the normal cmake package and would therefore lead to conflicts in apk if one is installed while the other is needed for the package. Therefore I added pmb:strict
to the package options but this doesn't seem to zap the chroot before building which makes the build fail when not building with --strict
(ERROR: cmake-3.15-3.15.7-r0: trying to overwrite usr/bin/cmake owned by cmake-3.17.2-r0.
).
I believe that this code in pmb.helpers.frontend handles the zapping with build --strict
: https://gitlab.com/postmarketOS/pmbootstrap/-/blob/master/pmb/helpers/frontend.py#L76-78
Example APKBUILD where you can easily test this behavior (note: not master branch): https://gitlab.com/postmarketOS/pmaports/-/blob/feature/unity8_arches/unity8/system-settings/APKBUILD (apk add cmake
in the chroot before building without --strict
and the dependency conflict will happen)