Subject: Re: Personal obj directories
To: None <tech-pkg@netbsd.org>
From: Alistair Crooks <agc@wasabisystems.com>
List: tech-pkg
Date: 05/30/2002 20:17:27
On Thu, May 30, 2002 at 07:55:18PM +0200, Julio Merino wrote:
> Hi all
> 
> I have been trying to avoid the use of an object directory inside /usr,
> so I have configured my user's environment with the following:
> 
> export WRKOBJDIR="/home/jmmv/NetBSD/obj/pkgsrc"
> 
> Everything works fine (I can build packages as non-root perfectly), but
> there is only a problem. Whenever pkgsrc wants to become root to install
> a package, this variable "disapperes" from root's environment. I have to
> manually su (not su -) and then type make install.
> 
> I think that pkgsrc is using 'su -' instead of 'su'. Is this the expected
> behavior?
> 
> Thanks.
> 
> -- 
> Of course it runs NetBSD - http://www.netbsd.org
> HispaBSD member - http://www.hispabsd.org
> Julio Merino <jmmv@hispabsd.org>

Set WRKOBJDIR in /etc/mk.conf

To quote from pkgsrc/mk/bsd.pkg.defaults.mk

> #WRKOBJDIR=     /usr/tmp
> # build here instead of in pkgsrc
> # Possible: any path
> # Default: not defined

Regards,
Alistair