Commit 5b4f50a9 authored by Chris Lamb's avatar Chris Lamb 💬

Expand the description to explain why we emit wrong-path-for-interpreter for #!/usr/bin/env perl.

parent 2cdc94b1
Pipeline #17232 failed with stage
in 0 seconds
......@@ -196,6 +196,11 @@ Severity: important
Certainty: certain
Info: The interpreter you used is installed at another location on Debian
systems.
.
Note that, as a special exception, Debian Policy § 10.4 states that
Perl scripts must use <tt>/usr/bin/perl</tt> directly and not
<tt>/usr/bin/env</tt>, etc.
Ref: policy 10.4
Tag: example-wrong-path-for-interpreter
Severity: wishlist
......
......@@ -285,7 +285,7 @@ sub run {
# As a special-exception, Policy 10.4 states that Perl scripts must use
# /usr/bin/perl directly and not via /usr/bin/env, etc.
tag 'wrong-path-for-interpreter', $filename,
'(#!/usr/bin/env != /usr/bin/perl)'
'(#!/usr/bin/env perl != /usr/bin/perl)'
if defined $calls_env and $interpreter eq 'perl';
# Skip files that have the #! line, but are not executable and
......
......@@ -2,6 +2,10 @@ lintian (2.5.98) UNRELEASED; urgency=medium
XXX: generate tag summary
* checks/scripts.desc:
+ [CL] Expand the description to explain why we emit
wrong-path-for-interpreter for #!/usr/bin/env perl.
* data/rules/rules-should-not-use:
+ [CL] Check for packages that pass -V to dh_shlibdeps instead of
dh_makeshlibs. (Closes: #906722)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment