From owner-freebsd-arch@FreeBSD.ORG Tue Jun 26 15:37:59 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 02DD91065687 for ; Tue, 26 Jun 2012 15:37:59 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from exprod7og125.obsmtp.com (exprod7og125.obsmtp.com [64.18.2.28]) by mx1.freebsd.org (Postfix) with ESMTP id 8919F8FC0A for ; Tue, 26 Jun 2012 15:37:58 +0000 (UTC) Received: from P-EMHUB03-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKT+nXUNCkve0kbpYr7K9VIho8EzpQ95Bw@postini.com; Tue, 26 Jun 2012 08:37:58 PDT Received: from magenta.juniper.net (172.17.27.123) by P-EMHUB03-HQ.jnpr.net (172.24.192.33) with Microsoft SMTP Server (TLS) id 8.3.213.0; Tue, 26 Jun 2012 08:33:35 -0700 Received: from chaos.jnpr.net (chaos.jnpr.net [172.24.29.229]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id q5QFXZh09735; Tue, 26 Jun 2012 08:33:35 -0700 (PDT) (envelope-from sjg@juniper.net) Received: from chaos.jnpr.net (localhost [127.0.0.1]) by chaos.jnpr.net (Postfix) with ESMTP id 3215258081; Tue, 26 Jun 2012 08:33:35 -0700 (PDT) To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= In-Reply-To: <86wr2uwdgf.fsf@ds4.des.no> References: <20120626063017.D05DA58081@chaos.jnpr.net> <86wr2uwdgf.fsf@ds4.des.no> Comments: In-reply-to: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= message dated "Tue, 26 Jun 2012 12:54:24 +0200." From: "Simon J. Gerraty" X-Mailer: MH-E 7.82+cvs; nmh 1.3; GNU Emacs 22.3.1 Date: Tue, 26 Jun 2012 08:33:35 -0700 Message-ID: <20120626153335.3215258081@chaos.jnpr.net> MIME-Version: 1.0 Content-Type: text/plain Cc: sjg@juniper.net, 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: Tue, 26 Jun 2012 15:37:59 -0000 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 ;-) >Unfortunately, there would still be a ton of ${LN} etc. that would need Not sure I follow, ln isn't an issue when "installing" into a location that you own - eg the $DESTDIR model, and if you are not doing that supressing -o etc args won't help. >(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. Thanks --sjg