Aleksey Cheusov | 6 Feb 2008 00:14
Picon
Favicon

Re: pkgsrc-wip NetBSD 4.99.52/i386 2008-02-02 11:48


 >> > X11_TYPE=modular
 >> > UNPRIVILEGED=yes
 >> > PKG_SYSCONFBASE=/usr/bulk/pkg/custom_etc
 >> > PKGMANDIR=custom_man
 >> 
 >> > wip/runawk                                   cheusov <at> tut.by
 >> 
 >> I cannot reproduce this under NetBSD and Linux, both unprivileged.
 >> Are you sure you use correct make (/usr/bulk/pkg/bin/bmake) ?

> Unprivileged build, read again.

What exactly?

     9.4. How to use pkgsrc as non-root

     If you want to use pkgsrc as non-root user, you can set some
     variables to make pkgsrc work under these conditions. At the very
     least, you need to set UNPRIVILEGED to "yes"; this will turn on
     unprivileged mode and set multiple related variables to allow
     installation of packages as non-root.

     In case the defaults are not enough, you may want to tune some
     other variables used. For example, if the automatic user/group
     detection leads to incorrect values (or not the ones you would
     like to use), you can change them by setting UNPRIVILEGED_USER
     and UNPRIVILEGED_GROUP respectively.

     As regards bootstrapping, please note that the bootstrap script
(Continue reading)

Joerg Sonnenberger | 6 Feb 2008 00:37
Picon

Re: pkgsrc-wip NetBSD 4.99.52/i386 2008-02-02 11:48

On Wed, Feb 06, 2008 at 01:14:05AM +0200, Aleksey Cheusov wrote:
> 
>  >> > X11_TYPE=modular
>  >> > UNPRIVILEGED=yes
>  >> > PKG_SYSCONFBASE=/usr/bulk/pkg/custom_etc
>  >> > PKGMANDIR=custom_man
>  >> 
>  >> > wip/runawk                                   cheusov <at> tut.by
>  >> 
>  >> I cannot reproduce this under NetBSD and Linux, both unprivileged.
>  >> Are you sure you use correct make (/usr/bulk/pkg/bin/bmake) ?
> 
> > Unprivileged build, read again.
> 
> What exactly?

The error message.

Joerg

Aleksey Cheusov | 6 Feb 2008 12:13
Picon
Favicon

Re: pkgsrc-wip NetBSD 4.99.52/i386 2008-02-02 11:48

> On Wed, Feb 06, 2008 at 01:14:05AM +0200, Aleksey Cheusov wrote:
 >> 
 >>  >> > X11_TYPE=modular
 >>  >> > UNPRIVILEGED=yes
 >>  >> > PKG_SYSCONFBASE=/usr/bulk/pkg/custom_etc
 >>  >> > PKGMANDIR=custom_man
 >>  >> 
 >>  >> > wip/runawk                                   cheusov <at> tut.by
 >>  >> 
 >>  >> I cannot reproduce this under NetBSD and Linux, both unprivileged.
 >>  >> Are you sure you use correct make (/usr/bulk/pkg/bin/bmake) ?
 >> 
 >> > Unprivileged build, read again.
 >> 
 >> What exactly?

> The error message.

     #   install  /usr/bulk/pkg/bin/runawk
     install  -c  -r -o root -g wheel -m 555   runawk /usr/bulk/pkg/bin/runawk
     install: /usr/bulk/pkg/bin/inst.08341a: chown/chgrp: Operation not permitted
     *** Error code 1

So, what?

Joerg, if you really want to say something helful, just do it.
Otherwise be quiet and don't waste my time! Anyway tnn <at>  has already
helped me with undocumented USE_BSD_MAKEFILE and explained how he runs
his bulk build and why I could not reproduce it with my unprivliegged
setups.
(Continue reading)


Gmane