From 2ff95216a9e266c0b94c0326ba391bd0f236c1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sun, 18 Nov 2018 14:32:34 +0200 Subject: [PATCH] MXS-2081: Prevent unwanted stripping of binaries RPM packages by default strip all executables on some systems after installation. To work around this, the post install part needs to be prevented. This does not mean the post-install scripts used to create the directories required by MaxScale. --- cmake/package_rpm.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/package_rpm.cmake b/cmake/package_rpm.cmake index 7980aa36c..77b02960f 100644 --- a/cmake/package_rpm.cmake +++ b/cmake/package_rpm.cmake @@ -8,6 +8,7 @@ set(CPACK_RPM_SPEC_MORE_DEFINE "%define ignore \#") set(CPACK_RPM_PACKAGE_NAME "${CPACK_PACKAGE_NAME}") set(CPACK_RPM_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}") set(CPACK_RPM_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION}") +set(CPACK_RPM_SPEC_INSTALL_POST "/bin/true") # This prevents the default %post from running which causes binaries to be # striped. Without this, MaxCtrl will not work on all systems as the