summaryrefslogtreecommitdiffstats
path: root/package/setools/0002-move-python-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/setools/0002-move-python-check.patch')
-rw-r--r--package/setools/0002-move-python-check.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/setools/0002-move-python-check.patch b/package/setools/0002-move-python-check.patch
new file mode 100644
index 0000000000..cef2cec996
--- /dev/null
+++ b/package/setools/0002-move-python-check.patch
@@ -0,0 +1,25 @@
+Correct a build issue that occurs when python is not found
+in the path. This check should only be done if swig-python
+option is selected.
+
+Signed-off-by Clayton Shotwell <clshotwe@rockwellcollins.com>
+
+--- a/configure.ac 2015-05-15 12:28:07.566060349 -0500
++++ b/configure.ac 2015-05-28 15:07:25.357072800 -0500
+@@ -217,8 +217,6 @@
+ do_swigify=yes
+ fi
+
+-AM_PATH_PYTHON(2.7)
+-
+ AC_ARG_ENABLE(swig-python,
+ AC_HELP_STRING([--enable-swig-python],
+ [build SWIG interfaces for Python]),
+@@ -227,6 +225,7 @@
+ if test ${do_swigify} = no; then
+ AC_PROG_SWIG(2.0.0)
+ fi
++ AM_PATH_PYTHON(2.7)
+ SWIG_PYTHON
+ do_swigify_python=yes
+ do_swigify=yes
OpenPOWER on IntegriCloud