From owner-freebsd-arch@FreeBSD.ORG Tue Jun 26 16:15:38 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06668106566C for ; Tue, 26 Jun 2012 16:15:38 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id B94158FC08 for ; Tue, 26 Jun 2012 16:15:37 +0000 (UTC) Received: by obbun3 with SMTP id un3so105506obb.13 for ; Tue, 26 Jun 2012 09:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7pmH39pC896jisu+EimGVgl5XOzCKJj6Y8HuPxYIumU=; b=o18eAXWHhqc46nztTM3aPaGWGXfmvdD5OVRjaF/Awr2EemGJ48bUtVKWZggQGr32lA PYdaLtS39W9fnGFgzIaQbFTg31JXgagDPw4iROWgzI5l0HYDR+KbRcYb0Fi8swdW6Ylx 7TfgvulrNclHaQ+TaWFMMfr9RQTdVknLoT/L85ThTsnXMRqGNdyBIhLauDcWssmS/EkV QDGXcJ34VEcVyICHswcVKgaKldlhyXWdH4jB02oKu0y0rcYU1OE2H03xh2DobUP3xTY9 QjHQnb7jHHs8fZoWJD312Tbe8415+GLZLPPDzqM5FWET1Pctz5kiAnQVplZTJ0mbTG9v Oebg== MIME-Version: 1.0 Received: by 10.182.114.97 with SMTP id jf1mr16919491obb.59.1340727337206; Tue, 26 Jun 2012 09:15:37 -0700 (PDT) Received: by 10.182.74.72 with HTTP; Tue, 26 Jun 2012 09:15:37 -0700 (PDT) In-Reply-To: <4FE9DCCE.1060104@vangyzen.net> References: <20120626063017.D05DA58081@chaos.jnpr.net> <86wr2uwdgf.fsf@ds4.des.no> <20120626153335.3215258081@chaos.jnpr.net> <4FE9DCCE.1060104@vangyzen.net> Date: Tue, 26 Jun 2012 09:15:37 -0700 Message-ID: From: Mehmet Erol Sanliturk To: Eric van Gyzen Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= , freebsd-arch@freebsd.org, "Simon J. 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: Tue, 26 Jun 2012 16:15:38 -0000 On Tue, Jun 26, 2012 at 9:01 AM, Eric van Gyzen wrote: > On 06/26/2012 10:33, Simon J. Gerraty wrote: > >> >> On Tue, 26 Jun 2012 12:54:24 +0200, =?utf-8?Q?Dag-Erling_Sm=C3=**B8rgrav?= >> writes >> : >> >>> I've been thinking for a while that some bor^H^H^Henterprising soul >>> should hack install(1) so that if a specific environment variable is >>> set, it writes the file to a tarball instead of writing it to disk. >>> >> >> That's an interesting twist. >> But rather than do violence to the meaning of "install" it might be >> better to skip it completely. >> >> The Junos build has for many years produced install images without >> "installing" anything. We are working on a variant of that approach >> for freebsd, which should prove useful. >> >> This patch is unrelated to that btw, but provides a intermediate >> improvement >> which I thought might be useful in an of itself. >> >> Teaching makefiles to tell tools what you actually want is better than >> hacking tools to ignore what you told them to do ;-) >> > > Agreed, on all points. (Not that my opinion carries much weight. I'm > just an interested user.) > > Perhaps packages--such as a tarball or mfsroot--would be built from > targets in src/release/Makefile. > > (BTW, I find INSTALL_OWN confusing - how about UNPRIVILEGED_INSTALL or >>> USER_INSTALL?) >>> >> >> I always say, naming stuff is hard ;-) >> Which is half the reason for posting the patch - to get feedback on the >> name. >> > > Indeed. Names are the handles by which we grasp the world, and > everybody's hand is unique. > > INSTALL_OWN is a bit cumbersome. Its name also doesn't cover other > privileged attributes, such as the schg flag. > > I like UNPRIVILEGED_INSTALL or USER_INSTALL. The user can set those to > tell the build system what he/she wants. The build system can then set the > other internal variables to make that happen. Those internal variables can > change over time, but the user will still get the right behavior. > > The ports system uses INSTALL_AS_USER; the precedent is worth considering. > > Eric > ______________________________**_________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@**freebsd.org > " > My vote is as follows where (1) : Most wanted (4) : Least wanted : (1) INSTALL_AS_USER (2) USER_INSTALL (3) UNPRIVILEGED_INSTALL (4) INSTALL_OWN Another name may be used for its context : INSTALL_AS_ROOT When names are sorted : INSTALL_AS_ROOT INSTALL_AS_USER they will come very near to each other . Thank you very much . Mehmet Erol Sanliturk