Date: Tue, 15 Mar 2011 15:44:48 -0700 From: David Forsythe <dforsyth@FreeBSD.org> To: Eitan Adler <lists@eitanadler.com> Cc: John <lists@reiteration.net>, FreeBSD Ports ML <freebsd-ports@freebsd.org>, freebsd-questions@freebsd.org Subject: Re: can make -j be used for ports? Message-ID: <AANLkTim4Km38n4K_6gK%2Bo8EwUJmKTyeoUakq1G4icijF@mail.gmail.com> In-Reply-To: <AANLkTi=xECg6s7HGeoJFQs96EGwS1tN0Ag6FgFO30QzM@mail.gmail.com> References: <4D7FBC0E.5020302@reiteration.net> <1468BFDD-5E3C-4756-830B-266D0942AED0@mac.com> <AANLkTi=xECg6s7HGeoJFQs96EGwS1tN0Ag6FgFO30QzM@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I had patches for this a couple of years ago when I worked on this problem for summer of code. What I did back then is surely stale, but if people really want it, I'd be happy to take another stab at it. On Tue, Mar 15, 2011 at 3:35 PM, Eitan Adler <lists@eitanadler.com> wrote: >>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, > > > -- > Eitan Adler > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > --=20 David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim4Km38n4K_6gK%2Bo8EwUJmKTyeoUakq1G4icijF>