#1133303 lintian: please warn if Priority: is set in Source: stanza

#1133303#5
Date:
2026-04-11 23:06:32 UTC
From:
To:
Dear lintian maintainers,

could a warning be raised if a package sets the Priority: field in its
Source: stanza?

The Priority: field in the Source: stanza is inherited by the binary
packages stanzas, but it is rarely the case that all binary packages
should have the same Priority (unless it is "optional", but that is
handled by another lintian check).

This not-so-well-known inheritance mechanism leads to issues like
<https://bugs.debian.org/1132985>

Regards,

#1133303#10
Date:
2026-04-12 11:24:46 UTC
From:
To:
I am not sure if this is a good idea, as this would make all such
packages which have a Priority value of not optional, lintian un-clean.

Also if a source package has a single binary package and it has Priority
field in source stanza, that is already good enough so this is another
edge case lintian should ignore.
And there will probably be more cases to consider before emitting this.
Even then, it should /not/ be a warning level severity, I suppose?

Thanks,
Nilesh