On 25/02/26 1:46 am, Jesse Rhodes wrote:
> Package: lintian
> Version: 2.130.0
> Severity: normal
> X-Debbugs-Cc: [email protected]
> 
> Dear Lintian maintainers,
> 
> I am attempting to override 3 instances of spelling-error-in-binary. One 
> is an intentional misspelling used as an example and the other two can't 
> be changed for API reasons.
> 
> When using lintian-override syntax like:
> 
>  > zoitechat binary: spelling-error-in-binary teh the
> 
> Lintian returns:
> 
>  > W: zoitechat: mismatched-override spelling-error-in-binary teh the 
> [usr/share/lintian/overrides/zoitechat:2]
>  > X: zoitechat: spelling-error-in-binary teh the [usr/bin/zoitechat:1]
> 
> If I include the whole contents of the brackets, including the line number:
> 
>  > zoitechat binary: spelling-error-in-binary teh the [usr/bin/zoitechat:1]
> 
> Lintian accepts the override:
> 
>  > N: intentional typo as example for autoreplace function
>  > O: zoitechat: spelling-error-in-binary teh the [usr/bin/zoitechat:1]
> 
> If I include the path in brackets without the line number, I get the 
> former behaviour.
> 
> In the Lintian manual [1] it clearly states that "What's inside brackets 
> is optional and may be omitted if you want to match it all." But it's 
> apparently not optional in my case.

I think by "bracket" the documentation actually means the brackets specified
on the line above "[[<package>][ <archlist>][ <type>]: ]<lintian-tag>[ 
[*]<context>[*]]"
(and not the pointed hints in the tag)

So if I do

 # intentional typo as example for autoreplace function
-zoitechat binary: spelling-error-in-binary teh the [usr/bin/zoitechat:1]
+spelling-error-in-binary teh the [usr/bin/zoitechat:1]
 # another typo example
-zoitechat binary: spelling-error-in-binary mispelled misspelled 
[usr/bin/zoitechat:1]
+spelling-error-in-binary mispelled misspelled [usr/bin/zoitechat:1]
 # upstream will not correct misspelled variable names
-zoitechat binary: spelling-error-in-binary Hilight Highlight 
[usr/bin/zoitechat:1]
+spelling-error-in-binary Hilight Highlight [usr/bin/zoitechat:1]
 # fixing this spelling error would break scripting/theming
-zoitechat binary: spelling-error-in-binary Conection Connection 
[usr/bin/zoitechat:1]
+spelling-error-in-binary Conection Connection [usr/bin/zoitechat:1]

The overrides seem to work.

Even just "echo spelling-error-in-binary > debian/zoitechat.lintian-overrides" 
seem to work as the
pointed hint would be part of the context.

I agree that the wording is pretty confusing here though. It was written by the 
former
maintainer, and I'm unsure what the line of thought was at that point. Anyway, 
would
you like to propose a Merge Request with the wording fixed?
I'll be happy to take a look and merge.

Best,
Nilesh

Reply via email to