Project

General

Profile

Bug #49078

build failure on fedora-34/rawhide when building with system liburing

Added by Kaleb KEITHLEY about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
build
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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)

Also available in: Atom PDF