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

Bug#901075: Please update the missing-dep-for-interpreter warning for python2



Control: retitle -1 Please update the missing-dep-for-interpreter/missing-build-dependency-for-dh-addon/missing-python-build-dependency warnings for python2
Control: severity -1 important

Hi,

the change from the python package name to python2 does not only
affect the missing-dep-for-interpreter warning, but also the warnings
missing-build-dependency-for-dh-addon and
missing-python-build-dependency.

Chris Lamb wrote:
> > >>> Just to be clear, won't this cause 1000s of warnings due to most
>                                    ^^^^^^^^^^^^^^^^^^^^^^^
> > >>> packages depending on "python" and not "python2"?

If you drop "python" in favour of "python2" in these lists, yes.

What should suffice for now is to add "python2" as valid package for
these kind of dependencies.

Example: I changed the build-dependency in wicd from python to
python2. Now I get:

E: wicd source: missing-build-dependency-for-dh-addon python2 => python:any | python-all:any | python-dev:any | python-all-dev:any

So there seems already a list of packages of which one of them suffices. Just add python2 to them.

Same for missing-python-build-dependency:

E: wicd source: missing-python-build-dependency
N: 
N:    The package appears to use Python as part of its build process in
N:    debian/rules but doesn't depend on Python.
N:    
N:    Normally, packages that use Python as part of the build process should
N:    build-depend on one of python, python-all, python-dev, or python-all-dev
N:    depending on whether they support multiple versions of Python and
N:    whether they're building modules or only using Python as part of the
N:    package build process. Packages that depend on a specific version of
N:    Python may build-depend on the appropriate pythonX.Y or pythonX.Y-dev
N:    package instead.

Here the list is not in the tag itself but it's mentioned in the
description: "should build-depend on one of python, python-all,
python-dev, or python-all-dev" -- Just add python2 to the list in
data/ (I assume) and the long tag description and it should be good.

I assume that missing-dep-for-interpreter works the same.

> > >> I certainly don't want to have these warnings, at least not until dh-python
> > >> starts generating dependencies on python2.  So I assume, that I'll leave these
> > >> new warnings for now.
> > > 
> > > Sorry, can you clarify for me here — you agree that it would generate
> > > many warnings but you wish to wait for the time being...?
> > 
> > I'll live with the new warnings in python-defaults.
>                                   ^^^^^^^^^^^^^^^^^^
> 
> I'm sorry but I'm having difficulties in understanding you.

I don't understand that either. But it seems irrelevant for this bug
report from my point of view.

Maybe it's because everyone fears that we will remove "python"
(without "2" at the end) from that list already now. That would indeed
be a bad idea (now) and I'm sure we won't do that (now). :-)

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe@debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE


Reply to: