From owner-freebsd-arch@FreeBSD.ORG Sat Jul 21 17:15:07 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46E39106566C; Sat, 21 Jul 2012 17:15:07 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 1AB2C8FC12; Sat, 21 Jul 2012 17:15:06 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q6LHExSS091482; Sat, 21 Jul 2012 17:14:59 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id dqn7n7dpb6j8ehb2wkznprg33a; Sat, 21 Jul 2012 17:14:59 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Sat, 21 Jul 2012 10:14:57 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: <20120626063017.D05DA58081@chaos.jnpr.net> To: Robert Millan X-Mailer: Apple Mail (2.1278) Cc: freebsd-arch@freebsd.org, Simon Gerraty Subject: Re: Allow user install X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 17:15:07 -0000 On Jul 21, 2012, at 8:26 AM, Robert Millan wrote: > 2012/6/26 Simon Gerraty : >> 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