HEADS UP multi processor compilations for everyone

Anonymous swell.k at gmail.com
Wed Mar 25 02:53:12 PDT 2009


Pav Lucistnik <pav at FreeBSD.org> writes:

> Anonymous pí¹e v st 25. 03. 2009 v 09:26 +0300:
>> Pav Lucistnik <pav at FreeBSD.org> writes:
>> 
>> > If you are FreeBSD port maintainer:
>> 
>> I'm not one.
>> 
>> >
>> > Nothing changes for you, if you don't want. If you want to enable the
>> > use of multiple cores in your port, add MAKE_JOBS_SAFE=yes to a block
>> > somewhere below dependency declarations. If you know your port does not
>> > handle -jX well, and want to disable it from using -jX even when user
>> > forces this feature, use MAKE_JOBS_UNSAFE=yes. And that's all to it.
>> 
>> Not all ports build using make/gmake. Wouldn't it be better to export
>> the number of parallel processes so maintainer can decide whether to use
>> it in his port build system? For example
>> 
>> Is this completely discouraged?
>
> I suppose you can use internal variable _MAKE_JOBS directly. Why are you
> stripping -j just to add it back again?

Oh, so you're not against the idea. The substitution was to be able to
easy replace it with something else.

FYI, that example went to ports/133054.


More information about the freebsd-ports mailing list