Don't uninstall depends when build --strict fails
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.
This commit is contained in:
parent
4d770cee85
commit
2399cbb373
|
@ -86,6 +86,12 @@ def init(args, suffix="native"):
|
|||
pmb.chroot.root(args, ["sed", "-i", "-e", "s/^CLEANUP=.*/CLEANUP=''/",
|
||||
"/etc/abuild.conf"], suffix)
|
||||
|
||||
# abuild.conf: Don't clean up installed packages in strict mode, so
|
||||
# abuild exits directly when pressing ^C in pmbootstrap.
|
||||
pmb.chroot.root(args, ["sed", "-i", "-e",
|
||||
"s/^ERROR_CLEANUP=.*/ERROR_CLEANUP=''/",
|
||||
"/etc/abuild.conf"], suffix)
|
||||
|
||||
# Qemu workaround (aarch64 only)
|
||||
arch = pmb.parse.arch.from_chroot_suffix(args, suffix)
|
||||
emulate = pmb.parse.arch.cpu_emulation_required(args, arch)
|
||||
|
|
Loading…
Reference in New Issue