summaryrefslogtreecommitdiff
path: root/dev-util/cmake/files/cmake-2.8.10-FindPythonLibs.patch
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2013-01-11 01:29:27 +1100
committerMichael Palimaka <kensington@gentoo.org>2013-01-11 01:29:27 +1100
commit9adb3b0f90aa914c43e07a4216b77d175627bfb5 (patch)
treef0a9dc77c117cb75e595d34585906458d70aa5cf /dev-util/cmake/files/cmake-2.8.10-FindPythonLibs.patch
parent49df345c5a5bc319ed67bcd5444f709fe7d9a034 (diff)
downloadkde-9adb3b0f90aa914c43e07a4216b77d175627bfb5.tar.gz
kde-9adb3b0f90aa914c43e07a4216b77d175627bfb5.tar.bz2
kde-9adb3b0f90aa914c43e07a4216b77d175627bfb5.zip
[dev-util/cmake] Add improved Python patch for testing wrt bug #405181.
Package-Manager: portage-2.1.11.38 RepoMan-Options: --force
Diffstat (limited to 'dev-util/cmake/files/cmake-2.8.10-FindPythonLibs.patch')
-rw-r--r--dev-util/cmake/files/cmake-2.8.10-FindPythonLibs.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-util/cmake/files/cmake-2.8.10-FindPythonLibs.patch b/dev-util/cmake/files/cmake-2.8.10-FindPythonLibs.patch
new file mode 100644
index 00000000000..d4f18ff50f8
--- /dev/null
+++ b/dev-util/cmake/files/cmake-2.8.10-FindPythonLibs.patch
@@ -0,0 +1,13 @@
+diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
+index 0a9a990..6a13d22 100644
+--- a/Modules/FindPythonLibs.cmake
++++ b/Modules/FindPythonLibs.cmake
+@@ -79,6 +79,8 @@ unset(_PYTHON1_VERSIONS)
+ unset(_PYTHON2_VERSIONS)
+ unset(_PYTHON3_VERSIONS)
+
++EXECUTE_PROCESS(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))"
++ OUTPUT_VARIABLE _Python_VERSIONS)
+ foreach(_CURRENT_VERSION ${_Python_VERSIONS})
+ string(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
+ if(WIN32)