This adds a new '<notes/>' element to allow maintainers to describe package-specific quirks or other instructions on how to correctly
maintain a package. This is intended to encourage developers to document knowledge and increase the bus-factor of packages which are delicate
but must live beyond a maintainer.
On Tue, Oct 5, 2021 at 2:27 PM Sam James <sam@gentoo.org> wrote:
This adds a new '<notes/>' element to allow maintainers to describe package-specific quirks or other instructions on how to correctly
maintain a package. This is intended to encourage developers to document knowledge and increase the bus-factor of packages which are delicate
but must live beyond a maintainer.
Personally, I am much more likely to notice a comment at the top of
the ebuild than a new element in metadata.xml.
I generally agree that comments are more visible/noticeable than
metadata, however, I also think that this could be a good step forward
for overall maintainability. The issue with documenting these things
in comments is that the comment lives only within the specific version
of the ebuild in which it is authored: it is up to the maintainer to
carry those comments over when version bumping. While this is
generally not a problem due to copy/paste, I think it is messy - there
could be an update to the comment from one version to the next,
meaning I now have two version of the comment floating around.
With <note/>, there is one localized "source of truth" for this documentation, which should remove any ambiguity.
I would hope that after launching the <note/> feature, there would be
a gradual (or sudden?!) shift away from the current comments towards
the <note/> tag, maybe even including this in the dev manual.
On Tue, 05 Oct 2021, Sam James wrote:
+Notes element
+~~~~~~~~~~~~~
+
+The ``<notes/>`` element describes important information on how to maintain +a package.
+
+The ``<notes/>`` element has an obligatory ``type=""`` attribute whose value is
+can be either ``text`` or ``url``. If its value is ``text``, then the
+``<notes/>`` value is formed of multi-line text. If its value is ``url``, the
+``<notes/>`` value should be a link to a page containing information on how +to correct maintain the package.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 17:02:38 |
Calls: | 9,487 |
Calls today: | 6 |
Files: | 13,617 |
Messages: | 6,121,087 |