From 5def0329f9840fcd2f38da2181da708ec44239ca Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Tue, 18 Apr 2023 18:33:47 +0100 Subject: [PATCH] build: support new abuild.conf path abuild.conf got moved to /usr/share/abuild/default.conf and /etc/abuild.conf is now just for user-changes. Adjust configure_abuild() to append to /etc/abuild.conf if there is no line defining JOBS This should be backward compatible --- pmb/build/other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/build/other.py b/pmb/build/other.py index d9557503..1c6bafae 100644 --- a/pmb/build/other.py +++ b/pmb/build/other.py @@ -152,7 +152,7 @@ def configure_abuild(args, suffix, verify=False): suffix) configure_abuild(args, suffix, True) return - raise RuntimeError("Could not find " + prefix + " line in " + path) + pmb.chroot.root(args, ["sed", "-i", f"$ a\\{prefix}{args.jobs}", "/etc/abuild.conf"], suffix) def configure_ccache(args, suffix="native", verify=False): -- 2.45.2