Bug#762273: lintian: wrong-path-for-interpreter should not trigger on non-executables

Dominic Hargreaves dom at earth.li
Sat Sep 20 12:26:53 UTC 2014


Package: lintian
Version: 2.5.27
Severity: normal
X-Debbugs-CC: perl at packages.debian.org

perl currently suffers from this:

E: perl-modules: wrong-path-for-interpreter usr/share/perl/5.20.1/Config/Perl/V.pm (#!/pro/bin/perl != /usr/bin/perl)

Now, whilst it is certainly 'wrong', it's also harmless; a perl module
(ending .pm) should never be executed (and indeed it's not installed
with the executable bit). I imagine that someone put the shebang there
as a hint to a syntax highlighter, or similar.

Carrying around a patch to strip the shebang line seems like the wrong
solution, and there's no generally correct fix to send upstream. Instead,
can this check be updated to only look at files with the executable bit
set?

Thanks,
Dominic.




More information about the Perl-maintainers mailing list