Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282857 - dev-python/pygobject-2.18.0-r1, dev-python/pygtk-2.14.1-r2: Support installation for multiple Python versions
Summary: dev-python/pygobject-2.18.0-r1, dev-python/pygtk-2.14.1-r2: Support installat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Highest enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 01:28 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2009-08-29 12:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pygobject-2.18.0-r1.ebuild.patch (pygobject-2.18.0-r1.ebuild.patch,3.50 KB, patch)
2009-08-27 01:30 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff
pygobject-2.18.0-support_multiple_python_versions.patch (pygobject-2.18.0-support_multiple_python_versions.patch,1.92 KB, patch)
2009-08-27 01:30 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff
pygtk-2.14.1-r2.ebuild.patch (pygtk-2.14.1-r2.ebuild.patch,2.62 KB, patch)
2009-08-27 01:31 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-27 01:28:51 UTC
The attached patches add support for installation for multiple Python versions.

Previous versions of dev-python/pygobject were installing libpyglib-2.0-python.so which is used by dev-python/pygobject modules installed in site-packages directory which is specific to given Python version. Sources of libpyglib-2.0-python.so use headers specific to given Python version. libpyglib-2.0-python.so must be renamed to allow safe using of it by dev-python/pygobject modules. libpyglib-2.0-python.so seems to be a private library, so renaming shouldn't cause any problems.

dev-python/pygtk belongs to python herd, so we can fix dev-python/pygtk.
I would like to ask for permission to fix dev-python/pygobject. This bug blocks farther convertion of ebuilds of many packages depending on dev-python/pygobject or dev-python/pygtk, so it needs to be fixed quickly.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-27 01:30:15 UTC
Created attachment 202362 [details, diff]
pygobject-2.18.0-r1.ebuild.patch
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-27 01:30:58 UTC
Created attachment 202363 [details, diff]
pygobject-2.18.0-support_multiple_python_versions.patch
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-27 01:31:47 UTC
Created attachment 202365 [details, diff]
pygtk-2.14.1-r2.ebuild.patch
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-27 18:47:11 UTC
Fixed.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-27 20:50:54 UTC
I have no idea of what is the use of such change really. Plus it seems worthless effort since no gnome ebuild respects eselected-python currently... Please enlighten me.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-29 02:33:22 UTC
(In reply to comment #5)
> it seems worthless effort since no gnome ebuild respects eselected-python
> currently...

There are some packages (e.g. dev-python/pywebkitgtk-1.1.6) which depend on dev-python/pygtk:2 and support installation for multiple Python versions.

(Functionality provided by new versions of eselect-python (respecting of EPYTHON variable) is currently used only by some important code inside python.eclass. Ebuilds rather always should use appropriate functions from python.eclass instead of manually setting EPYTHON variable.)

A draft of conversion guide will ready soon.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-29 12:55:39 UTC
I hope you are going to make this stuff easier to use because I am currently greatly dissatisfied with the increase in complexity it drops down on us.