summarylogtreecommitdiffstats
path: root/fix_abs_paths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix_abs_paths.patch')
-rw-r--r--fix_abs_paths.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/fix_abs_paths.patch b/fix_abs_paths.patch
new file mode 100644
index 000000000000..851bcc597693
--- /dev/null
+++ b/fix_abs_paths.patch
@@ -0,0 +1,20 @@
+--- src/helper/cmake_install.cmake 2019-07-15 11:37:14.142742451 +0300
++++ src/helper/cmake_install.cmakenew 2019-07-15 11:45:12.875841073 +0300
+@@ -54,7 +54,7 @@
+ if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
+ message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
+ endif()
+-file(INSTALL DESTINATION "/usr/share/polkit-1/actions" TYPE FILE FILES "/home/fenix/tmp/corectrl/src/corectrl-v1.0.1/build/src/helper/org.corectrl.helperkiller.policy")
++file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/polkit-1/actions" TYPE FILE FILES "/home/fenix/tmp/corectrl/src/corectrl-v1.0.1/build/src/helper/org.corectrl.helperkiller.policy")
+ endif()
+
+ if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xCoreCtrlx" OR NOT CMAKE_INSTALL_COMPONENT)
+@@ -90,7 +90,7 @@
+ if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
+ message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
+ endif()
+-file(INSTALL DESTINATION "/usr/share/polkit-1/actions" TYPE FILE FILES "/home/fenix/tmp/corectrl/src/corectrl-v1.0.1/build/src/helper/org.corectrl.helper.policy")
++file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/polkit-1/actions" TYPE FILE FILES "/home/fenix/tmp/corectrl/src/corectrl-v1.0.1/build/src/helper/org.corectrl.helper.policy")
+ endif()
+
+ if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xCoreCtrlx" OR NOT CMAKE_INSTALL_COMPONENT)