Summary: | gnome-base/gnome-menus: Verify and potentially improve Python-related code | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | jacobgodserv, xmw |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 308257, 313471 | ||
Attachments: |
python abi 2 patch
second attempt to prevent it from failing against python 3 second attempt to prevent it from failing against python 3 gnome-menus.patch |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
2010-04-06 17:01:54 UTC
Created attachment 233973 [details, diff]
python abi 2 patch
this also affects 2.30.0 from the gnome overlay.
Comment on attachment 233973 [details, diff]
python abi 2 patch
You cannot call use() function in global scope.
(In reply to comment #2) > (From update of attachment 233973 [details, diff]) > You cannot call use() function in global scope. > the provide a patch by yourself instead of snide responses ... Created attachment 234031 [details, diff]
second attempt to prevent it from failing against python 3
Created attachment 234033 [details, diff]
second attempt to prevent it from failing against python 3
Created attachment 235501 [details, diff]
gnome-menus.patch
This patch only removes deprecation warnings and fixes calls to python_mod_cleanup(). pkg_postrm() is executed with values of USE flags of previously installed ebuild. python_mod_cleanup() will trigger call to die(), when Python isn't installed. python_get_sitedir() in pkg_postrm() after calling python_mod_optimize() in pkg_postinst() prints path to site-packages directory of this version of Python, which was locally active in previously installed ebuild at the time when pkg_postinst() was run.
I will commit this patch, if you don't object in 1 week.
Comment on attachment 235501 [details, diff]
gnome-menus.patch
Committed.
*** Bug 325359 has been marked as a duplicate of this bug. *** + 08 Nov 2010; Gilles Dartiguelongue <eva@gentoo.org> + -gnome-menus-2.26.2.ebuild, -gnome-menus-2.28.0.1.ebuild, + gnome-menus-2.30.4.ebuild: + Support mulitple-python installations, bug #313447. Clean up old + revisions. Should be fine now. Thanks for reporting. |