On Wed, Jul 07, 2004 at 09:57:52AM +0200, Harti Brandt wrote: > > Hi all, > > is there an easy way for a non-root user to test the installworld target? > I came up with > > make SHAREOWN=harti SHAREGRP=harti LIBOWN=harti LIBGRP=harti \ > NOFSCHG=yes INFOMODE=644 INFOOWN=harti INFOGRP=harti MANOWN=harti \ > MANGRP=harti BINOWN=harti BINGRP=harti DESTDIR=/t/scratch/harti/root/ \ > installworld > > but that one breaks in libexec/pt_chown (which has a hard-coded > BINOWN=root). > > Perhaps I can't see the obvious solution? > Many bits hardcode owners/groups/modes/flags, but it's still possible to install as non-root. In fact, buildworld already does this for you -- it uses src/tools/install.sh as INSTALL to do it (see the BMAKEENV setting in Makefile.inc1).
Cheers, -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer
pgpCsKkhv5F4s.pgp
Description: PGP signature