From 578e822985a8d7096261f0ad2e6e140cd3d10380 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 26 Jun 2019 11:46:59 +0200 Subject: bugfix: RPM installation complains about policy files, mariadb.service is not installed add a versioned libsepol dependency to the server rpm --- support-files/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'support-files/CMakeLists.txt') diff --git a/support-files/CMakeLists.txt b/support-files/CMakeLists.txt index 36d4c0949ed..83f8bdb740d 100644 --- a/support-files/CMakeLists.txt +++ b/support-files/CMakeLists.txt @@ -86,6 +86,14 @@ IF(UNIX) ADD_CUSTOM_TARGET(${pol}-pp ALL DEPENDS ${out}) 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) + SET(CPACK_RPM_server_PACKAGE_REQUIRES + "${CPACK_RPM_server_PACKAGE_REQUIRES} libsepol >= ${LIBSEPOL_VERSION}" + PARENT_SCOPE) + ENDIF() + ENDIF() ENDIF() ENDIF() -- cgit v1.2.1