Expanding on NO_ROOT: Categorizing installed files

Brooks Davis brooks at freebsd.org
Wed Jul 16 19:59:58 UTC 2014


On Wed, Jul 16, 2014 at 12:29:44PM -0700, Sean Fagan wrote:
> On Jul 16, 2014, at 12:24 PM, Brooks Davis <brooks at freebsd.org> wrote:
> 
> > That said, I think the second argues that -P generating category= 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).
> 
> -K <key>=<value> is easy enough to do, and seems mnemonical enough.
> (Then change the makefiles to have "-K category=${META_CATEGORY}"
> and whatnot.)

Sounds good.

> This doesn't get added to the mtree files, though.  I played with changing
> mtree (well, nmtree), but I was thrown by the fact that it wasn't hierarchical --
> that is, adding a tag/label/whatever at one level didn't automatically percolate
> its way down.  So I got rid of those changes.

The METALOG is an mtree file.

That sounds like a bug in the mtree code given the rational view that
unknown key=value's should just be passed along as text.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20140716/7dcca26b/attachment.sig>


More information about the freebsd-hackers mailing list