Skip to contentSkip to conversation

libuser: fix gtk-doc configure call

PATCH New [email protected] 1 participant 4 messages Jan 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 libuser: fix gtk-doc configure call

From: Ross Burton <[email protected]>

Update the GTK_DOC_CHECK invocation to specify where the documentation will be built (as the default is ./docs).

This is needed so that gtkdocize as run by autopoint knows where the documentation will be built. At the moment we manually call gtkdocize but this will change to autopoint in the future.

---
 .../libuser/libuser/gtkdoc.patch              | 22 +++++++++++++++++++
 .../recipes-support/libuser/libuser_0.64.bb   |  1 +
 2 files changed, 23 insertions(+)
 create mode 100644 meta-gnome/recipes-support/libuser/libuser/gtkdoc.patch
meta-gnome/recipes-support/libuser/libuser/gtkdoc.patch new file +22 -0
new file mode 100644
index 0000000000..4d11b94e02
@@ -0,0 +1,22 @@
+Update the GTK_DOC_CHECK invocation to specify where the
+documentation will be built (as the default is ./docs).
+
+This is needed so that gtkdocize as run by autopoint knows where the
+documentation will be built.
+
+Upstream-Status: Submitted [https://pagure.io/libuser/pull-request/70]
+Signed-off-by: Ross Burton <[email protected]>
+
+diff --git a/configure.ac b/configure.ac
+index 0bd4a67..51508b7 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -169,7 +169,7 @@ if test "$GCC" = yes ; then
+      AC_MSG_RESULT([$enable_Werror])
+ fi
+ 
+-GTK_DOC_CHECK
++GTK_DOC_CHECK([1.14],[--flavour no-tmpl --docdir docs/reference])
+ 
+ AC_CONFIG_FILES([Makefile po/Makefile.in docs/Makefile docs/reference/Makefile
+ libuser.pc])
meta-gnome/recipes-support/libuser/libuser_0.64.bb +1 -0
index d86a577b10..973159c792 100644
@@ -14,6 +14,7 @@ SECTION = "base"
 SRC_URI = "https://releases.pagure.org/libuser/libuser-${PV}.tar.gz \
            file://0001-docs-Disable-building.patch \
            file://0002-remove-unused-execinfo.h.patch \
+           file://gtkdoc.patch \
            "
 
 SRC_URI[sha256sum] = "ea6094c72cb9e60a42fb53509dc98d124a340f1c9222783b503208adc16a0a8f"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/4 libuser: remove obsolete GTKDOC_DOCDIR assignment

From: Ross Burton <[email protected]>

Now that autotools uses autopoint to call gtkdocize, this variable is no longer needed.

---
 meta-gnome/recipes-support/libuser/libuser_0.64.bb | 5 -----
 1 file changed, 5 deletions(-)
meta-gnome/recipes-support/libuser/libuser_0.64.bb +0 -5
index 973159c792..6d3bce8a1c 100644
@@ -27,11 +27,6 @@ REQUIRED_DISTRO_FEATURES = "pam"
 
 EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
 
-GTKDOC_DOCDIR = "${S}/docs/reference"
-
-# run autopoint since it needs ABOUT-NLS and admin/config.rpath from gettext
-#EXTRA_AUTORECONF:remove = "--exclude=autopoint"
-
 do_configure:prepend() {
     install -d ${S}/admin -d ${S}/m4
     touch ${S}/ABOUT-NLS ${S}/admin/config.rpath
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/4 gtksourceview4: remove check for target gtk-doc

In reply to [email protected]

From: Ross Burton <[email protected]>

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.

---
 .../files/0001-remove-pointless-check.patch   | 38 +++++++++++++++++++
 .../gtksourceview/gtksourceview4_4.8.4.bb     |  4 +-
 2 files changed, 40 insertions(+), 2 deletions(-)
 create mode 100644 meta-gnome/recipes-gnome/gtksourceview/files/0001-remove-pointless-check.patch
meta-gnome/recipes-gnome/gtksourceview/files/0001-remove-pointless-check.patch new file +38 -0
new file mode 100644
index 0000000000..8230bbbd16
@@ -0,0 +1,38 @@
+From 397751846130f79d5fbe8d617b788f3bcbb36816 Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+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 <[email protected]>
+---
+ 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
+
meta-gnome/recipes-gnome/gtksourceview/gtksourceview4_4.8.4.bb +2 -2
index 353f02f1ba..5d7d02a2c9 100644
@@ -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'
Signature · 1 line
2.34.1
#3 lore raw

PATCH 4/4 gtksourceview4: remove obsolete workaround for build failures

In reply to [email protected]

From: Ross Burton <[email protected]>

This was likely fixed in 9bea9d1 upstream.

---
 .../gtksourceview/gtksourceview4_4.8.4.bb            | 12 ------------
 1 file changed, 12 deletions(-)
meta-gnome/recipes-gnome/gtksourceview/gtksourceview4_4.8.4.bb +0 -12
index 5d7d02a2c9..38ca4a39e6 100644
@@ -21,16 +21,4 @@ SRC_URI[sha256sum] = "7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb59584
 GIR_MESON_OPTION = 'gir'
 GTKDOC_MESON_OPTION = "gtk_doc"
 
-# Override the definition in meson.bbclass.  The dependencies in mason.build are incomplete
-# and the recipe will not build with "-j 1".  This fix is benign but should be reviewed when
-# updating versions.
-#
-meson_do_compile() {
-    bbnote "========== generating gtksourceview-gresources.h ========"
-    bbnote "PARALLEL_MAKE is ${PARALLEL_MAKE}"
-    ninja ${PARALLEL_MAKE} gtksourceview/gtksourceview-gresources.h
-    bbnote "========== compiling target all ========"
-    ninja ${PARALLEL_MAKE}
-}
-
 FILES:${PN} += "${datadir}/gtksourceview-4"
Signature · 1 line
2.34.1