tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Set MAKE_JOBS_SAFE=no for samba?



* On 2019-01-05 at 15:38 GMT, Tobias Nygren wrote:

> On Sat, 5 Jan 2019 11:46:10 +0100
> Benny Siegert <bsiegert%gmail.com@localhost> wrote:
> 
> > net/samba consistently fails to build for me with MAKE_JOBS=12. This
> > is because it wants to link all the things in parallel, which ends up
> > exhausting the maximum number of open files in the system.
> > 
> > Would there be objections if I set it as not MAKE_JOBS_SAFE?
> 
> Hi,
> 
> I'd like to suggest a solution I often use for local kludges.
> You can put this in /etc/mk.conf:
> 
> .if !empty(PKGPATH:Mnet/samba*)
> MAKE_JOBS=4
> .else
> MAKE_JOBS=12
> .endif

Indeed, please use something like this instead of limiting the build
for everyone.  My personal favourite way of doing this is with
something like this in mk.conf:

  PKG_MAKE_JOBS.lang/gcc7=	12
  PKG_MAKE_JOBS.net/samba=	2

  MAKE_JOBS_DEFAULT=		4

  MAKE_JOBS=			${PKG_MAKE_JOBS.${PKGPATH}:U${MAKE_JOBS_DEFAULT}}

Thanks,

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index