|
|
f53c30 |
--- nfs-ganesha-4-rc3/src/CMakeLists.txt.orig 2021-11-08 18:24:19.024041776 -0500
|
|
|
f53c30 |
+++ nfs-ganesha-4-rc3/src/CMakeLists.txt 2021-11-09 13:54:02.553226811 -0500
|
|
|
f53c30 |
@@ -558,11 +558,11 @@
|
|
|
f53c30 |
|
|
|
f53c30 |
gopt_test(USE_ADMIN_TOOLS)
|
|
|
f53c30 |
if (USE_ADMIN_TOOLS)
|
|
|
f53c30 |
- find_package (Python COMPONENTS Interpreter Development)
|
|
|
f53c30 |
- if (NOT Python_Interpreter_FOUND)
|
|
|
f53c30 |
+ find_package(PythonInterp ${USE_ADMIN_TOOLS_REQUIRED})
|
|
|
f53c30 |
+ if (NOT PYTHONINTERP_FOUND)
|
|
|
f53c30 |
message(WARNING "Cannot find python. Disablin admin tools")
|
|
|
f53c30 |
set(USE_ADMIN_TOOLS OFF)
|
|
|
f53c30 |
- endif (NOT Python_Interpreter_FOUND)
|
|
|
f53c30 |
+ endif (NOT PYTHONINTERP_FOUND)
|
|
|
f53c30 |
endif (USE_ADMIN_TOOLS)
|
|
|
f53c30 |
|
|
|
f53c30 |
gopt_test(USE_GUI_ADMIN_TOOLS)
|
|
|
f53c30 |
--- nfs-ganesha-4-rc4/src/scripts/ganeshactl/CMakeLists.txt.orig 2021-11-17 09:22:20.860134361 -0500
|
|
|
f53c30 |
+++ nfs-ganesha-4-rc4/src/scripts/ganeshactl/CMakeLists.txt 2021-11-17 09:41:47.651949504 -0500
|
|
|
f53c30 |
@@ -44,7 +44,7 @@
|
|
|
f53c30 |
Ganesha/QtUI/ui_log_dialog.ui
|
|
|
f53c30 |
)
|
|
|
f53c30 |
|
|
|
f53c30 |
-if(Python_FOUND)
|
|
|
f53c30 |
+if(PYTHONINTERP_FOUND)
|
|
|
f53c30 |
set(SETUP_PY_IN "${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in")
|
|
|
f53c30 |
set(SETUP_PY "${CMAKE_CURRENT_BINARY_DIR}/setup.py")
|
|
|
f53c30 |
set(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/build/ganeshactl_timestamp")
|
|
|
f53c30 |
@@ -118,7 +118,7 @@
|
|
|
f53c30 |
|
|
|
f53c30 |
add_custom_command(
|
|
|
f53c30 |
OUTPUT ${OUTPUT}
|
|
|
f53c30 |
- COMMAND ${Python_EXECUTABLE} "${SETUP_PY}" build
|
|
|
f53c30 |
+ COMMAND ${PYTHON_EXECUTABLE} "${SETUP_PY}" build
|
|
|
f53c30 |
COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT}
|
|
|
f53c30 |
DEPENDS ${GANESHA_SRCS} ${UI_PY_FILES} ${SCRIPTS}
|
|
|
f53c30 |
)
|
|
|
f53c30 |
@@ -127,9 +127,9 @@
|
|
|
f53c30 |
|
|
|
f53c30 |
install(
|
|
|
f53c30 |
CODE
|
|
|
f53c30 |
- "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${Python_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --prefix=\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX})"
|
|
|
f53c30 |
+ "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --prefix=\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX})"
|
|
|
f53c30 |
)
|
|
|
f53c30 |
-endif(Python_FOUND)
|
|
|
f53c30 |
+endif(PYTHONINTERP_FOUND)
|
|
|
f53c30 |
|
|
|
f53c30 |
# Man page
|
|
|
f53c30 |
set(man8_file ganesha_conf.man)
|
|
|
f53c30 |
--- nfs-ganesha-4-rc4/src/scripts/gpfs-epoch/CMakeLists.txt.orig 2021-11-17 09:22:55.938555754 -0500
|
|
|
f53c30 |
+++ nfs-ganesha-4-rc4/src/scripts/gpfs-epoch/CMakeLists.txt 2021-11-17 09:41:32.836208727 -0500
|
|
|
f53c30 |
@@ -38,7 +38,7 @@
|
|
|
f53c30 |
add_custom_command(
|
|
|
f53c30 |
OUTPUT ${OUTPUT}
|
|
|
f53c30 |
COMMAND ${CMAKE_COMMAND} -E touch __init__.py
|
|
|
f53c30 |
- COMMAND ${Python_EXECUTABLE} "${SETUP_PY}" build
|
|
|
f53c30 |
+ COMMAND ${PYTHON_EXECUTABLE} "${SETUP_PY}" build
|
|
|
f53c30 |
COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT}
|
|
|
f53c30 |
DEPENDS ${GPFS_EPOCH_SRCS} ${SCRIPTS}
|
|
|
f53c30 |
)
|
|
|
f53c30 |
@@ -47,7 +47,7 @@
|
|
|
f53c30 |
|
|
|
f53c30 |
install(
|
|
|
f53c30 |
CODE
|
|
|
f53c30 |
- "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${Python_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --prefix=\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} --install-scripts=\$ENV{DESTDIR}${LIBEXECDIR}/ganesha)"
|
|
|
f53c30 |
+ "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --prefix=\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} --install-scripts=\$ENV{DESTDIR}${LIBEXECDIR}/ganesha)"
|
|
|
f53c30 |
)
|
|
|
f53c30 |
- endif(Python_FOUND)
|
|
|
f53c30 |
+ endif(PYTHONINTERP_FOUND)
|
|
|
f53c30 |
endif(USE_FSAL_GPFS)
|