summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-10-13 16:18:34 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-10-13 16:20:52 +0200
commitda2eeeb81239d21085b3e6594745f59363b83492 (patch)
tree3cbe6c18cbb9ff6fd0cddd30582de9dfaab6d3c9
parentd643b4bfbcac5a91bc7174bcc29ce679d006a6d6 (diff)
downloadptxdist-da2eeeb81239d21085b3e6594745f59363b83492.tar.gz
ptxdist-da2eeeb81239d21085b3e6594745f59363b83492.tar.xz
host-cmake: add patch to find python by version only
This was the default in earlier cmake versions. In PTXdist we want to specify the correct version, and not just use 'python'. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/cmake-2.8.6/0001-only-look-for-Python-with-version-number.patch27
-rw-r--r--patches/cmake-2.8.6/series4
2 files changed, 31 insertions, 0 deletions
diff --git a/patches/cmake-2.8.6/0001-only-look-for-Python-with-version-number.patch b/patches/cmake-2.8.6/0001-only-look-for-Python-with-version-number.patch
new file mode 100644
index 000000000..3b392d689
--- /dev/null
+++ b/patches/cmake-2.8.6/0001-only-look-for-Python-with-version-number.patch
@@ -0,0 +1,27 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Thu, 13 Oct 2011 14:29:14 +0200
+Subject: [PATCH] only look for Python with version number
+
+PTXdist will provide the correct Python version.
+
+Not for upstream.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ Modules/FindPythonInterp.cmake | 3 ---
+ 1 files changed, 0 insertions(+), 3 deletions(-)
+
+diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake
+index a10ec23..ea37124 100644
+--- a/Modules/FindPythonInterp.cmake
++++ b/Modules/FindPythonInterp.cmake
+@@ -26,9 +26,6 @@
+ # (To distribute this file outside of CMake, substitute the full
+ # License text for the above reference.)
+
+-# Search for the current active python version first
+-find_program(PYTHON_EXECUTABLE NAMES python)
+-
+ # Set up the versions we know about, in the order we will search. Always add
+ # the user supplied additional versions to the front.
+ set(_Python_VERSIONS
diff --git a/patches/cmake-2.8.6/series b/patches/cmake-2.8.6/series
new file mode 100644
index 000000000..612a17ab9
--- /dev/null
+++ b/patches/cmake-2.8.6/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-only-look-for-Python-with-version-number.patch
+# 6939a9d69a386bc8665042471e8d096c - git-ptx-patches magic