[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#934853: please add a lintian warning/error for packages (b-)depending on python or using the unversioned python shebang



On 21.08.19 01:16, Chris Lamb wrote:
> tags 934853 + moreinfo
> thanks
> 
> Hi Matthias,
> 
>> please add an lintian warning/error for packages (b-)depending on python or
>> using the unversioned python shebang.
> 
> Do we not have these already? eg. dependency-on-python-version-marked-
> for-end-of-life

my @PYTHON2 = qw(python python2.7 python-dev);

no, this one doesn't differentiate between python, and (python2 and python2.7).
 If we need to keep python2, then the packages should either reference python2
or python2.7, and use python2 or python2.7 as the shebang.

> and script-uses-unversioned-python-in-shebang etc.?

https://lintian.debian.org/tags.html doesn't show this tag yet.

> If not, please split/clone and retitle this bug to suit or, if you
> wish for their severity to be raised or other changes, please make
> that a little clearer - I'm not sure what the Lintian maintainers' next
> actions should be here.

So I think the first one can be made an error, when the plain python shebang or
python dependency is used, and a warning if python2/python2.7 is used?  If
differentiation is not possible, maybe introduce a second tag?

Matthias


Reply to: