Skip to content

Commit

Permalink
bugfix: RPM installation complains about policy files, mariadb.servic…
Browse files Browse the repository at this point in the history
…e is not installed

add a versioned libsepol dependency to the server rpm
  • Loading branch information
vuvova committed Jul 10, 2019
1 parent ab3a6ca commit 578e822
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions support-files/CMakeLists.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 578e822

Please sign in to comment.