]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gtk4: Fix a build error in examples/application8
authorZoltán Böszörményi <zboszor@gmail.com>
Sat, 14 Mar 2026 14:20:02 +0000 (15:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Mar 2026 10:57:13 +0000 (10:57 +0000)
Add a backported patch from master to use underscore instead of
space in a generated filename. This fixes the build error:

| /usr/bin/ld: cannot find examples/application8/exampleapp8.p/meson-generated_.._exampleapp8: No such file or directory
| /usr/bin/ld: cannot find resources.c.o: No such file or directory

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-gnome/gtk+/gtk4/0001-application8-Don-t-use-space-in-meson-generated-file.patch [new file with mode: 0644]
meta/recipes-gnome/gtk+/gtk4_4.20.3.bb

diff --git a/meta/recipes-gnome/gtk+/gtk4/0001-application8-Don-t-use-space-in-meson-generated-file.patch b/meta/recipes-gnome/gtk+/gtk4/0001-application8-Don-t-use-space-in-meson-generated-file.patch
new file mode 100644 (file)
index 0000000..2a79fc6
--- /dev/null
@@ -0,0 +1,34 @@
+From d26453923a21de0d908af3bf83c69263aaee5705 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
+ <zboszor@gmail.com>
+Date: Wed, 11 Mar 2026 07:02:10 +0100
+Subject: [PATCH] application8: Don't use space in meson generated filename
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+All other example apps use underscore, examples/application8
+has a build error:
+
+| /usr/bin/ld: cannot find examples/application8/exampleapp8.p/meson-generated_.._exampleapp8: No such file or directory
+| /usr/bin/ld: cannot find resources.c.o: No such file or directory
+
+Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
+Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/9627]
+---
+ examples/application8/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/examples/application8/meson.build b/examples/application8/meson.build
+index f2e1d7cea9..77987d554a 100644
+--- a/examples/application8/meson.build
++++ b/examples/application8/meson.build
+@@ -1,4 +1,4 @@
+-app8_resources = gnome.compile_resources('exampleapp8 resources',
++app8_resources = gnome.compile_resources('exampleapp8_resources',
+   'exampleapp.gresource.xml',
+   source_dir: meson.current_source_dir())
+-- 
+2.53.0
+
index ef9a05f7fe88ceae511de9cacbef22a9b1b50b06..0cca44fb5c293d073a4803f9b1c3362e1dd3ce44 100644 (file)
@@ -35,6 +35,8 @@ LIC_FILES_CHKSUM = " \
 
 SRC_URI[archive.sha256sum] = "2873f2903088a66c71173ea2ed85ffae266a66b972c3a4842bbb2f6f187ec153"
 
+SRC_URI += "file://0001-application8-Don-t-use-space-in-meson-generated-file.patch"
+
 S = "${UNPACKDIR}/${GNOMEBN}-${PV}"
 
 CVE_PRODUCT = "gnome:gtk"