Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253593 - [ebuild] dev-util/cmake: Packages with python support, but using cmake during install, don't use eselected python version
Summary: [ebuild] dev-util/cmake: Packages with python support, but using cmake during...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-03 18:52 UTC by Oldrich Jedlicka
Modified: 2023-03-04 10:15 UTC (History)
0 users

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


Attachments
Patch to find eselected python interpreter first (cmake-FindPythonInterp.patch,689 bytes, patch)
2009-01-03 19:45 UTC, Oldrich Jedlicka
Details | Diff
Updated ebuild for dev-util/cmake-2.6.2 (cmake-2.6.2.ebuild,2.77 KB, text/plain)
2009-01-03 19:46 UTC, Oldrich Jedlicka
Details

Note You need to log in before you can comment on or make changes to this bug.
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.