From owner-freebsd-arch@FreeBSD.ORG Tue Jun 26 13:59:29 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 DCBA3106566B for ; Tue, 26 Jun 2012 13:59:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8F4A28FC08 for ; Tue, 26 Jun 2012 13:59:29 +0000 (UTC) Received: by yenl8 with SMTP id l8so4474508yen.13 for ; Tue, 26 Jun 2012 06:59:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=wEVVoKnThV2SaSmpSIsu0fx03OQh3o/pkZGZSSqmYvU=; b=ebpFPCV5iaF5XvZeRxHYU6SHubdKiRJsFQUoKEKwTy1KvRdM8Ds0T4zpokCZQQaJ4j 3xbYldAmMWuIXDnnmWm5PD5gU+iFOvT80uqxR+ELqciP4oXu2GgUkaTgQ3xqYzLqEgaj OAE+VMM//CA8mo1D65/QTzrfqIUQZuPVpGC/RYPoJJDzCRU+NJfIrC/rY8/8nAFIXv2E LurHkLQ9NnxtYD8P2sc2zU/cpOqSH6jWSlrKqMFhK+5RhQsZHdRZyyhXENieio1Wg+Lw HrqeEEG6+zRzqiyjdO0NJC+GAPWgmFeUXvq7lEqsKmTbb/vTX/mNLcuE7EIieJiPcV5M Uh4A== Received: by 10.50.203.98 with SMTP id kp2mr11098338igc.42.1340719168709; Tue, 26 Jun 2012 06:59:28 -0700 (PDT) Received: from 63.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id dc7sm2089780igc.13.2012.06.26.06.59.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jun 2012 06:59:28 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Warner Losh In-Reply-To: <86wr2uwdgf.fsf@ds4.des.no> Date: Tue, 26 Jun 2012 07:59:26 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <367C13EE-D631-4864-B873-FE912E6727A4@bsdimp.com> References: <20120626063017.D05DA58081@chaos.jnpr.net> <86wr2uwdgf.fsf@ds4.des.no> To: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQne+LORUffkk542FAQ1ofuNyfPu39Y9cGrND/2U1rtdpEXohIvJgqjZEBxvPyNv0Hm/jzlZ 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: Tue, 26 Jun 2012 13:59:30 -0000 On Jun 26, 2012, at 4:54 AM, Dag-Erling Sm=F8rgrav wrote: > Simon Gerraty writes: >> The patch below is a step towards supporting unprivileged buildworld >> etc. Eg. >=20 > Wow, this is really cool - and long overdue. Yes. > 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. > Unfortunately, there would still be a ton of ${LN} etc. that would = need > to be handled somehow. Perhaps install(1) should have an option to > create symlinks so we could use that instead of ln -s, in the interest > of reducing the number of different tools used during installation. I'd prefer that to this hack, honestly, but this hack is cool. NetBSD = did this years ago, and bringing it and the changes to xtree would be a = good thing. There's also a number of mkdirs that also need to be = updated. Let's not reinvent the wheel here, when there's a perfectly = good wheel elsewhere. > (BTW, I find INSTALL_OWN confusing - how about UNPRIVILEGED_INSTALL or > USER_INSTALL?) Well, the former is more correct. The latter are the real goal :) I'm = not sure I like any of the names, but that will work itself out. Warner