Skip to content

Don't uninstall depends when build --strict fails

Oliver Smith requested to merge fix/keep-pkgs-after-build-strict-fail into master

Alpine's abuild will uninstall all dependencies by default, when a package build fails.

Leaving this configuration unchanged leads to unexpected behavior with pmbootstrap: when executing pmbootstrap build --strict and pressing ^C during the build, pmbootstrap will stop, but an apk process will be started in the background to remove the dependency packages.

Running pmbootstrap shutdown at this time will not work, because the apk process is still running.

With this commit, dependencies don't get cleaned up from the chroots.

How to test:

  1. Build a big package
$ pmbootstrap build linux-postmarketos-stable --strict --force
  1. Have pmbootstrap log open
  2. During the build, hit ^C
  3. With this MR, it will stop immediatelly. Without it, it will display the output of apk uninstalling all the packages in the log.
Edited by Oliver Smith

Merge request reports