summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-07-21 13:12:18 +0200
committerSergei Golubchik <serg@mariadb.org>2019-07-21 13:12:18 +0200
commit6e98f6810c28e3ca6c2932d6842bf2d816758158 (patch)
treec2d331c7300144312f80a64984e196a3c2d3dc10 /support-files
parente2bbb6f5e9b766d4ab91bcdef895414bedd00bc4 (diff)
downloadmariadb-git-6e98f6810c28e3ca6c2932d6842bf2d816758158.tar.gz
fix libsepol version detection for SUSE
Diffstat (limited to 'support-files')
-rw-r--r--support-files/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/support-files/CMakeLists.txt b/support-files/CMakeLists.txt
index 83f8bdb740d..9fb045c0657 100644
--- a/support-files/CMakeLists.txt
+++ b/support-files/CMakeLists.txt
@@ -87,8 +87,9 @@ IF(UNIX)
INSTALL(FILES ${out} DESTINATION ${inst_location}/policy/selinux COMPONENT SupportFiles)
ENDFOREACH()
IF(RPM)
- EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}-%{RELEASE}" libsepol OUTPUT_VARIABLE LIBSEPOL_VERSION)
- IF (LIBSEPOL_VERSION)
+ EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}-%{RELEASE}" libsepol
+ OUTPUT_VARIABLE LIBSEPOL_VERSION RESULT_VARIABLE err)
+ IF (NOT err)
SET(CPACK_RPM_server_PACKAGE_REQUIRES
"${CPACK_RPM_server_PACKAGE_REQUIRES} libsepol >= ${LIBSEPOL_VERSION}"
PARENT_SCOPE)