Bug #49078
build failure on fedora-34/rawhide when building with system liburing
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
in ceph-16.1.0-43-g6b74fb5c snapshot, cmake fails to find system liburing.
(Note: the ceph.spec(.in) needs a 'BuildRequires: liburing-devel' added somewhere.)
.../cmake/modules/Finduring.cmake is looking for liburing.a, which doesn't exist in Fedora's liburing(-devel), and by extension in RHEL's. (I.e. either the one that'll presumably be in RHEL-9 base or the internal/private build(s) for RHEL-8.)
I fixed it with:
--- ceph-16.1.0-43-g6b74fb5c/cmake/modules/Finduring.cmake.orig 2021-02-01 08:45:39.316108287 -0500
+++ ceph-16.1.0-43-g6b74fb5c/cmake/modules/Finduring.cmake 2021-02-01 08:45:59.813665378 -0500@ -5,7 +5,7
@
# uring_FOUND - True if uring found.
find_path(URING_INCLUDE_DIR liburing.h)
-find_library(URING_LIBRARIES liburing.a liburing)
+find_library(URING_LIBRARIES liburing.so liburing)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(uring DEFAULT_MSG URING_LIBRARIES URING_INCLUDE_DIR)