Skip to content
Permalink
Browse files

bugfix: RPM installation complains about policy files, mariadb.servic…

…e is not installed

add a versioned libsepol dependency to the server rpm
  • Loading branch information...
vuvova committed Jun 26, 2019
1 parent ab3a6ca commit 578e822985a8d7096261f0ad2e6e140cd3d10380
Showing with 8 additions and 0 deletions.
  1. +8 −0 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()

0 comments on commit 578e822

Please sign in to comment.
You can’t perform that action at this time.