Subject: Re: use pkgsrc as non-root
To: None <tech-pkg@netbsd.org>
From: julien Touche <julien.touche@lycos.com>
List: tech-pkg
Date: 01/29/2003 12:34:47
Chris Pinnock wrote:
> On Mon, Jan 27, 2003 at 10:07:01AM +0100, julien Touche wrote:
> 
>>Hi
>>
>>i'm trying to use pkgsrc bootstrapping on solaris 7, but i want to 
>>install pkgsrc and all packages as non-root with a special prefix. 
>>(prefix is easy, it seems, but non-root ?)
>>is it possible ?
>>i didn't find any info by googling or on pkgsrc page
> 
> 
> Is it possible. You need to set BINOWN, BINGRP, LIBOWN, etc to be your
> uid and gid (look at bmake's bsd.own.mk). I think you can get away with
> setting these in your shell environment. There are three lines 
> preventing in the bootstrap script that stop it from being used as 
> non-root -- these can be commented out.
> 

i have set these in bsd.own.mk and comment some lines in 
$base/share/mk/sys.mk (it doesn't affect the next problem):

# override the definitions in bsd.own.mk for Solaris
#BINGRP?=       root
#...

pkg_info output is good now, but when i'm trying to build a package, i get:

(www@e450n) pkg_install>bmake
===> Your Zoularis needs to be updated to the 2001/03/23 version.
===> The installed Zoularis was last updated on 2000/05/22.
*** Error code 255

Stop.
bmake: stopped in /tmp/bou/pkgsrc/pkgtools/pkg_install

other ones return to pkg_install

(www@e450n) pkg_install>more /tmp/bou/share/mk/zoularis.mk
ZOULARIS_VERSION=20021202

i suppose it read it somewhere else but don't know where
trying to build with 'bmake -m /tmp/bou/share/mk' does'nt change things
(/tmp/bou is my test base dir)


Regards

		Julien