gtksourceview4: remove check for target gtk-doc

Packages that use gtk-doc want to find a native gtk-doc not a target
gtk-doc, so remove the pointless check for a target gtk-doc package.

This only worked before as it was being pulled in via DEPENDS in
glib-2.0, but as of oe-core f91694f this no longer happens.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Ross Burton 2024-01-12 12:53:39 +00:00 committed by Khem Raj
parent 7b7d0e38ff
commit cbc22b5ba4
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,38 @@
From 397751846130f79d5fbe8d617b788f3bcbb36816 Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@arm.com>
Date: Tue, 9 Jan 2024 22:20:03 +0000
Subject: [PATCH] meson: remove pointless gtk-doc check
There's no point explicitly checking for gtk-doc, for two reasons:
1) In cross-compiled environments this looks for a target gtk-doc, not a
native gtk-doc, so it should set native:true.
2) The gnome.gtkdoc() function checks for gtk-doc itself.
Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gtksourceview/-/merge_requests/351]
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
meson.build | 6 ------
1 file changed, 6 deletions(-)
diff --git a/meson.build b/meson.build
index ba07da70..1109daea 100644
--- a/meson.build
+++ b/meson.build
@@ -107,12 +107,6 @@ else
vapigen_dep = []
endif
-if build_gtk_doc
- gtk_doc_dep = dependency('gtk-doc', version: gtk_doc_req)
-else
- gtk_doc_dep = []
-endif
-
# Look for the libxml2 library manually on Visual Studio if
# its pkg-config file could not be found, as the NMake
# Makefiles of libxml2 do not generate the pkg-config files
--
2.34.1

View File

@ -10,12 +10,12 @@ PNAME = "gtksourceview"
S = "${WORKDIR}/${PNAME}-${PV}"
inherit gnomebase lib_package gettext features_check gtk-doc gobject-introspection vala
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
SRC_URI = "https://download.gnome.org/sources/gtksourceview/4.8/${PNAME}-${PV}.tar.xz"
SRC_URI = "https://download.gnome.org/sources/gtksourceview/4.8/${PNAME}-${PV}.tar.xz \
file://0001-remove-pointless-check.patch"
SRC_URI[sha256sum] = "7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb5958420a87d"
GIR_MESON_OPTION = 'gir'