Uses/cargo.mk and max_jobs_number?

Ronald Klop <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <75099378.3815.1770147696419@localhost>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.