From d4cc10bc9471cf69b26e171421e8e13a91d79f72 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 20 Sep 2024 13:24:21 +0200 Subject: [PATCH] Ensure that at least 1 CPU is used for build Thanks to Santiago Vila for the patch (Closes: #1082360) --- debian/changelog | 3 +++ debian/rules | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 02428a2a..12efc0e9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ llvm-toolchain-19 (1:19.1.0-4) UNRELEASED; urgency=medium [ Sylvestre Ledru ] * Adjust the workaround for apt.llvm.org version upgrades https://github.com/llvm/llvm-project/issues/109276 + * Ensure that at least 1 CPU is used for build + Thanks to Santiago Vila for the patch + (Closes: #1082360) [ Matthias Klose ] * Don't relax versioned shlibs dependencies for snapshot builds and diff --git a/debian/rules b/debian/rules index 843e8b9e..8736d61f 100755 --- a/debian/rules +++ b/debian/rules @@ -84,7 +84,7 @@ else endif NJOBS := $(shell mt=`awk '/^(MemAvail|SwapFree)/ { mt += $$2 } END {print mt}' /proc/meminfo`; \ awk -vn=$(NCPUS) -vmt=$$mt -vm=$(MEM_PER_CPU) \ - 'END { mt/=1024; n2 = int(mt/m); print n==1 ? 1 : n2