Blame 0001-Fix-undefined-symbols-from-plugins-in-some-circumsta.patch
|
Florian Festi |
0deb13 |
From acfe252822db37fc9f47c221c4e3ae79a5f0be27 Mon Sep 17 00:00:00 2001
|
|
Florian Festi |
0deb13 |
From: Panu Matilainen <pmatilai@redhat.com>
|
|
Florian Festi |
0deb13 |
Date: Mon, 22 May 2023 18:19:24 +0300
|
|
Florian Festi |
0deb13 |
Subject: [PATCH] Fix undefined symbols from plugins in some circumstances
|
|
Florian Festi |
0deb13 |
|
|
Florian Festi |
0deb13 |
Another bit lost in the cmake transition: plugin linkage to librpm and
|
|
Florian Festi |
0deb13 |
librpmio. In rpm itself this doesn't really matter because the running
|
|
Florian Festi |
0deb13 |
process supplies the necessary symbols but it's a different story when eg
|
|
Florian Festi |
0deb13 |
a Python process uses dlopen()'ed bindings.
|
|
Florian Festi |
0deb13 |
---
|
|
Florian Festi |
0deb13 |
plugins/CMakeLists.txt | 1 +
|
|
Florian Festi |
0deb13 |
1 file changed, 1 insertion(+)
|
|
Florian Festi |
0deb13 |
|
|
Florian Festi |
0deb13 |
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
|
|
Florian Festi |
0deb13 |
index 6768378f9..1ca025868 100644
|
|
Florian Festi |
0deb13 |
--- a/plugins/CMakeLists.txt
|
|
Florian Festi |
0deb13 |
+++ b/plugins/CMakeLists.txt
|
|
Florian Festi |
0deb13 |
@@ -40,6 +40,7 @@ set(plugindir ${CMAKE_INSTALL_FULL_LIBDIR}/rpm-plugins)
|
|
Florian Festi |
0deb13 |
|
|
Florian Festi |
0deb13 |
get_property(plugins DIRECTORY PROPERTY BUILDSYSTEM_TARGETS)
|
|
Florian Festi |
0deb13 |
foreach(plugin ${plugins})
|
|
Florian Festi |
0deb13 |
+ target_link_libraries(${plugin} PRIVATE librpmio librpm)
|
|
Florian Festi |
0deb13 |
install(TARGETS ${plugin} DESTINATION ${plugindir})
|
|
Florian Festi |
0deb13 |
endforeach()
|
|
Florian Festi |
0deb13 |
|
|
Florian Festi |
0deb13 |
--
|
|
Florian Festi |
0deb13 |
2.40.1
|
|
Florian Festi |
0deb13 |
|