diff options
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf/optional-check.patch | 52 | ||||
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf_0.74.0.bb | 4 |
2 files changed, 54 insertions, 2 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/optional-check.patch b/meta/recipes-devtools/libdnf/libdnf/optional-check.patch new file mode 100644 index 0000000000..9228b0560f --- /dev/null +++ b/meta/recipes-devtools/libdnf/libdnf/optional-check.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From a4abd42a6b92f6aa16490c0f482bf08c4a6c2864 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ross Burton <ross.burton@arm.com> | ||
3 | Date: Thu, 18 Sep 2025 11:23:33 +0100 | ||
4 | Subject: [PATCH] Move libcheck dependency to tests/ | ||
5 | |||
6 | If we're not building the tests then there's no point in depending on | ||
7 | libcheck, so move the pkg_check_modules() call to tests/CMakeLists. | ||
8 | |||
9 | Upstream-Status: Backport [https://github.com/rpm-software-management/libdnf/commit/6a127aec78d2ef837776e0e5a8e3636101a54ab0] | ||
10 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
11 | --- | ||
12 | CMakeLists.txt | 1 - | ||
13 | tests/CMakeLists.txt | 7 +++---- | ||
14 | 2 files changed, 3 insertions(+), 5 deletions(-) | ||
15 | |||
16 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
17 | index a489ea73..d1969899 100644 | ||
18 | --- a/CMakeLists.txt | ||
19 | +++ b/CMakeLists.txt | ||
20 | @@ -59,7 +59,6 @@ find_package(LibSolv 0.7.21 REQUIRED COMPONENTS ext) | ||
21 | |||
22 | |||
23 | # build dependencies via pkg-config | ||
24 | -pkg_check_modules(CHECK REQUIRED check) | ||
25 | pkg_check_modules(GLIB REQUIRED gio-unix-2.0>=2.46.0) | ||
26 | include_directories(${GLIB_INCLUDE_DIRS}) | ||
27 | pkg_check_modules(JSONC REQUIRED json-c) | ||
28 | diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt | ||
29 | index e4909682..78743f4e 100644 | ||
30 | --- a/tests/CMakeLists.txt | ||
31 | +++ b/tests/CMakeLists.txt | ||
32 | @@ -1,3 +1,6 @@ | ||
33 | +pkg_check_modules(CHECK REQUIRED check) | ||
34 | +pkg_check_modules(CPPUNIT REQUIRED cppunit) | ||
35 | + | ||
36 | add_subdirectory(libdnf/conf) | ||
37 | add_subdirectory(libdnf/module/modulemd) | ||
38 | add_subdirectory(libdnf/module) | ||
39 | @@ -7,10 +10,6 @@ add_subdirectory(libdnf/sack) | ||
40 | add_subdirectory(hawkey) | ||
41 | add_subdirectory(libdnf) | ||
42 | |||
43 | - | ||
44 | - | ||
45 | -pkg_check_modules(CPPUNIT REQUIRED cppunit) | ||
46 | - | ||
47 | set(LIBDNF_TEST_SOURCES | ||
48 | ${LIBDNF_TEST_SOURCES} | ||
49 | ${CMAKE_CURRENT_SOURCE_DIR}/run_tests.cpp | ||
50 | -- | ||
51 | 2.43.0 | ||
52 | |||
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb b/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb index 6ac518564b..0dce8dc183 100644 --- a/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb +++ b/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb | |||
@@ -11,12 +11,13 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master;p | |||
11 | file://enable_test_data_dir_set.patch \ | 11 | file://enable_test_data_dir_set.patch \ |
12 | file://0001-drop-FindPythonInstDir.cmake.patch \ | 12 | file://0001-drop-FindPythonInstDir.cmake.patch \ |
13 | file://armarch.patch \ | 13 | file://armarch.patch \ |
14 | file://optional-check.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | SRCREV = "91a0bf9aada36a722855051526f012e0b5ab1af9" | 17 | SRCREV = "91a0bf9aada36a722855051526f012e0b5ab1af9" |
17 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(?!4\.90)\d+(\.\d+)+)" | 18 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(?!4\.90)\d+(\.\d+)+)" |
18 | 19 | ||
19 | DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc libmodulemd json-c swig-native util-linux" | 20 | DEPENDS = "glib-2.0 libsolv librepo rpm gtk-doc libmodulemd json-c swig-native util-linux" |
20 | 21 | ||
21 | inherit gtk-doc gobject-introspection cmake pkgconfig setuptools3-base | 22 | inherit gtk-doc gobject-introspection cmake pkgconfig setuptools3-base |
22 | 23 | ||
@@ -31,4 +32,3 @@ EXTRA_OECMAKE:append:class-nativesdk = " -DWITH_GIR=OFF" | |||
31 | 32 | ||
32 | BBCLASSEXTEND = "native nativesdk" | 33 | BBCLASSEXTEND = "native nativesdk" |
33 | SKIP_RECIPE[libdnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'Does not build without package_rpm in PACKAGE_CLASSES due disabled rpm support in libsolv', d)}" | 34 | SKIP_RECIPE[libdnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'Does not build without package_rpm in PACKAGE_CLASSES due disabled rpm support in libsolv', d)}" |
34 | |||