Date: Tue, 15 Mar 2011 17:35:16 -0500 From: Eitan Adler <lists@eitanadler.com> To: FreeBSD Ports ML <freebsd-ports@freebsd.org> Cc: freebsd-questions@freebsd.org Subject: Re: can make -j be used for ports? Message-ID: <AANLkTi=xECg6s7HGeoJFQs96EGwS1tN0Ag6FgFO30QzM@mail.gmail.com> In-Reply-To: <1468BFDD-5E3C-4756-830B-266D0942AED0@mac.com> References: <4D7FBC0E.5020302@reiteration.net> <1468BFDD-5E3C-4756-830B-266D0942AED0@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>Is this possible or am I being unreasonable, or both, or not? This is unsupported, but you are not being unreasonable. This is a much wanted feature. > Yes. =C2=A0Ports which support parallel builds will have MAKE_JOBS_SAFE= =3Dyes set in the port Makefile. =C2=A0It defaults to running -j with MAKE_= JOBS_NUMBER=3D`${SYSCTL} -n kern.smp.cpus`, but you can change that to some= other # if you like. No, this is incorrect. The MAKE_JOBS_NUMBER and MAKE_JOBS_SAFE is used internally when building a single port. When the OP is asking if he can manually specify -j on the command line which would end up building multiple ports in parallel. This can not be done (primarily because there is no locking done on ports) Certain utilities can make this process faster. For example portmaster prefetches as much as it can, --=20 Eitan Adler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=xECg6s7HGeoJFQs96EGwS1tN0Ag6FgFO30QzM>