Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272532 - Remove python_makesym()
Summary: Remove python_makesym()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-04 05:51 UTC by Casufi
Modified: 2009-08-15 23:35 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casufi 2009-06-04 05:51:16 UTC
I have python 2.5 and python 2.6 installed in slots. I need to use python 2.5 as current python because a lot of packets don't work with python 2.6 (deluge, bzr)

Does it possible to enable commands "eselect python update --ignore 3.0 --ignore 3.1" from /usr/portage/dev-lang/python/python***.ebuild by some use flag ?


Reproducible: Always

Steps to Reproduce:
1.emerge -uDN python
2.
3.
Comment 1 Sebastian Luther (few) 2009-06-04 19:25:36 UTC
I'm not sure if I understand what you want. You complain about eselect python update being run after emerge python? Why do you emerge it more than once?
Comment 2 Casufi 2009-06-05 20:39:00 UTC
Every time I run "emerge -uDN world" two versions of Python (2.5 and 2.6) compete which would be current. It happens because of automatic execution of "eselect python set python2.x" during the update process.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-06-12 14:15:02 UTC
It is intended behavior.
Comment 4 Casufi 2009-06-12 17:58:18 UTC
I have described the situation in which "intended" behavior of the ebuild breaks the system.
A simple command emerge -uDNpv world makes a half of ebuilds to build using python 2.5 and the second - using python 

2.6, also ebuilds bzr and deluge stop to build.
Please show me how to keep installed python 2.5 and python 2.6 without breaking my syste
Comment 5 Casufi 2009-06-12 17:59:18 UTC
I have described the situation in which "intended" behavior of the ebuild breaks the system.
A simple command emerge -uDNpv world makes a half of ebuilds to build using python 2.5 and the second - using python 2.6, also ebuilds bzr and deluge stop to build.
Please show me how to keep installed python 2.5 and python 2.6 without breaking my system? 
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-07-17 17:06:27 UTC
It maybe will be fixed in EAPI=4 or later...
Comment 7 Robert Buchholz (RETIRED) gentoo-dev 2009-08-15 22:21:14 UTC
Even without solving the ABI awareness issue of the package manager, overwriting the "python" symlink should be reevaluated.

The python_makesym() function in python.eclass currently simply overwrites the "/usr/bin/python" symlink with the latest version, which defeats the purpose of "eselect python" and will cause broken emerge runs due to a python change in the middle. Instead, the eclass should determine the python version selected by the administrator and update the symlink accordingly (or if it's broken / on unmerges)
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-15 23:35:10 UTC
(In reply to comment #7)

I removed python_makesym() function.