Page MenuHomeFreeBSD

makefs: Ignore the "tags" keyword
ClosedPublic

Authored by markj on Mar 23 2021, 2:25 AM.
Tags
None
Referenced Files
F102558274: D29384.id86217.diff
Thu, Nov 14, 1:20 AM
F102557798: D29384.id86217.diff
Thu, Nov 14, 1:10 AM
Unknown Object (File)
Tue, Nov 12, 2:40 PM
Unknown Object (File)
Tue, Nov 12, 2:13 PM
Unknown Object (File)
Oct 6 2024, 2:46 PM
Unknown Object (File)
Oct 6 2024, 7:26 AM
Unknown Object (File)
Oct 5 2024, 6:49 AM
Unknown Object (File)
Oct 4 2024, 8:59 PM
Subscribers

Details

Summary

We emit these when making a filesystem using the METALOG that comes with
a -DNO_ROOT build. I believe they're used exclusively for pkgbase,
though I can't quite see how.

When building a filesystem using such a METALOG, many warnings get
emitted. It seems to make sense to just ignore this keyword (beyond
checking that there's an associated value).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Mar 23 2021, 2:25 AM
This revision is now accepted and ready to land.Mar 23 2021, 2:26 AM

I don't see many reports of this on the mailing lists, so I might be doing something wrong. But I get tons of warnings with a simple

$ make installkernel -DNO_ROOT DESTDIR=/tmp
$ makefs ... /tmp/kernelfs.raw /tmp/METALOG

Seems sensible to me. I'm not entirely sure we shouldn't just silently ignore unknown tags unless some sort of --picky option is specified.

Seems sensible to me. I'm not entirely sure we shouldn't just silently ignore unknown tags unless some sort of --picky option is specified.

I thought about it but wanted to stay conservative for now. The set of tools in the base system that emit or consume mtrees is fairly small so it's easy to evaluate keywords on a case-by-case basis.