From 53d572bc405f9e297344f842e0bb75a761f7fc23 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Tue, 18 Apr 2023 19:20:18 +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 Signed-off-by: Caleb Connolly Tested-by: Oliver Smith Reviewed-by: Oliver Smith --- 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):