Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 2026 20:41:36 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        ports@freebsd.org
Subject:   Uses/cargo.mk and max_jobs_number?
Message-ID:  <75099378.3815.1770147696419@localhost>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi,

I have a poudriere running with all CPUs in use (port is www/deno) instead of using the MAKE_JOBS_NUMBER limit. A fix would be to use a patch like this.
diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index fa2a2837c285..0c7455900f2f 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -348,6 +348,7 @@ do-build:
                --manifest-path ${CARGO_CARGOTOML} \
                --verbose \
                --verbose \
+               --jobs ${MAKE_JOBS_NUMBER} \
                ${CARGO_BUILD_ARGS}
 .  endif

@@ -360,6 +361,7 @@ do-install:
                --root "${STAGEDIR}${PREFIX}" \
                --verbose \
                --verbose \
+               --jobs ${MAKE_JOBS_NUMBER} \
                ${CARGO_INSTALL_ARGS}
 .    endfor
 .  endif
@@ -370,6 +372,7 @@ do-test:
                --manifest-path ${CARGO_CARGOTOML} \
                --verbose \
                --verbose \
+               --jobs ${MAKE_JOBS_NUMBER} \
                ${CARGO_TEST_ARGS}
 .  endif


Any thoughts about this?
I can make a PR to try to get this in the tree.

Regards,
Ronald.
[-- Attachment #2 --]
<html><head></head><body>Hi,<br>
<br>
I have a poudriere running with all CPUs in use (port is www/deno) instead of using the MAKE_JOBS_NUMBER limit. A fix would be to use a patch like this.
<pre style=";white-space: pre-wrap;">diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index fa2a2837c285..0c7455900f2f 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -348,6 +348,7 @@ do-build:
                --manifest-path ${CARGO_CARGOTOML} \
                --verbose \
                --verbose \
+               --jobs ${MAKE_JOBS_NUMBER} \
                ${CARGO_BUILD_ARGS}
 .  endif
 
@@ -360,6 +361,7 @@ do-install:
                --root "${STAGEDIR}${PREFIX}" \
                --verbose \
                --verbose \
+               --jobs ${MAKE_JOBS_NUMBER} \
                ${CARGO_INSTALL_ARGS}
 .    endfor
 .  endif
@@ -370,6 +372,7 @@ do-test:
                --manifest-path ${CARGO_CARGOTOML} \
                --verbose \
                --verbose \
+               --jobs ${MAKE_JOBS_NUMBER} \
                ${CARGO_TEST_ARGS}
 .  endif</pre>
<br>
<br>
<br>
Any thoughts about this?<br>
I can make a PR to try to get this in the tree.<br>
<br>
Regards,<br>
Ronald.</body></html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75099378.3815.1770147696419>