On Mon, Sep 24, 2018 at 07:23:43PM +0100, Chris Lamb wrote: > > please add a lintian note to inform/warn about python in the shebang (instead of > > python2/python2.7). > > Thanks for this. Can you draft a very rough tag description for this? > Your following paragraph (re. easy and safe) seems to be a fairly good > place to start. Just noting here that the tag description should also say that if the package uses dh_python2 (and it is throughly applied to all the python files…) just rebuilding the package will fix the situation, starting with dh-python 3.20180313 (from the changelog "dh_python2: rewrite /usr/bin/python shebangs to /usr/bin/python2"). > In addition, just checking that you mean "#!/usr/bin/python" vs "#!/ > usr/bin/python2.7" (not "!#python" or somesuch). TBH, I'd hope lintian already complains (laudly) about #!python ... at a quite high severity even... > Finally, linking to some good/bad packages in Debian would help us > prioritise this effectively. looking at current sid: BAD: mattia@warren ~ % rgrep 'usr/bin/python$' /usr/bin|head /usr/bin/scons:#! /usr/bin/python /usr/bin/cssparse_py2:#!/usr/bin/python /usr/bin/pygmentize:#! /usr/bin/python /usr/bin/dh_python2:#! /usr/bin/python /usr/bin/csscombine_py2:#!/usr/bin/python /usr/bin/pyflakes:#!/usr/bin/python /usr/bin/sconsign:#! /usr/bin/python Binary file /usr/bin/svtplay-dl matches /usr/bin/bzr.bzr:#! /usr/bin/python /usr/bin/markdown_py:#!/usr/bin/python GOOD: mattia@warren ~ % rgrep -E 'usr/bin/python2(\.7)?$' /usr/bin|head /usr/bin/ubuntu-build:#! /usr/bin/python2 /usr/bin/seeded-in-ubuntu:#! /usr/bin/python2 /usr/bin/calibredb:#!/usr/bin/python2.7 /usr/bin/ubuntu-upload-permission:#! /usr/bin/python2 /usr/bin/pyclean:#! /usr/bin/python2 /usr/bin/tkconch:#! /usr/bin/python2 /usr/bin/mailmail:#! /usr/bin/python2 /usr/bin/pbuilder-dist:#! /usr/bin/python2 /usr/bin/backportpackage:#! /usr/bin/python2 /usr/bin/sponsor-patch:#! /usr/bin/python2 -- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`. more about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'` Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
Attachment:
signature.asc
Description: PGP signature