From owner-freebsd-arch@FreeBSD.ORG Tue Jun 26 15:01:40 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 1E0C91065672 for ; Tue, 26 Jun 2012 15:01:40 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id DD38B8FC1B for ; Tue, 26 Jun 2012 15:01:39 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so216018pbb.13 for ; Tue, 26 Jun 2012 08:01:39 -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=WcOkPM4yjSxe+DLXQDuSh5msklzLZ+dJkF6Wni2beJY=; b=bmrwIIP0CM5ytuK46a1Imw+ctQ2OgZGQLhB4O2MKJ+km+iN6ZOB/zqLHPxfPdI4mVg Zg+BhccsxLISBkTe8eZVst2dPdEaQcWDout2AYnLKhjvHNp79APBWf2TN4PbLlW99c1t 6CiVBEXT1C8j6UZLvqloidWgmz6ItD2wVVeWiBAoSTdWOjGKXiUQNe/W4OVauXA+4fpe p4tA6PDJfkoWKQ0sErG/YPEvBRPGBXcw3/80pI/J4RofdJSplgORDuXjom48VASJ38sD IOazpkOafx+mesdlD+jHaeX9kXPQgoJpbF6EiS9L4/rHsjK6CTMwXskZvoETqcuFs20O LMdg== Received: by 10.68.213.7 with SMTP id no7mr53372408pbc.3.1340722899401; Tue, 26 Jun 2012 08:01:39 -0700 (PDT) Received: from [10.0.0.63] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id ub6sm3286439pbc.64.2012.06.26.08.01.37 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jun 2012 08:01:37 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Warner Losh In-Reply-To: <86obo6w40n.fsf@ds4.des.no> Date: Tue, 26 Jun 2012 09:01:35 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <789426A5-00FF-4880-BC51-1998BC354D46@bsdimp.com> References: <20120626063017.D05DA58081@chaos.jnpr.net> <86wr2uwdgf.fsf@ds4.des.no> <367C13EE-D631-4864-B873-FE912E6727A4@bsdimp.com> <86obo6w40n.fsf@ds4.des.no> To: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQkQ/rsbu36VN9Ye/MwnEOk9U2BMrl9eUbBrQhCQBc6F4jGpk5mKpX3x+ccn7Piicx6qXYIT 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 15:01:40 -0000 On Jun 26, 2012, at 8:18 AM, Dag-Erling Sm=F8rgrav wrote: > Warner Losh writes: >> Dag-Erling Sm=F8rgrav 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. >>> 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. >=20 > We already have install -d for mkdir, and in any case, very few > Makefiles actually create directories. >=20 > But if the Makefiles use ${LN} instead of ln, we can easily point LN = at > a tool (perhaps even just a shell script) that does whatever is needed > to record the symlink in the tarball instead of creating it on disk. NetBSD's build already handles those cases with install. It would be = easy enough to bring that in. The time consuming part will be fixing = all the "short cuts" and inconsistencies in the build so that its output = can be used. Warner