Commit 578e8229 authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: RPM installation complains about policy files, mariadb.service is not installed

add a versioned libsepol dependency to the server rpm
parent ab3a6ca6
...@@ -86,6 +86,14 @@ IF(UNIX) ...@@ -86,6 +86,14 @@ IF(UNIX)
ADD_CUSTOM_TARGET(${pol}-pp ALL DEPENDS ${out}) ADD_CUSTOM_TARGET(${pol}-pp ALL DEPENDS ${out})
INSTALL(FILES ${out} DESTINATION ${inst_location}/policy/selinux COMPONENT SupportFiles) INSTALL(FILES ${out} DESTINATION ${inst_location}/policy/selinux COMPONENT SupportFiles)
ENDFOREACH() 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()
ENDIF() ENDIF()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment