Bug#921080: lintian: warn about non-regenerated Parse::Yapp parsers
Package: lintian
Severity: wishlist
Hello,
packages sometimes ship pre-generated Parse::Yapp parsers while in principle they have to be generated from their source (this has already been discussed in debian-perl@ [1]). A simple check would be to look though the package source for Parse::Yapp-added headers. Example detection code in Perl:
if( $file_contents =~ /^#\s+This file was generated using Parse::Yapp version [\d.]+/ ) {
warn "Parse::Yapp-generated parser";
}
I assume this could fall under the same 'source-is-missing' lintian tag.
Best,
Andrius
[1] https://lists.debian.org/debian-perl/2018/07/msg00026.html
--
Andrius Merkys
Vilnius University Institute of Biotechnology, Saulėtekio al. 7, room V325
LT-10257 Vilnius, Lithuania
Reply to: