python-gobject pulls in python 2.6

Bug #712734 reported by Harry
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
pygobject (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

The newest pygobject_2.27.0+git20110131-0ubuntu2 (packages python-gobject and python-gobject-cairo) depends on both libpython2.6 and libpython2.7.
And because of this, python2.6 would be installed.
I thought python 2.6 was history in Natty.

The former version pygobject_2.27.0+git20110108-0ubuntu1 does not depend on either libpython2.6 or libpython2.7.

Related branches

Harry (harry33)
tags: added: regression
Revision history for this message
Barry Warsaw (barry) wrote :

Python 2.6 is not yet officially dropped for Natty:

https://lists.ubuntu.com/archives/ubuntu-devel/2011-February/032402.html

Revision history for this message
Martin Pitt (pitti) wrote :

Supporting an extra Python version isn't really a regression, but I agree that we don't want to pull python2.6 back onto the CDs, as it will cause nontrivial CD growth.

tags: removed: regression
Changed in pygobject (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pygobject - 2.27.0+git20110131-0ubuntu3

---------------
pygobject (2.27.0+git20110131-0ubuntu3) natty; urgency=low

  * debian/control.in: Drop python2.6 support, to avoid pulling this back on
    the CDs. (LP: #712734)
 -- Martin Pitt <email address hidden> Thu, 03 Feb 2011 22:23:25 +0100

Changed in pygobject (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

this is a hack, not a fix. Dropping python2.6 in pygobject makes all other packages unusable that depend on python2.6 support in pygobject.

The correct solution is not to link the extension against -lpythonX.Y.

Changed in pygobject (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Harry (harry33) wrote :

Now we have even more impossible situation here.
Unmet dependencies prohibit the whole installation of pygobject_2.27.0+git20110131-0ubuntu3 because now python-gtk2 will be uninstalled.
This is due to the incorrect provided virtual packages.
They really create a dependency hell. I see this happening in every cycle of xorg abi bumbs too.

Now see this.
Package python-gtk2_2.22.0-0ubuntu1 depends on virtual packages python2.6-gobject and and python2.7-gobject.
These all are provided with the previous python-gobject_2.27.0+git20110108-0ubuntu1,
but the newest python-gobject_2.27.0+git20110131-0ubuntu3 provides only the latter one,
virtual packages python2.6-gobject is missing!

Python-gtk2 also depends on virtual packages python26-cairo and python2.7-cairo, but they are provided with the the package python-cairo_1.8.8-1ubuntu1.

Revision history for this message
Martin Pitt (pitti) wrote :

Sorry about that, reverting to previous situation to unbreak archive:

pygobject (2.27.0+git20110131-0ubuntu4) natty; urgency=low

  * debian/control.in: Re-add python2.6 to fix pygtk uninstallability.

 -- Martin Pitt <email address hidden> Fri, 04 Feb 2011 09:07:29 +0100

Revision history for this message
Martin Pitt (pitti) wrote :

I bisected it down to

http://git.gnome.org/browse/pygobject/commit/?id=fc7d7f7f153d57ff3866b7bfd5e6479d702cc4d9

which introduced the library dependency.

Revision history for this message
Martin Pitt (pitti) wrote :

So this fix was done for https://bugzilla.gnome.org/show_bug.cgi?id=620215, i. e. actually it should have linked against libpython all the time. Since it seems to have worked well enough without it, I'm happy to revert that dependency just for the python2.6 build.

Revision history for this message
zikaface (zikaface) wrote :

[code]Current status: 42 updates [+3].
Resolving dependencies...
The following NEW packages will be installed:
  libfolks-telepathy20{a} libfolks20{a} libpython2.6{a} python2.6{a} python2.6-minimal{a}
The following packages will be upgraded:
  appmenu-gtk chromium-browser chromium-browser-inspector chromium-codecs-ffmpeg empathy empathy-common google-chrome-unstable gstreamer0.10-alsa gstreamer0.10-plugins-base gstreamer0.10-plugins-base-apps gstreamer0.10-x indicator-applet indicator-applet-session indicator-application
  indicator-appmenu jockey-common jockey-gtk libdbusmenu-glib3 libdbusmenu-gtk3 libglew1.5 libglewmx1.5 libgstreamer-plugins-base0.10-0 libindicate-gtk2 libindicate5 libsqlite3-0 nautilus-sendto-empathy popularity-contest ppp python-cupshelpers python-gobject python-gobject-cairo
  python-indicate system-config-printer-common system-config-printer-gnome system-config-printer-udev transmission-common transmission-gtk ubuntu-sso-client upstart xkb-data xserver-common xserver-xorg-core
42 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 52.1 MB of archives. After unpacking 19.1 MB will be used.
Do you want to continue? [Y/n/?] n
Abort.
:~$ sudo aptitude dist-upgrade
The following NEW packages will be installed:
  libfolks-telepathy20{a} libfolks20{a} libpython2.6{a} python2.6{a} python2.6-minimal{a}
The following packages will be upgraded:
  appmenu-gtk chromium-browser chromium-browser-inspector chromium-codecs-ffmpeg empathy empathy-common google-chrome-unstable gstreamer0.10-alsa gstreamer0.10-plugins-base gstreamer0.10-plugins-base-apps gstreamer0.10-x indicator-applet indicator-applet-session indicator-application
  indicator-appmenu jockey-common jockey-gtk libdbusmenu-glib3 libdbusmenu-gtk3 libglew1.5 libglewmx1.5 libgstreamer-plugins-base0.10-0 libindicate-gtk2 libindicate5 libsqlite3-0 nautilus-sendto-empathy popularity-contest ppp python-cupshelpers python-gobject python-gobject-cairo
  python-indicate system-config-printer-common system-config-printer-gnome system-config-printer-udev transmission-common transmission-gtk ubuntu-sso-client upstart xkb-data xserver-common xserver-xorg-core
42 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 52.1 MB of archives. After unpacking 19.1 MB will be used.
Do you want to continue? [Y/n/?] n
Abort.
[/code]

Martin Pitt (pitti)
summary: - Natty-alfa2 pygobject has incorrect dependencies
+ python-gobject pulls in python 2.6
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pygobject - 2.27.0+git20110131-0ubuntu5

---------------
pygobject (2.27.0+git20110131-0ubuntu5) natty; urgency=low

  * debian/rules: Don't link the python2.6 module against libpython. This will
    reintroduce GNOME#620215 for building packages against the python 2.6
    extension, but it hasn't been a problem before after all. This avoids the
    libpython2.6 dependency which would pull python2.6 back into the CDs.
    (LP: #712734)
 -- Martin Pitt <email address hidden> Fri, 04 Feb 2011 11:52:57 +0100

Changed in pygobject (Ubuntu):
status: Confirmed → Fix Released
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.