Bug#981268: marked as pending in lintian

2021-03-19 Thread Timo Röhling

* Felix Lechner  [2021-03-18 15:19]:

Please identify a Debian package that suffers from the false positive.

dput does, but ignores it with a lintian-override.

`apt-file search egg-info | grep usr/share` gives a longer list.
catkin-lint would be an example that does not ship with a lintian-override.

- Timo


signature.asc
Description: PGP signature


Bug#981268: marked as pending in lintian

2021-03-18 Thread Felix Lechner
Hi Timo,

On Tue, Mar 16, 2021 at 1:24 PM Timo Röhling  wrote:
>
> I believe there is still an edge case missing

Thanks for bringing that to our attention. Please identify a Debian
package that suffers from the false positive. We would like to test
your regex. Thank you!

Kind regards
Felix Lechner



Bug#981268: marked as pending in lintian

2021-03-16 Thread Timo Röhling

Dear maintainer,

On Thu, 28 Jan 2021 17:48:19 + Felix Lechner  
wrote:

Bug #981268 in lintian reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/lintian/lintian/-/commit/2e0f6dae25728b726bcb71aa5e198fec46b7f843


I believe there is still an edge case missing, as Python
applications may have private modules in /usr/share/PACKAGENAME
which also often need an egg-info/ folder.

I suggest the modified regex 


--- a/lib/Lintian/Check/Documentation.pm2021-03-16 21:05:15.187252857 
+0100
+++ b/lib/Lintian/Check/Documentation.pm2021-03-16 21:07:56.039250618 
+0100
@@ -153,7 +153,7 @@
   # see Bug#904852
   || $file->dirname =~ m{templates?(?:\.d)?/}
   || ( $file->basename =~ m{\.txt$}
-&& $file->dirname =~ m{^usr/lib/python3/.*\.egg-info/}s)
+&& $file->dirname =~ 
m{^usr/(?:lib/python3|share/$ppkg)/.*\.egg-info/}s)
   || ( $file->basename =~ m{^README}xi
 && $file->bytes =~ m{this directory}xi);
 }


Cheers
Timo



signature.asc
Description: PGP signature