File: 0001-src-CMakeLists.text.patch

package info (click to toggle)
nfs-ganesha 6.5-6~bpo13%2B1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-backports
  • size: 12,920 kB
  • sloc: ansic: 166,054; cpp: 8,360; perl: 5,828; python: 4,927; sh: 2,777; lex: 764; yacc: 414; makefile: 102; awk: 22; lisp: 20
file content (33 lines) | stat: -rw-r--r-- 1,679 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/src/scripts/ganeshactl/CMakeLists.txt
+++ b/src/scripts/ganeshactl/CMakeLists.txt
@@ -160,7 +160,7 @@ if(Python3_FOUND)
     install(
       CODE
       "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-        COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --prefix=\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX})"
+        COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --install-layout=deb --root=\$ENV{DESTDIR})"
       )
   else()
     install(
--- a/src/scripts/gpfs-epoch/CMakeLists.txt
+++ b/src/scripts/gpfs-epoch/CMakeLists.txt
@@ -80,7 +80,7 @@ if(USE_FSAL_GPFS)
       install(
         CODE
         "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-        COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --prefix=\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} --install-scripts=\$ENV{DESTDIR}${LIBEXECDIR}/ganesha)"
+        COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --install-layout=deb --root=\$ENV{DESTDIR} --install-scripts=./${LIBEXECDIR}/ganesha)"
         )
       else()
       install(
--- a/src/scripts/ganesha-top/CMakeLists.txt
+++ b/src/scripts/ganesha-top/CMakeLists.txt
@@ -78,7 +78,7 @@ if(USE_ADMIN_TOOLS)
       install(
         CODE
         "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-        COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --prefix=\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX})"
+        COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --skip-build --no-compile --install-layout=deb --root=\$ENV{DESTDIR})"
         )
     else()
       install(