4f1f8b
Upstream PR: https://github.com/MariaDB/server/pull/1081
4f1f8b
4f1f8b
From d2cbf56d36e422802aa7e53ec0f4e6be8fd53cf5 Mon Sep 17 00:00:00 2001
4f1f8b
From: Honza Horak <hhorak@redhat.com>
4f1f8b
Date: Wed, 9 Jan 2019 20:17:29 +0100
4f1f8b
Subject: [PATCH] Make the PYTHON_SHEBANG value configurable
4f1f8b
4f1f8b
In Fedora 30 it is required to specify either /usr/bin/python2 or /usr/bin/python3 in the shebang, so we need a way to say explicit shebang, ideally in the cmake call.
4f1f8b
---
4f1f8b
 CMakeLists.txt | 4 +++-
4f1f8b
 1 file changed, 3 insertions(+), 1 deletion(-)
4f1f8b
4f1f8b
diff --git a/CMakeLists.txt b/CMakeLists.txt
4f1f8b
index a139c9e5fa4..ccccb08bef1 100644
4f1f8b
--- a/CMakeLists.txt
4f1f8b
+++ b/CMakeLists.txt
4f1f8b
@@ -342,7 +342,9 @@ MYSQL_CHECK_SSL()
4f1f8b
 MYSQL_CHECK_READLINE()
4f1f8b
 
4f1f8b
 SET(MALLOC_LIBRARY "system")
3a7d1f
-SET(PYTHON_SHEBANG "/usr/bin/env python" CACHE STRING "python shebang")
4f1f8b
+IF(NOT DEFINED PYTHON_SHEBANG)
4f1f8b
+  SET(PYTHON_SHEBANG "/usr/bin/env python")
4f1f8b
+ENDIF()
3a7d1f
 MARK_AS_ADVANCED(PYTHON_SHEBANG)
4f1f8b
 
4f1f8b
 CHECK_PCRE()