Skip to content

Commit 578e822

Browse files
committed
bugfix: RPM installation complains about policy files, mariadb.service is not installed
add a versioned libsepol dependency to the server rpm
1 parent ab3a6ca commit 578e822

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

support-files/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ IF(UNIX)
8686
ADD_CUSTOM_TARGET(${pol}-pp ALL DEPENDS ${out})
8787
INSTALL(FILES ${out} DESTINATION ${inst_location}/policy/selinux COMPONENT SupportFiles)
8888
ENDFOREACH()
89+
IF(RPM)
90+
EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}-%{RELEASE}" libsepol OUTPUT_VARIABLE LIBSEPOL_VERSION)
91+
IF (LIBSEPOL_VERSION)
92+
SET(CPACK_RPM_server_PACKAGE_REQUIRES
93+
"${CPACK_RPM_server_PACKAGE_REQUIRES} libsepol >= ${LIBSEPOL_VERSION}"
94+
PARENT_SCOPE)
95+
ENDIF()
96+
ENDIF()
8997
ENDIF()
9098
ENDIF()
9199

0 commit comments

Comments
 (0)