mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-27386: cpack rpm libsepol installed detects verison incorrectly
... when two packages are installed. (fc35 with i686 and x86_64 packages of libsepol installed). $ rpm -q --qf "%{VERSION}" libsepol 3.33.3 Restricting the version to the current achitecture generates a much more obtainable version dependency. $ rpm -q --qf "%{VERSION}" libsepol.x86_64 3.3 This make dependency resolution easier preventing: $ sudo dnf localinstall MariaDB-server-10.8.0-1.fc35.x86_64.rpm ... Last metadata expiration check: 2:06:49 ago on Thu 30 Dec 2021 14:02:32. Error: Problem 1: conflicting requests - nothing provides libsepol >= 3.33.3 needed by MariaDB-server-10.8.0-1.fc35.x86_64 The CMAKE_SYSTEM_PROCESSOR is used in the generation of architecture filenames so its preduent to just use the same version.
This commit is contained in:
parent
546520042f
commit
5d57e04b27
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ IF(UNIX)
|
|||
INSTALL(FILES ${out} DESTINATION ${inst_location}/policy/selinux COMPONENT SupportFiles)
|
||||
ENDFOREACH()
|
||||
IF(RPM)
|
||||
EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}" libsepol
|
||||
EXECUTE_PROCESS(COMMAND rpm -q --qf "%{VERSION}" libsepol."${CMAKE_SYSTEM_PROCESSOR}"
|
||||
OUTPUT_VARIABLE LIBSEPOL_VERSION RESULT_VARIABLE err)
|
||||
IF (NOT err)
|
||||
SET(CPACK_RPM_server_PACKAGE_REQUIRES
|
||||
|
|
Loading…
Reference in a new issue