dh-python 1.20141026-1ubuntu1 incorrectly handles gi package names

Bug #1389283 reported by Marc Deslauriers
8
This bug affects 1 person
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.GObject
Requires: gi.repository.Gdk
Requires: gi.repository.Gio
Requires: gi.repository.Gtk
Requires: gi.repository.Pango

From the build log:

   dh_python3 -O--buildsystem=pybuild
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.glib. Using python3-gi.repository.glib as package name. Please add "gi.repository.glib correct_package_name" line to debian/py3dist-overrides to override it IF this is incorrect.
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.gobject. Using python3-gi.repository.gobject as package name. Please add "gi.repository.gobject correct_package_name" line to debian/py3dist-overrides to override it IF this is incorrect.
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.gdk. Using python3-gi.repository.gdk as package name. Please add "gi.repository.gdk correct_package_name" line to debian/py3dist-overrides to override it IF this is incorrect.
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.gio. Using python3-gi.repository.gio as package name. Please add "gi.repository.gio correct_package_name" line to debian/py3dist-overrides to override it IF this is incorrect.
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.gtk. Using python3-gi.repository.gtk as package name. Please add "gi.repository.gtk correct_package_name" line to debian/py3dist-overrides to override it IF this is incorrect.
I: dh_python3 pydist:183: Cannot find installed package that provides gi.repository.pango. Using python3-gi.repository.pango as package name. Please add "gi.repository.pango correct_package_name" line to debian/py3dist-overrides to override it IF this is incorrect.

Revision history for this message
Stefano Rivera (stefanor) wrote :

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.

Changed in dh-python (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.