From owner-freebsd-arch@FreeBSD.ORG Thu Jun 28 18:27:17 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 ED681106564A for ; Thu, 28 Jun 2012 18:27:16 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 3F27A8FC0A for ; Thu, 28 Jun 2012 18:27:16 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.4/8.14.4) with ESMTP id q5SIPvhA015763; Thu, 28 Jun 2012 13:25:57 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.4/8.14.4/Submit) id q5SIPvgp015762; Thu, 28 Jun 2012 13:25:57 -0500 (CDT) (envelope-from brooks) Date: Thu, 28 Jun 2012 13:25:57 -0500 From: Brooks Davis To: Tim Kientzle Message-ID: <20120628182557.GA15593@lor.one-eyed-alien.net> References: <20120626063017.D05DA58081@chaos.jnpr.net> <86wr2uwdgf.fsf@ds4.des.no> <20120626161605.5082A58081@chaos.jnpr.net> <20120627235945.GE243@lor.one-eyed-alien.net> <52A78E4A-948B-4A79-A95D-0FC7D225BC00@kientzle.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <52A78E4A-948B-4A79-A95D-0FC7D225BC00@kientzle.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Dag-Erling Sm?rgrav , 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: Thu, 28 Jun 2012 18:27:17 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 27, 2012 at 09:12:39PM -0700, Tim Kientzle wrote: >=20 > On Jun 27, 2012, at 4:59 PM, Brooks Davis wrote: >=20 > > On Tue, Jun 26, 2012 at 09:16:05AM -0700, Simon J. Gerraty wrote: > >>=20 > >> On Tue, 26 Jun 2012 08:18:05 -0700, Tim Kientzle writes: > >>> Better idea: have the build write a textual description of the > >>> tar entries. That description can then be fed to tar to build > >>> the actual tarball. > >>=20 > >> Yes, that's what we do - manifest files that tar and other tools use to > >> produce the install images. > >>=20 > >>> The description format that tar already supports is a variant > >>> mtree format borrowed from NetBSD. Each line specifies > >>> the tar entry fields (filename, owner, permissions, etc) and > >>> the filename where the file contents are stored. > >>=20 > >> Yes, we've added that support to makefs - I believe it is already in > >> -current. There's still quite a bit to do. > >=20 > > It's there except that makefs uses the FreeBSD mtree code which doesn't > > support the crucial absolute path support in NetBSD's mtree. >=20 > If it helps: libarchive can read NetBSD's mtree format. I actually found this because I wanted to use libarchive's mtree output as input to makefs. -- Brooks >=20 > > I took a > > look at what's required to bring that in a week or two ago. We need to > > bring in a number of new or improved functions in libc and we'll have to > > kill or rename FreeBSD's -i options, but it looks doable. Not a two > > hour project, but doable and worthwhile. Once I get the demo I 'm > > currently working on out the door I'm planning to start work to bring in > > NetBSD's mtree and either the related install changes or NetBSD's > > install. If someone else wants to start the process that would also be > > fine with me. My notes on the issues are below if anyone cares. > >=20 > > -- Brooks > >=20 > > FreeBSD Features not in NetBSD: > > -i (indent output) conflicts with: > > -i If specified, set the schg and/or sappnd flags. > >=20 > > -n (Don't emit name) > >=20 > > -q (Quiet mode) > >=20 > > -w Make some errors non-fatal warnings > >=20 > > Missing keywords: > > ripemd160digest seems to be spelled rmd160(digest) > >=20 > > nochange missing > >=20 > > Missing library features: > > flags_to_string() > > string_to_flags(char **, unsigned long *, unsigned long *); > > strsvis() > > pwcache_userdb() > > pwcache_groupdb() > > gid_from_group() > > uid_from_user() > >=20 >=20 --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFP7KG0XY6L6fI4GtQRAr0zAJ9ciIeSjBZNLshdlyr6pTh6eOeItgCgtEIM Kl4e36S0SKKZrVYi8yu+eMg= =7Jrz -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--