Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309041 - Packages using gnome-python-common.eclass: Support installation for multiple Python ABIs
Summary: Packages using gnome-python-common.eclass: Support installation for multiple ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 313723 (view as bug list)
Depends on: 309039
Blocks: 308257 308261 312135 315829 322253
  Show dependency tree
 
Reported: 2010-03-11 19:24 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2010-05-31 21:06 UTC (History)
2 users (show)

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


Attachments
gconf-python-2.28.0.ebuild.patch (gconf-python-2.28.0.ebuild.patch,965 bytes, patch)
2010-03-11 19:28 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff
gdl-python-2.19.1-r2.ebuild.patch (gdl-python-2.19.1-r2.ebuild.patch,1.09 KB, patch)
2010-03-11 19:29 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff
gnome-python-common.eclass.patch (gnome-python-common.eclass.patch,2.95 KB, patch)
2010-04-06 22:27 UTC, Gilles Dartiguelongue (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 2010-03-11 19:24:38 UTC
Packages using gnome-python-common.eclass should support installation for multiple Python ABIs and properly specify dependency on Python. dev-python/pygtk doesn't yet support Python 3, so I assume that GNOME Python modules also don't support Python 3. I'm attaching patches for ebuilds. Changes in other ebuilds are very similar, so you should be able to apply the changes in all GNOME Python modules.

You can read documentation in:
http://www.gentoo.org/proj/en/Python/developersguide.xml
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-11 19:27:39 UTC
(In reply to comment #0)
> I'm attaching patches for ebuilds.

s/ebuilds/some example ebuilds/
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-11 19:28:44 UTC
Created attachment 223187 [details, diff]
gconf-python-2.28.0.ebuild.patch
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-11 19:29:31 UTC
Created attachment 223189 [details, diff]
gdl-python-2.19.1-r2.ebuild.patch
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-11 19:32:55 UTC
This bug is for the following packages:
dev-python/brasero-python
dev-python/bug-buddy-python
dev-python/egg-python
dev-python/evince-python
dev-python/evolution-python
dev-python/gconf-python
dev-python/gdl-python
dev-python/gnome-applets-python
dev-python/gnome-desktop-python
dev-python/gnome-keyring-python
dev-python/gnome-media-python
dev-python/gnome-vfs-python
dev-python/gtkhtml-python
dev-python/gtkmozembed-python
dev-python/gtksourceview-python
dev-python/gtkspell-python
dev-python/libbonobo-python
dev-python/libgda-python
dev-python/libgksu-python
dev-python/libgnomecanvas-python
dev-python/libgnomeprint-python
dev-python/libgnome-python
dev-python/libgtop-python
dev-python/librsvg-python
dev-python/libwnck-python
dev-python/metacity-python
dev-python/nautilus-cd-burner-python
dev-python/totem-python
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-06 22:27:41 UTC
Created attachment 226781 [details, diff]
gnome-python-common.eclass.patch

* pygobject/pygtk do not support python:3 yet so restrict 3.*
* I wonder if it makes any sense to support EAPI < 3 since we manage all the ebuilds using this eclass and it is not meant for general use anyway so no story of eclass API stability
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-07 07:43:04 UTC
(In reply to comment #5)

In EAPI <=2 in ebuilds not supporting installation for multiple Python ABIs you should pass full paths to python_mod_optimize(). It's a good idea to pass arguments to python_mod_cleanup(). I suggest to export pkg_postinst and pkg_postrm in EAPI >=2. You probably don't need to export src_unpack in EAPI >=2.
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-07 19:51:21 UTC
(In reply to comment #6)
> (In reply to comment #5)
> In EAPI <=2 in ebuilds not supporting installation for multiple Python ABIs
> you should pass full paths to python_mod_optimize().

I noticed that the patched eclass sets SUPPORT_PYTHON_ABIS="1", so gnome-python-common_pkg_postinst() doesn't need changes.

(I would suggest to use bug #309039 for discussion about this eclass.)
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-05-26 12:13:59 UTC
*** Bug 313723 has been marked as a duplicate of this bug. ***
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-05-31 21:06:12 UTC
Fixed with bug #309039. Please reopen if anything is missing besides dependencies not being multiple ABI aware yet (like libbonobo-python and pyorbit).