Your message dated Wed, 14 Jan 2026 16:40:00 -0700
with message-id <3574935.jE0xQCEvom@soren-desktop>
and subject line Re: Bug#1125497: lintian: example-unusual-interpreter
incorrectly flags "#!/usr/bin/env python"
has caused the Debian Bug report #1125497,
regarding lintian: example-unusual-interpreter incorrectly flags
"#!/usr/bin/env python"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1125497: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1125497
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lintian
Version: 2.128.1
Severity: normal
example-unusual-interpreter incorrectly flags "#!/usr/bin/env python" as being
problematic. This feels like a new behavior, because I have many packages
with files with this shebang and have never had an issue before. However,
perhaps it only flags them incorrectly if they are shipped as examples.
Example files that trigger this tag are:
https://salsa.debian.org/python-team/packages/python-libusb1/-/tree/master/examples?ref_type=heads
P: python3-usb1: example-unusual-interpreter python
[usr/share/doc/python3-usb1/examples/hotplug.py]
N:
N: This package contains an example script for an interpreter that is not
shipped in the package and is not known to Lintian. It is possible that there
is a typo or the interpreter is not executable.
N:
N: Visibility: pedantic
N: Show-Always: no
N: Check: scripts
N:
N:
P: python3-usb1: example-unusual-interpreter python
[usr/share/doc/python3-usb1/examples/hotplug_advanced.py]
N:
P: python3-usb1: example-unusual-interpreter python
[usr/share/doc/python3-usb1/examples/listdevs.py]
--- End Message ---
--- Begin Message ---
On Wednesday, January 14, 2026 4:17:29 PM Mountain Standard Time Nilesh Patra
wrote:
> > However, perhaps it only flags them incorrectly if they are shipped as
> > examples.
> Yes, there are2 tags: "unusual-interpreter” and "example-unusual-
interpreter”.
>
> I looked up codesearch and see a bunch of patches fixing the interpreter[1].
> In this case, this is an Issue with your package rather than lintian. If you
> agree, please close this bug report.
>
> [1]
> https://codesearch.debian.net/search?
q=env+python3+path%3Adebian%2Fpatches&li
> teral=1&page=170
Oh, I see. dh_python automatically replaces the "#!/usr/bin/env python”
shebang with “#! /usr/bin/python3” when installing executable Python files,
but this doesn’t happen for example files.
I am closing this bug report accordingly. I apologize for the noise.
--
Soren Stoutner
[email protected]
signature.asc
Description: This is a digitally signed message part.
--- End Message ---