[Bug 237290] [PATCH] build(7): PORTS_MODULES does not build in parallel

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 May 2022 07:52:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237290

Tatsuki Makino <tatsuki_makino@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tatsuki_makino@hotmail.com

--- Comment #12 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
If the -B of make -B is only to prevent parallel execution, I think it is
excessive.
For example, the value of .MAKE.MODE changes from normal to compat.

Just make -- and make -j 1 also makes a difference.
Options like -J 15,16 come across in the MAKEFLAGS environment variable.

Wouldn't it be better to pass MAKEFLAGS with the -[Jj] option dropped in the
environment variable?

MAKEFLAGS="${MAKEFLAGS:M*:C/((^| )-[Jjm]) /\1/gW:N-[Jjm]*:NMK_AUTO_OBJ=*}"

The number of jobs when building ports is left to MAKE_JOBS_NUMBER on the ports
side.
If make buildkernel is executed with -j 1, but MAKE_JOBS_NUMBER is 4, then
build the port with 4 jobs.


(In reply to Ivan Rozhuk from comment #11)

:M*@*:C/.*@/FLAVOR=/g is great :)

-- 
You are receiving this mail because:
You are the assignee for the bug.