The long wait for some sort of response is due to having such a high
number of bugs filed against lintian but not enough manpower to keep it maintained. I've just noticed this now since you sent a mail, and I'm subscribed to
[email protected] :)
On Wed, 2024-01-24 at 20:58 +0100, Diederik de Haas wrote:
Package: lintian
Version: 2.116.3
Severity: normal
I'm not sure if this belongs to the lintian or developers-reference
package, or both. But it's at least confusing to me in lintian.
Based on this paragraph in developers-reference, I added a ``debian/NEWS.Debian`` file to a package:
6.3.5 Supplementing changelogs with NEWS.Debian files
After building the package and running lintian, I get a warning: incorrect-packaging-filename better: debian/NEWS [debian/NEWS.Debian]
Correct, the news file in the source should be located at debian/NEWS.
So I updated the package by renaming it to ``debian/NEWS``.
Build the package again and run lintian and I get this warning: debian-news-entry-has-strange-distribution UNRELEASED
Note that this warning did NOT show up when I had a
``debian/NEWS.Debian`` file, so it seems to 'require' ``debian/NEWS``.
Well, because this check applies when the news file is in the correct
location, so ends up being installed by dh_installchangelogs into the
binary package and therefore having its contents checked by Debian. It's complaining that the suite says UNRELEASED i.e. it should be unstable or experimental.
``lintian-explain-tags debian-news-entry-has-strange-distribution`` then explains what it's for, mentioning ``NEWS.Debian``.
This is because this tag is being made against the binary (.deb)
package, and in this package the news file is installed in /usr/share/doc/<package>/NEWS.Debian .
So I cloned the lintian repo to make a MR to replace ``NEWS.Debian``
with ``debian/NEWS`` for that tag.
Thinking there may be more such things, I ran ``grep -rn "NEWS.Debian"``
... which returned a LONG list. So I filed this bug instead of the MR.
The incorrect-packaging-filename explainer also has this line:
"Debhelper sometimes adds *.Debian extensions to NEWS, README and TODO files."
So it *sometimes* adds the ``.Debian`` extension (but not always?),
but ``wrong-name-for-debian-news-file`` says this:
"The Debian news file must be installed as /usr/share/doc/*pkg*/NEWS.Debian.gz with exactly that capitalization"
I'm assuming the *must* word complies with RFC2119 and was deliberately chosen?
incorrect-packaging-filename explainer could probably be updated to
clarify. It's probably worded like that because native packages don't
get the .Debian suffix added to some stuff like TODO.
So it's confusing to first get a warning about using ``NEWS.Debian`` to
then get a warning which uses ``NEWS.Debian`` in its explanation.
I don't know if (some?) references are outdated and should use the
'new' name or whether it's all technically correct and just confusing as
hell for 'newbies' like me, in which case an explanation in developers-reference would be much appreciated.
Lintian checks both the source packaging and the binary packages
produced, so its output will refer to things in both. In the source, the
news file must be located at debian/NEWS. According to the dh_installchangelogs(1) manpage, this is then installed to /usr/share/doc/<package>/NEWS.Debian in the binary package, and since
Lintian found the issues like debian-news-entry-has-strange-distribution
there, it refers to NEWS.Debian rather than NEWS.
You're right, the developer's reference seems to have no explanation
detailing this. You could open a bug against developers-reference, or
reopen and reassign this bug there.
--
Maytham
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEESl/RzRFQh8wD3DXB1ZeJcgbF8H8FAmh8INYACgkQ1ZeJcgbF 8H/L9xAAjHWxhy/01B1bgsqr+byHk3zQaMZNKkXQNUyvpOedyNVE39Kx0RIre7vN pd0jwZB8JIZ3DKkA+3bX/gYazcvjKZJUaxeVJemtbOezpljPTlfKYYA79mipzyZQ TtNbwan8BXjMiNdws0vXTb/0F/1e0ssaA/qm9umufosF3i+WtQubYP5WbazdqIG3 n0B+n1Rl6WUYpBUeUGDbVVMIrGTldO8cRcm+LEEF0OIh50yCG0oSulIqGVxUMklp q2ql8H+hoE+dLqRkdaKQO8+6vys7c/Bw/CSfnEh/QNzf8w4Kfkqzz8+PMgZxdxP7 nqUz7LekMNbaE5ZjYfvXHyEeyaJh8EfkCcJbQKFWD90f+8FKRblf6abNToTC/Jxn GgDtN/eTIL25afVde3PsBx7oro0mXrdR2Ilr6aLM+FkA/vVAIL4VEH0o40VKZokC Wh6reMyJrmXyKG8/0V5Dn+3fM1ntXL73dT7TTOvIs9YUjPEctNFsCqhxH2fLGS8P p8CZ9aaNJxjZhJrSDPLO+xVDAQoYBgRaxZo+0qUCtRUZ9g7OT8fzGfdUjFVMbfgM vUkwlhBpPysluZm6y/G0QdumS1+abbKZbsqkscXLWisRfGjnVhLzFmrpk7P1XpDJ 4ygFiJ+E0j09wuF6ih8UnpK1UK8WbHinobQYDZ4RrU1jQU3SxcU=
=O0i1
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)