From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 16 19:24:11 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE4336DC for ; Wed, 16 Jul 2014 19:24:11 +0000 (UTC) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) by mx1.freebsd.org (Postfix) with ESMTP id A423529E3 for ; Wed, 16 Jul 2014 19:24:11 +0000 (UTC) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 959C65A9F0B; Wed, 16 Jul 2014 19:24:10 +0000 (UTC) Date: Wed, 16 Jul 2014 19:24:10 +0000 From: Brooks Davis To: Sean Fagan Subject: Re: Expanding on NO_ROOT: Categorizing installed files Message-ID: <20140716192410.GG60425@spindle.one-eyed-alien.net> References: <20140716170758.GE60425@spindle.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZARJHfwaSJQLOEUz" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 19:24:11 -0000 --ZARJHfwaSJQLOEUz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 16, 2014 at 10:46:44AM -0700, Sean Fagan wrote: > On Jul 16, 2014, at 10:07 AM, Brooks Davis wrote: > >> I have not changed it from having a new "category=3D" to using "tag=3D= "; I looked at that, and don't think it's the best way to go, but am still = looking. > >=20 > > Given that the current use of tags=3D is basically unconsumed, I still > > don't understand why. >=20 > First, because the space is limited -- it's not "tag type=3Dvalue", but "= tag=3Dvalue". So if there is a category of "debug", that conflicts with a = tag of "debug." And similarly for any other tags. >=20 > Second, because "category=3D" isn't the only keyword I might want to add = here -- I would prefer that the metalog be considered a key-value sequence,= and any consumer should simply ignore any key it doesn't understand. >=20 > (Consider checksums, as a semi-obvious example of one that can be put in = place by install.) >=20 > Combine the two, and I'm very wary of it -- it puts a limitation in, when= it should be extensible. You've convinced me. I think the first is a redherring as no one uses the = tags, but the second is a good argument. That said, I think the second argues that -P generating category=3D is the wrong approach. Instead a new flag should just let you add arbitrary stuff to the mtree file (subject to validation that it is well formed). -- Brooks --ZARJHfwaSJQLOEUz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlPG0VkACgkQXY6L6fI4GtRY/wCfXWU34b2riK+CrP6PxMON1nE0 FpwAoMRnUIX8OZpSbPJrJ2hW3Ljpbbv7 =t4ZM -----END PGP SIGNATURE----- --ZARJHfwaSJQLOEUz--