Subject: Re: setting limit in pkg Makefile?
To: None <mcmahill@mtl.mit.edu>
From: Frederick Bruckman <fredb@enteract.com>
List: tech-pkg
Date: 08/15/1998 17:29:43
On Sat, 15 Aug 1998 mcmahill@mtl.mit.edu wrote:

> On Fri, 7 Aug 1998, Hubert Feyrer wrote:
> 
> > 
> > On Thu, 6 Aug 1998 mcmahill@mtl.mit.edu wrote:
> > > Is there a prefered way to change the 'datasize' limit for packages?  I'm
> 
> > If it's just for compiling, putting something like
> > 
> > do-build:
> > 	limit datasize 40000 ; make
> > 
> 
> except that 'limit' is not understood by 'sh' which is where the do-build
> stuff gets run.  For now, I can do
> 
> % limit datasize 40000
> % make
> 
> from my tcsh prompt, 

The sh syntax is "ulimit -d 40000".

Don't the default limits depend on the port, and on how much memory you
have? I need to raise the limits on my mac68k w/36M to build userland, but
it builds fine on a 386 w/16M using the defaults. Maybe it would be a good
idea to leave that to the user.