Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 253593

Summary: [ebuild] dev-util/cmake: Packages with python support, but using cmake during install, don't use eselected python version
Product: Gentoo Linux Reporter: Oldrich Jedlicka <oldium.pro>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=603406
https://bugs.gentoo.org/show_bug.cgi?id=835799
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to find eselected python interpreter first
Updated ebuild for dev-util/cmake-2.6.2

Description Oldrich Jedlicka 2009-01-03 18:52:38 UTC
The problem can be seen namely for KDE4 python packages - kde-base/pykde4 for example. The eselected python version has no effect, cmake always uses the latest one.

The root cause is /usr/share/cmake/Modules/FindPythonInterp.cmake (part of dev-util/cmake) that looks namely for "python-2.6", then "python-2.5" and so on. It tries "python" interpreter at the last place, so the first found python version (the latest one) is always used instead of the eselected one.
Comment 1 Oldrich Jedlicka 2009-01-03 19:45:54 UTC
Created attachment 177244 [details, diff]
Patch to find eselected python interpreter first
Comment 2 Oldrich Jedlicka 2009-01-03 19:46:20 UTC
Created attachment 177245 [details]
Updated ebuild for dev-util/cmake-2.6.2
Comment 3 Oldrich Jedlicka 2009-01-03 22:01:48 UTC
The ebuild just applies the attached patch, no more changes there.
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-01-03 22:06:44 UTC
Reasonable patchie.
Added to the tree.