From owner-freebsd-arch@FreeBSD.ORG Sat Jul 21 15:26:41 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 E740A106564A for ; Sat, 21 Jul 2012 15:26:41 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id A17CA8FC15 for ; Sat, 21 Jul 2012 15:26:41 +0000 (UTC) Received: by yhfs35 with SMTP id s35so5536594yhf.13 for ; Sat, 21 Jul 2012 08:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=EGX/vWF9A8E73wKaweaOraebUcH1thlG+HaCFtuOtzQ=; b=o5Vf0G5is/fee9DxQyXzjnaAcaQLy3onag8Zjn9jfRFJaV+YYpwwjy+Lx9SzuckhkA 4wgHnEADGJNguBGanE54KSaqauq9QzC+JSZBeNtmrVB8N2Z61UdtZzW5cK4GURX+UC/k PvcSNywv8nrn6EEIEvanoDm7HVo/b/C7msj7x9QanRjxLX8fClcBGYjbUbAy/O/IQ2vX 4l0yfitiFeWggvfsTpYihmShq6meBejIOhaz4iABF3Cu3gfenpIczpyF8pZt+vgi2YgF OvlwKiWjdJW6/HWdmAdVagFc/Vw7KQw+kSz0WA6Iwr5Pu05bjdFHRlQz086SCUBgMvl7 12hw== MIME-Version: 1.0 Received: by 10.43.106.1 with SMTP id ds1mr5626886icc.24.1342884399825; Sat, 21 Jul 2012 08:26:39 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.42.136.7 with HTTP; Sat, 21 Jul 2012 08:26:39 -0700 (PDT) In-Reply-To: <20120626063017.D05DA58081@chaos.jnpr.net> References: <20120626063017.D05DA58081@chaos.jnpr.net> Date: Sat, 21 Jul 2012 17:26:39 +0200 X-Google-Sender-Auth: CtWAIGD6mCLN80CyX_egizQL254 Message-ID: From: Robert Millan To: Simon Gerraty Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arch@freebsd.org 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 15:26:42 -0000 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... -- Robert Millan