Skip to contentSkip to conversation

dbus-glib: package the binding tool into PN-tools, enable nativesdk

PATCH New Ross Burton 1 participant 7 messages Aug 4, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 dbus-glib: package the binding tool into PN-tools, enable nativesdk

In a SDK environment we need a nativesdk build of dbus-glib for the dbus-binding-tool binary. Add a nativesdk variation and put the tool into a -tools subpackage so it can be installed if needed.

---
 meta/recipes-core/dbus/dbus-glib_0.114.bb | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
meta/recipes-core/dbus/dbus-glib_0.114.bb +7 -4
index 28a9d4a4fc7..ff3d282ac6f 100644
@@ -29,16 +29,19 @@ PACKAGECONFIG ??= ""
 PACKAGECONFIG[tests] = "--enable-tests,,,"
 
 EXTRA_OECONF:class-target = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool"
+EXTRA_OECONF:class-nativesdk = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool"
 
-PACKAGES += "${PN}-tests"
+PACKAGES += "${PN}-tests ${PN}-tools"
 
 FILES:${PN} = "${libdir}/lib*${SOLIBS}"
 FILES:${PN}-bash-completion += "${libexecdir}/dbus-bash-completion-helper"
 LICENSE:${PN}-bash-completion = "GPL-2.0-or-later"
