]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: fix build fail related to PYTHON_EXECUTABLE variable 30260/head
authorIlsoo Byun <ilsoobyun@linecorp.com>
Fri, 6 Sep 2019 04:50:31 +0000 (13:50 +0900)
committerNathan Cutler <ncutler@suse.com>
Mon, 9 Sep 2019 11:59:33 +0000 (13:59 +0200)
Fixes: https://tracker.ceph.com/issues/41676
Signed-off-by: Ilsoo Byun <ilsoobyun@linecorp.com>
(cherry picked from commit d8251aa2139b75452371409c1bd27fec2f7f1774)

src/include/config-h.in.cmake
src/mgr/PyModuleRegistry.cc

index 5ce4a2d4d167b90ebe9e47c1d5ad586a20394186..c4788eb09d791f9968f7cc3628190ea449938ecf 100644 (file)
 /* Define if endian type is little endian */
 #cmakedefine CEPH_LITTLE_ENDIAN
 
-#cmakedefine PYTHON_EXECUTABLE "@MGR_PYTHON_EXECUTABLE@"
+#cmakedefine MGR_PYTHON_EXECUTABLE "@MGR_PYTHON_EXECUTABLE@"
 
 /* Define to 1 if you have the `getprogname' function. */
 #cmakedefine HAVE_GETPROGNAME 1
index 84531ee8377916a1a5c8963a3a66e321c4ca8295..c84affde489f40a672aba824f2532b6f34bd3fbe 100644 (file)
@@ -40,10 +40,10 @@ void PyModuleRegistry::init()
   // Set up global python interpreter
 #if PY_MAJOR_VERSION >= 3
 #define WCHAR(s) L ## #s
-  Py_SetProgramName(const_cast<wchar_t*>(WCHAR(PYTHON_EXECUTABLE)));
+  Py_SetProgramName(const_cast<wchar_t*>(WCHAR(MGR_PYTHON_EXECUTABLE)));
 #undef WCHAR
 #else
-  Py_SetProgramName(const_cast<char*>(PYTHON_EXECUTABLE));
+  Py_SetProgramName(const_cast<char*>(MGR_PYTHON_EXECUTABLE));
 #endif
   // Add more modules
   if (g_conf->get_val<bool>("daemonize")) {