]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: cmake configure error on fedora-37/rawhide 59313/head
authorKaleb S. KEITHLEY <kkeithle@redhat.com>
Mon, 14 Feb 2022 12:42:08 +0000 (07:42 -0500)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 19 Aug 2024 16:27:18 +0000 (23:27 +0700)
see
https://kojipkgs.fedoraproject.org//work/tasks/6624/82706624/build.log,
excerpted below

...
CMake Error: The inter-target dependency graph contains the following
strongly connected component (cycle): "rgw_common" of type
STATIC_LIBRARY depends on "dbstore" (weak) depends on "sqlite_db" (weak)
"dbstore" of type SHARED_LIBRARY depends on "rgw_common" (weak) depends
on "sqlite_db" (weak) "sqlite_db" of type SHARED_LIBRARY depends on
"rgw_common" (weak) depends on "dbstore" (weak) At least one of these
targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only
among static libraries. CMake Generate step failed. Build files cannot
be regenerated correctly.
...

https://tracker.ceph.com/issues/54266

Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
(cherry picked from commit 78edb6a91788133334ceeeda0c95529df5f40da8)

src/rgw/store/dbstore/CMakeLists.txt
src/rgw/store/dbstore/sqlite/CMakeLists.txt

index 2af2638c0a9e5e344e3234580435e7c3e1eb25e0..942643046f1787fc42dea9377c6921d375365a7a 100644 (file)
@@ -48,7 +48,7 @@ else()
 endif()
 
 include_directories(${CMAKE_INCLUDE_DIR})
-add_library(dbstore ${dbstore_mgr_srcs})
+add_library(dbstore STATIC ${dbstore_mgr_srcs})
 target_link_libraries(dbstore ${CMAKE_LINK_LIBRARIES})
 
 # testing purpose
index cce59b9ec0aa9bfde206ac26beb6644ad348c16e..909765e3058b6fdda7324fc4537527ab9b1e58c7 100644 (file)
@@ -12,5 +12,5 @@ include_directories(${CMAKE_INCLUDE_DIR})
 set(SQLITE_COMPILE_FLAGS "-DSQLITE_THREADSAFE=1")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SQLITE_COMPILE_FLAGS}")
 
-add_library(sqlite_db ${sqlite_db_srcs})
+add_library(sqlite_db STATIC ${sqlite_db_srcs})
 target_link_libraries(sqlite_db sqlite3 dbstore_lib rgw_common)