summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-09-22 15:20:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-25 11:09:04 +0100
commit355bf4b25908d4ed513942b214484ef50174e34b (patch)
tree41f0d89464ecb99b711ff784a69eaf8b062358ce
parent933f7f277825e92cc62b2aa73bfeb91436ac5b96 (diff)
downloadpoky-355bf4b25908d4ed513942b214484ef50174e34b.tar.gz
libdnf: remove non-functional gtk-doc support
The gtk-doc integration doesn't actually work, as it isn't built by default and the targets need to be triggered manually. As clearly nobody was using it, and upstream appears to prefer doxygen for API documentation, remove the gtk-doc support. This also means adding gettext to the dependencies, as this was being pulled in via gtk-doc before but is actually needed for the translations. (From OE-Core rev: cd8987a4d044955950dc000a5757175982dcd2f3) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/libdnf/libdnf/0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch28
-rw-r--r--meta/recipes-devtools/libdnf/libdnf_0.74.0.bb11
2 files changed, 6 insertions, 33 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch b/meta/recipes-devtools/libdnf/libdnf/0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch
deleted file mode 100644
index 0bd5eeb1da..0000000000
--- a/meta/recipes-devtools/libdnf/libdnf/0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1From 45d06c71976823c610a4719731b68dcd6096888e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 24 Nov 2016 14:33:07 +0200
4Subject: [PATCH] FindGtkDoc.cmake: drop the requirement for
5 GTKDOC_SCANGOBJ_WRAPPER
6
7For some reason cmake is not able to find it when building in openembedded,
8and it's bundled with the source code anyway.
9
10Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/312]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 cmake/modules/FindGtkDoc.cmake | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/cmake/modules/FindGtkDoc.cmake b/cmake/modules/FindGtkDoc.cmake
17index 92b2cc7e..39f34bd5 100644
18--- a/cmake/modules/FindGtkDoc.cmake
19+++ b/cmake/modules/FindGtkDoc.cmake
20@@ -52,7 +52,7 @@ find_program(GTKDOC_MKHTML_EXE gtkdoc-mkhtml PATH "${GLIB_PREFIX}/bin")
21 find_program(GTKDOC_FIXXREF_EXE gtkdoc-fixxref PATH "${GLIB_PREFIX}/bin")
22
23 find_package_handle_standard_args(GtkDoc
24- REQUIRED_VARS GTKDOC_SCAN_EXE GTKDOC_SCANGOBJ_EXE GTKDOC_SCANGOBJ_WRAPPER GTKDOC_MKDB_EXE GTKDOC_MKHTML_EXE GTKDOC_FIXXREF_EXE
25+ REQUIRED_VARS GTKDOC_SCAN_EXE GTKDOC_SCANGOBJ_EXE GTKDOC_MKDB_EXE GTKDOC_MKHTML_EXE GTKDOC_FIXXREF_EXE
26 VERSION_VAR GtkDoc_VERSION)
27
28 # ::
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb b/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb
index aa9e18e763..fafd8c5905 100644
--- a/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb
+++ b/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb
@@ -5,7 +5,6 @@ LICENSE = "LGPL-2.1-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" 5LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
6 6
7SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master;protocol=https \ 7SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master;protocol=https \
8 file://0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch \
9 file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \ 8 file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \
10 file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \ 9 file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \
11 file://enable_test_data_dir_set.patch \ 10 file://enable_test_data_dir_set.patch \
@@ -17,14 +16,16 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master;p
17SRCREV = "91a0bf9aada36a722855051526f012e0b5ab1af9" 16SRCREV = "91a0bf9aada36a722855051526f012e0b5ab1af9"
18UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(?!4\.90)\d+(\.\d+)+)" 17UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(?!4\.90)\d+(\.\d+)+)"
19 18
20DEPENDS = "glib-2.0 libsolv librepo rpm gtk-doc libmodulemd json-c swig-native util-linux" 19DEPENDS = "glib-2.0 libsolv librepo rpm libmodulemd json-c swig-native util-linux"
21 20
22inherit gtk-doc cmake pkgconfig setuptools3-base 21inherit cmake pkgconfig setuptools3-base gettext
23 22
24EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF -DPYTHON_DESIRED=3 \ 23EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3 \
24 -DWITH_GTKDOC=OFF -DWITH_MAN=OFF -DWITH_HTML=OFF \
25 -DWITH_TESTS=OFF \ 25 -DWITH_TESTS=OFF \
26 -DWITH_ZCHUNK=OFF \ 26 -DWITH_ZCHUNK=OFF \
27 -DWITH_HTML=OFF \
28 " 27 "
28
29BBCLASSEXTEND = "native nativesdk" 29BBCLASSEXTEND = "native nativesdk"
30
30SKIP_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)}" 31SKIP_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)}"