dh-python 1.20141026-1ubuntu1 incorrectly handles gi package names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dh-python (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
1.20141026-1ubuntu1 introduced support for guessing dependencies from the egginfo file:
* Add support for guessing dependencies from egg-info files (closes: 756378)
But this is mishandling gi.introspection dependencies. The pasaffe package, which compiles fine on Utopic, is now adding bogus dependencies to the vivid package:
From the egg-info file:
Requires: gi.repository.GLib
Requires: gi.repository.
Requires: gi.repository.Gdk
Requires: gi.repository.Gio
Requires: gi.repository.Gtk
Requires: gi.repository.Pango
From the build log:
dh_python3 -O--buildsystem
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.glib. Using python3-
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.gdk. Using python3-
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.gio. Using python3-
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.gtk. Using python3-
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.
I'd argue that the issue here is that "Requires: gi.repository.GLib" is incorrect. There is no such package on PyPI, so the requirement will never be satisfied.
Using pydist overrides, as you've done in pasaffe, seems reasonable.