-FILES:${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"
-FILES:${PN}-dev += "${bindir}/dbus-binding-tool"
+
+RDEPENDS:${PN}-dev += "${PN}-tools"
 
 RDEPENDS:${PN}-tests = "${PN}"
 FILES:${PN}-tests = "${datadir}/${BPN}/tests"
 
-BBCLASSEXTEND = "native"
+FILES:${PN}-tools = "${bindir}"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/7 dbus-glib: remove unused packaging of tests

We're carrying a patch to install the tests, but we don't actually install them by default or have any ptest infrastructure to run them.

As this is complicating the recipe for no reason, remove it all. If someone in the future wants to run the tests they can do it with ptest so they're exercised correctly.

---
 .../dbus-glib/test-install-makefile.patch     | 58 -------------------
 meta/recipes-core/dbus/dbus-glib_0.114.bb     | 11 +---
 2 files changed, 1 insertion(+), 68 deletions(-)
 delete mode 100644 meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch
meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch deleted +0 -58
deleted file mode 100644
index 0b1b712dd9d..00000000000
@@ -1,58 +0,0 @@
-From 4dbb1a459c281eeb716b4f0ce2fc01e8034c3e20 Mon Sep 17 00:00:00 2001
-From: Yao Zhao <[email protected]>
-Date: Tue, 17 Jul 2012 16:46:30 -0400
-Subject: [PATCH] Change Makefile.am to install regression tests for test
- package purpose.
-
-Upstream-Status: Inappropriate [test not install is for purpose from upstream]
-
-Signed-off-by: Yao Zhao <[email protected]>
-Signed-off-by: Chong Lu <[email protected]>
----
- test/Makefile.am            | 3 ++-
- test/core/Makefile.am       | 3 ++-
- test/interfaces/Makefile.am | 3 ++-
- 3 files changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/test/Makefile.am b/test/Makefile.am
-index 7393bed..1c25d5d 100644
---- a/test/Makefile.am
-+++ b/test/Makefile.am
-@@ -48,7 +48,8 @@ TESTS = \
- 	$(test_scripts) \
- 	$(NULL)
- 
--noinst_PROGRAMS = \
-+testdir = $(datadir)/@PACKAGE@/tests
-+test_PROGRAMS = \
- 	$(test_programs) \
- 	$(test_related_programs) \
- 	$(NULL)
-diff --git a/test/core/Makefile.am b/test/core/Makefile.am
-index 35defa9..295202f 100644
---- a/test/core/Makefile.am
-+++ b/test/core/Makefile.am
-@@ -57,7 +57,8 @@ if DBUS_BUILD_TESTS
- 
- ## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we
- ## build even when not doing "make check"
--noinst_PROGRAMS = \
-+testdir = $(datadir)/@PACKAGE@/tests/core
-+test_PROGRAMS = \
- 	test-dbus-glib \
- 	test-error-mapping \
- 	test-service-glib \
-diff --git a/test/interfaces/Makefile.am b/test/interfaces/Makefile.am
-index f3f62e4..f034b95 100644
---- a/test/interfaces/Makefile.am
-+++ b/test/interfaces/Makefile.am
-@@ -57,7 +57,8 @@ if DBUS_BUILD_TESTS
- 
- ## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we
- ## build even when not doing "make check"
--noinst_PROGRAMS = test-service test-client
-+testdir = $(datadir)/@PACKAGE@/tests/interfaces
-+test_PROGRAMS = test-service test-client
- 
- test_service_SOURCES = \
- 	test-interfaces.c \
meta/recipes-core/dbus/dbus-glib_0.114.bb +1 -10
index ff3d282ac6f..4a827b1cbf8 100644
@@ -17,21 +17,15 @@ DEPENDS:class-native = "glib-2.0-native dbus-native"
 
 SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
            file://no-examples.patch \
-           file://test-install-makefile.patch \
 "
 SRC_URI[sha256sum] = "c09c5c085b2a0e391b8ee7d783a1d63fe444e96717cc1814d61b5e8fc2827a7c"
 
 inherit autotools pkgconfig gettext bash-completion gtk-doc
 
-#default disable regression tests, some unit test code in non testing code
-#PACKAGECONFIG:pn-${PN} = "tests" enable regression tests local.conf
-PACKAGECONFIG ??= ""
-PACKAGECONFIG[tests] = "--enable-tests,,,"
-
 EXTRA_OECONF:class-target = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool"
 EXTRA_OECONF:class-nativesdk = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool"
 
-PACKAGES += "${PN}-tests ${PN}-tools"
+PACKAGES += "${PN}-tools"
 
 FILES:${PN} = "${libdir}/lib*${SOLIBS}"
 FILES:${PN}-bash-completion += "${libexecdir}/dbus-bash-completion-helper"
@@ -39,9 +33,6 @@ LICENSE:${PN}-bash-completion = "GPL-2.0-or-later"
 
 RDEPENDS:${PN}-dev += "${PN}-tools"
 
-RDEPENDS:${PN}-tests = "${PN}"
-FILES:${PN}-tests = "${datadir}/${BPN}/tests"
-
 FILES:${PN}-tools = "${bindir}"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.43.0
#2 lore raw

PATCH 3/7 dbus-glib: remove no-examples.patch

In reply to Ross Burton

This patch has been in OpenEmbedded since 2006 with no explanation[1].

Possibly the intention was to reduce build time slightly or remove some breakage, but it's useful to link the library we're building against a test binary.

[1] oe-classic cc5c376f17 ("dbus: add 0.90, dbus-glib and dbus-python bindings 0.70")

---
 .../dbus/dbus-glib/no-examples.patch          | 23 -------------------
 meta/recipes-core/dbus/dbus-glib_0.114.bb     |  4 +---
 2 files changed, 1 insertion(+), 26 deletions(-)
 delete mode 100644 meta/recipes-core/dbus/dbus-glib/no-examples.patch
meta/recipes-core/dbus/dbus-glib/no-examples.patch deleted +0 -23
deleted file mode 100644
index 3e2fa41c59d..00000000000
@@ -1,23 +0,0 @@
-From 8bb06c2f0929a4b878fd9abdb63c177a7c308b9d Mon Sep 17 00:00:00 2001
-From: Kevin Tian <[email protected]>
-Date: Tue, 21 Nov 2006 14:20:37 +0000
-Subject: [PATCH] Disable compiling examples
-
-Upstream-Status: Inappropriate [disable feature]
-
-Signed-off-by: Kevin Tian <[email protected]>
-Signed-off-by: Scott Garman <[email protected]>
----
- dbus/Makefile.am | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/dbus/Makefile.am b/dbus/Makefile.am
-index 2e8cb27..a86df30 100644
---- a/dbus/Makefile.am
-+++ b/dbus/Makefile.am
-@@ -1,4 +1,4 @@
--SUBDIRS = . examples
-+SUBDIRS = .
- 
- AM_CPPFLAGS = \
- 	-I$(top_srcdir)						\
meta/recipes-core/dbus/dbus-glib_0.114.bb +1 -3
index 4a827b1cbf8..cc15cafe495 100644
@@ -15,9 +15,7 @@ SECTION = "base"
 DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus"
 DEPENDS:class-native = "glib-2.0-native dbus-native"
 
-SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
-           file://no-examples.patch \
-"
+SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz"
 SRC_URI[sha256sum] = "c09c5c085b2a0e391b8ee7d783a1d63fe444e96717cc1814d61b5e8fc2827a7c"
 
 inherit autotools pkgconfig gettext bash-completion gtk-doc
Signature · 1 line
2.43.0
#3 lore raw

PATCH 4/7 glib-2.0: -dev should depend on -utils

In reply to Ross Burton

The -dev package should depend on -utils, as there are a number of utilities in that package which are needed when compiling GLib-using code, such as glib-genmarshal and glib-compile-resources.

---
 meta/recipes-core/glib-2.0/glib.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/glib-2.0/glib.inc +2 -0
index ba7763c8417..404c82ef6ef 100644
@@ -157,6 +157,8 @@ CODEGEN_PYTHON_RDEPENDS:mingw32 = ""
 
 RDEPENDS:${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}"
 
+RDEPENDS:${PN}-dev += "${PN}-utils"
+
 RDEPENDS:${PN}-ptest += "\
             coreutils \
             libgcc \
Signature · 1 line
2.43.0
#4 lore raw

PATCH 5/7 gtk: set correct bug tracker

In reply to Ross Burton

GTK hasn't used bugzilla for many years, switch the bug tracker fields to gitlab.gnome.org.

---
 meta/recipes-gnome/gtk+/gtk+3_3.24.43.bb | 2 +-
 meta/recipes-gnome/gtk+/gtk4_4.18.6.bb   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-gnome/gtk+/gtk+3_3.24.43.bb +1 -1
index 5892bb31397..5d58c41c6dd 100644
@@ -2,7 +2,7 @@ SUMMARY = "Multi-platform toolkit for creating GUIs"
 DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \
 set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites."
 HOMEPAGE = "http://www.gtk.org"
-BUGTRACKER = "https://bugzilla.gnome.org/"
+BUGTRACKER = "https://gitlab.gnome.org/GNOME/gtk/-/issues/"
 SECTION = "libs"
 LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
                     file://gtk/gtk.h;endline=25;md5=1d8dc0fccdbfa26287a271dce88af737 \
meta/recipes-gnome/gtk+/gtk4_4.18.6.bb +1 -1
index 397277a8150..2d24468dcc2 100644
@@ -2,7 +2,7 @@ SUMMARY = "Multi-platform toolkit for creating GUIs"
 DESCRIPTION = "GTK is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \
 set of widgets, GTK is suitable for projects ranging from small one-off projects to complete application suites."
 HOMEPAGE = "http://www.gtk.org"
-BUGTRACKER = "https://bugzilla.gnome.org/"
+BUGTRACKER = "https://gitlab.gnome.org/GNOME/gtk/-/issues/"
 SECTION = "libs"
 
 DEPENDS = " \
Signature · 1 line
2.43.0
#5 lore raw

PATCH 6/7 gdk-pixbuf: clean up PACKAGECONFIG

In reply to Ross Burton

PTEST_ENABLED is always false in native builds, so there's no need for an explict native override.

Use ??= as that is the idiomatic way to assign to PACKAGECONFIG.

---
 meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.12.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.12.bb +2 -3
index 96487a284af..060d7735ad1 100644
@@ -34,9 +34,8 @@ LIBV = "2.10.0"
 
 GDK_PIXBUF_LOADERS ?= "png jpeg gif others"
 
-PACKAGECONFIG = "${GDK_PIXBUF_LOADERS} \
-                 ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
-PACKAGECONFIG:class-native = "${GDK_PIXBUF_LOADERS}"
+PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS} \
+                   ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
 
 PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng"
 PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg"
Signature · 1 line
2.43.0
#6 lore raw

PATCH 7/7 gdk-pixbuf: drop GDK_PIXBUF_LOADERS

In reply to Ross Burton

We have a PACKAGECONFIG, there's no need for this to be a dedicated variable.

---
 meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.12.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.12.bb +1 -3
index 060d7735ad1..a468cea74b8 100644
@@ -32,9 +32,7 @@ GIR_MESON_DISABLE_FLAG = "disabled"
 
 LIBV = "2.10.0"
 
-GDK_PIXBUF_LOADERS ?= "png jpeg gif others"
-
-PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS} \
+PACKAGECONFIG ??= "png jpeg gif others \
                    ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
 
 PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng"
Signature · 1 line
2.43.0