From owner-freebsd-ports Sat Sep 28 9:26:54 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31AA337B401 for ; Sat, 28 Sep 2002 09:26:53 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84C7A43E42 for ; Sat, 28 Sep 2002 09:26:52 -0700 (PDT) (envelope-from swear@attbi.com) Received: from localhost.localdomain ([12.242.158.67]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020928162651.KLFO6431.sccrmhc01.attbi.com@localhost.localdomain>; Sat, 28 Sep 2002 16:26:51 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id g8SGSv3q032057; Sat, 28 Sep 2002 09:28:57 -0700 (PDT) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.5/8.12.5/Submit) id g8SGSnxZ032052; Sat, 28 Sep 2002 09:28:49 -0700 (PDT) (envelope-from swear@attbi.com) X-Authentication-Warning: localhost.localdomain: jojo set sender to swear@attbi.com using -f To: Neil Blakey-Milner , Kris Kennaway Cc: freebsd-ports@freebsd.org Subject: Re: Installing ports as non-root user. References: <20020928024604.GD66227@xor.obsecurity.org> <20020928115626.GA31114@mithrandr.moria.org> From: swear@attbi.com (Gary W. Swearingen) Date: 28 Sep 2002 09:28:49 -0700 In-Reply-To: <20020928115626.GA31114@mithrandr.moria.org> Message-ID: <7e1y7e5b9a.y7e@localhost.localdomain> Lines: 39 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Neil Blakey-Milner writes: > On Fri 2002-09-27 (19:46), Kris Kennaway wrote: > > > > It hasn't been a design goal in the past. It would probably be nice > > to support it, but it's a lot of work. Which means to me (as a begger who shouldn't be choosy), that I shouldn't complain about ports which don't support it. It also means that it'll be impractical to try to maintain a couple hundred port/package installations without doing it as root. (Doing just the build as non-root is not worth the loss of using portupgrade.) > > You can _build_ many ports as non-root, but installing tends to > > hard-wire arguments to install(1) that are root-only. If one must run the makefiles as root for any reason (eg, to install), one loses most of the reason to avoid running it as non-root to build, unless one could take the time to de-bad-guy the makefiles and much of their supporting software (eg, configure.in?, makefile.am?). > I build most ports I'm porting or upgrading and testing with > ports/Tools/scripts/mkptools/mkpinstall as non-root. Just copy the > BINOWN and BINGRP stuff from there, and it should work for most ports. Now there's an interesting clue to another undocumented feature. It looks like I can just do: BINOWN=local BINGRP=local make [arg ...] I fear that there will still be many ports which use configure/ automake-generated makefiles which do not honor BINOWN & BINGRP, but I guess I'll try this and find out from experience. I also need to learn about this "mtree" thing, but the ports so far seem to only want to be root for that, and just don't run it, with no bad concequences I'm aware of (yet). Thanks, guys; you've given me a better understanding of the situation. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message