From owner-freebsd-arch@FreeBSD.ORG Sun Jul 1 21:12:15 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 498321065678; Sun, 1 Jul 2012 21:12:15 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 231A08FC21; Sun, 1 Jul 2012 21:12:15 +0000 (UTC) Received: from [192.168.2.58] (wifi.xcllnt.net [70.36.220.6] (may be forged)) (authenticated bits=0) by mail.xcllnt.net (8.14.5/8.14.5) with ESMTP id q61LC7TY081856 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 1 Jul 2012 14:12:11 -0700 (PDT) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Marcel Moolenaar In-Reply-To: <20120627235945.GE243@lor.one-eyed-alien.net> Date: Sun, 1 Jul 2012 14:12:07 -0700 Content-Transfer-Encoding: 7bit Message-Id: <9BB38D52-3CB9-44CE-B1BD-85DFAD6A1176@xcllnt.net> References: <20120626063017.D05DA58081@chaos.jnpr.net> <86wr2uwdgf.fsf@ds4.des.no> <20120626161605.5082A58081@chaos.jnpr.net> <20120627235945.GE243@lor.one-eyed-alien.net> To: Brooks Davis X-Mailer: Apple Mail (2.1278) Cc: Tim Kientzle , 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: Sun, 01 Jul 2012 21:12:15 -0000 On Jun 27, 2012, at 4:59 PM, Brooks Davis wrote: > On Tue, Jun 26, 2012 at 09:16:05AM -0700, Simon J. Gerraty wrote: >> >> 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. >> >> Yes, that's what we do - manifest files that tar and other tools use to >> produce the install images. >> >>> 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. >> >> Yes, we've added that support to makefs - I believe it is already in >> -current. There's still quite a bit to do. > > It's there except that makefs uses the FreeBSD mtree code which doesn't > support the crucial absolute path support in NetBSD's mtree. ? I wrote the code and no, it doesn't use FreeBSD mtree code and yes, it supports absolute pathnames: : cp = strchr(pathspec, '/'); if (cp != NULL) { /* Absolute pathname */ mtree_current = mtree_root; : The code should be compatible with libarchive. Maybe there's a bug? -- Marcel Moolenaar marcel@xcllnt.net