Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2012 10:14:57 -0700
From:      Tim Kientzle <tim@kientzle.com>
To:        Robert Millan <rmh@freebsd.org>
Cc:        freebsd-arch@freebsd.org, Simon Gerraty <sjg@juniper.net>
Subject:   Re: Allow user install
Message-ID:  <BD95C7EE-11BF-4E9C-BB13-AB9AE22A1DE7@kientzle.com>
In-Reply-To: <CAOfDtXNWnPpLuZNLR0gwKFFksVmTHF8iTb8wqG4Wzj49N2d32w@mail.gmail.com>
References:  <20120626063017.D05DA58081@chaos.jnpr.net> <CAOfDtXNWnPpLuZNLR0gwKFFksVmTHF8iTb8wqG4Wzj49N2d32w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 21, 2012, at 8:26 AM, Robert Millan wrote:

> 2012/6/26 Simon Gerraty <sjg@juniper.net>:
>> The patch below is a step towards supporting unprivileged buildworld
>> etc.  Eg.
>> 
>> $ cd bin/cat
>> $ make -n install DESTDIR=/tmp
>> install -s -o root -g wheel -m 555   cat /tmp/bin
>> install -o root -g wheel -m 444 cat.1.gz  /tmp/usr/share/man/man1
>> $ make -n install -DWITHOUT_INSTALL_OWN DESTDIR=/tmp
>> install -s  -m 555   cat /tmp/bin
>> install  -m 444 cat.1.gz  /tmp/usr/share/man/man1
>> $
> 
> Just FYI, Debian archieves this in a very different approach: it uses
> the fakeroot tool to fool the makefiles into creating "fake"
> ownerships.  This has the advantage that it works for any sort of
> extraneous makefiles, not just for your own build system:
> 
> http://fakeroot.alioth.debian.org/
> 
> I notice that FreeBSD integrates external build systems into its own,
> although this practice is a lot less common than it is for Debian.
> Perhaps you find fakeroot (or the idea behind it) useful...

Does fakeroot itself require root permissions to run?

I was under the impression that it used some form of
loopback mount which --- at least in FreeBSD --- still
requires root permissions.

Tim




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BD95C7EE-11BF-4E9C-BB13-AB9AE22A1DE7>