Bug#999785: Bogus Lintian warning built-using-field-on-arch-all-package affects prospective package firmware-carl9170
- To: 999785@bugs.debian.org
- Subject: Bug#999785: Bogus Lintian warning built-using-field-on-arch-all-package affects prospective package firmware-carl9170
- From: Julian Gilbey <jdg@debian.org>
- Date: Mon, 26 Aug 2024 07:31:23 +0100
- Message-id: <[🔎] ZswhOzU8aRYWqZ7T@d-and-j.net>
- Reply-to: Julian Gilbey <jdg@debian.org>, 999785@bugs.debian.org
- In-reply-to: <588546cf369ec9b814b6936062cd8df6dd20aac7.camel@posteo.net>
- References: <163708315289.641287.1275206038499140961.reportbug@belkar.wrar.name> <588546cf369ec9b814b6936062cd8df6dd20aac7.camel@posteo.net> <163708315289.641287.1275206038499140961.reportbug@belkar.wrar.name>
retitle 999785 built-using-field-on-arch-all-package emitted for some Arch: all packages that require it
thanks
On Mon, Jul 10, 2023 at 06:01:40AM +0000, John Scott wrote:
> Lintian asserts that having Built-Using on an Arch: all package is always incorrect. Debian Policy permits and often requires having Built-Using on an Arch: all package. This is the situation with carl9170fw, a GPL-2.0-only-licensed binary that bakes in several static libraries that need to have their sources kept around. This is a firmware package, however, so it's Arch: all despite being written in C and producing a bare-metal binary.
> [...]
>
> Furthermore, the far more likely problem with Built-Using is that a package forgets to use it when it should. So when a package *does* remember to set the Built-Using field, it's typically the result of long consideration and the maintainer should be given the benefit of the doubt.
Fully agree; as noted in #1029633, sphinxdoc requires this, despite
generating Arch: all packages. The tag description:
N: The stanza for an installation package in debian/control declares a
N: Built-Using field even though the package is declared as Architecture:
N: all. That is incorrect.
N:
N: The Built-Using field is only used architecture-specific packages. Please
N: remove the Built-Using field from the indicated location.
is simply wrong.
Conversely, it would be helpful to have a check for packages using
sphinxdoc (either B-D on dh-sequence-sphinxdoc or using dh --with
sphinxdoc) that they *are* specifying Built-Using:
${sphinxdoc:Built-Using}.
Best wishes,
Julian
Reply to: