public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libc-package, default-distrovars: Remove unsupported LOCALE_UTF8_ONLY
@ 2026-03-14 14:20 Zoltán Böszörményi
  2026-03-14 14:20 ` [PATCH 2/2] gtk4: Fix a build error in examples/application8 Zoltán Böszörményi
       [not found] ` <189CBB0CF0DD1005.1508127@lists.openembedded.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Zoltán Böszörményi @ 2026-03-14 14:20 UTC (permalink / raw)
  To: openembedded-core; +Cc: Peter Marko, Zoltán Böszörményi

ptest subpackages for various recipes added RDEPENDS for
locales that do not exist when LOCALE_UTF8_ONLY is set to 1.

This makes it clear that LOCALE_UTF8_ONLY=1 is untested in Yocto
and became unsupported. Remove this distro variable.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta/classes-recipe/libc-package.bbclass        | 3 ---
 meta/conf/distro/include/default-distrovars.inc | 1 -
 2 files changed, 4 deletions(-)

diff --git a/meta/classes-recipe/libc-package.bbclass b/meta/classes-recipe/libc-package.bbclass
index c06a2ce90a..73b7f5a708 100644
--- a/meta/classes-recipe/libc-package.bbclass
+++ b/meta/classes-recipe/libc-package.bbclass
@@ -321,14 +321,11 @@ python package_do_split_gconvs () {
         bb.note("preparing tree for binary locale generation")
         bb.build.exec_func("do_prep_locale_tree", d)
 
-    utf8_only = int(d.getVar('LOCALE_UTF8_ONLY') or 0)
     utf8_is_default = int(d.getVar('LOCALE_UTF8_IS_DEFAULT') or 0)
 
     encodings = {}
     for locale in to_generate:
         charset = supported[locale]
-        if utf8_only and charset != 'UTF-8':
-            continue
 
         m = dot_re.match(locale)
         if m:
diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc
index bbd936efa6..7adcdfad4f 100644
--- a/meta/conf/distro/include/default-distrovars.inc
+++ b/meta/conf/distro/include/default-distrovars.inc
@@ -10,7 +10,6 @@ DEFAULT_IMAGE_LINGUAS:libc-glibc = "c en-us en-gb"
 IMAGE_LINGUAS ?= "${DEFAULT_IMAGE_LINGUAS}"
 
 ENABLE_BINARY_LOCALE_GENERATION ?= "1"
-LOCALE_UTF8_ONLY ?= "0"
 LOCALE_UTF8_IS_DEFAULT ?= "1"
 LOCALE_UTF8_IS_DEFAULT:class-nativesdk = "0"
 
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] gtk4: Fix a build error in examples/application8
  2026-03-14 14:20 [PATCH 1/2] libc-package, default-distrovars: Remove unsupported LOCALE_UTF8_ONLY Zoltán Böszörményi
@ 2026-03-14 14:20 ` Zoltán Böszörményi
       [not found] ` <189CBB0CF0DD1005.1508127@lists.openembedded.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Zoltán Böszörményi @ 2026-03-14 14:20 UTC (permalink / raw)
  To: openembedded-core; +Cc: Peter Marko, Zoltán Böszörményi

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>
---
 ...-t-use-space-in-meson-generated-file.patch | 34 +++++++++++++++++++
 meta/recipes-gnome/gtk+/gtk4_4.20.3.bb        |  2 ++
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-gnome/gtk+/gtk4/0001-application8-Don-t-use-space-in-meson-generated-file.patch

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
index 0000000000..2a79fc637d
--- /dev/null
+++ b/meta/recipes-gnome/gtk+/gtk4/0001-application8-Don-t-use-space-in-meson-generated-file.patch
@@ -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
+
diff --git a/meta/recipes-gnome/gtk+/gtk4_4.20.3.bb b/meta/recipes-gnome/gtk+/gtk4_4.20.3.bb
index ef9a05f7fe..0cca44fb5c 100644
--- a/meta/recipes-gnome/gtk+/gtk4_4.20.3.bb
+++ b/meta/recipes-gnome/gtk+/gtk4_4.20.3.bb
@@ -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"
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH 2/2] gtk4: Fix a build error in examples/application8
       [not found] ` <189CBB0CF0DD1005.1508127@lists.openembedded.org>
@ 2026-03-23 10:29   ` Böszörményi Zoltán
  0 siblings, 0 replies; 3+ messages in thread
From: Böszörményi Zoltán @ 2026-03-23 10:29 UTC (permalink / raw)
  To: openembedded-core; +Cc: Peter Marko

2026. 03. 14. 15:20 keltezéssel, Zoltan Boszormenyi via lists.openembedded.org írta:
> 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>
> ---
>   ...-t-use-space-in-meson-generated-file.patch | 34 +++++++++++++++++++
>   meta/recipes-gnome/gtk+/gtk4_4.20.3.bb        |  2 ++
>   2 files changed, 36 insertions(+)
>   create mode 100644 meta/recipes-gnome/gtk+/gtk4/0001-application8-Don-t-use-space-in-meson-generated-file.patch
>
> 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
> index 0000000000..2a79fc637d
> --- /dev/null
> +++ b/meta/recipes-gnome/gtk+/gtk4/0001-application8-Don-t-use-space-in-meson-generated-file.patch
> @@ -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
> +
> diff --git a/meta/recipes-gnome/gtk+/gtk4_4.20.3.bb b/meta/recipes-gnome/gtk+/gtk4_4.20.3.bb
> index ef9a05f7fe..0cca44fb5c 100644
> --- a/meta/recipes-gnome/gtk+/gtk4_4.20.3.bb
> +++ b/meta/recipes-gnome/gtk+/gtk4_4.20.3.bb
> @@ -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"

Sorry, but this change is not completely correct.
For target builds, it only works with the latest meson if :append is used instead of +=

But 4.22.1 contains the same patch out of the box, so upgrading
to that version would be a better change.

> +
>   S = "${UNPACKDIR}/${GNOMEBN}-${PV}"
>   
>   CVE_PRODUCT = "gnome:gtk"
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#233086): https://lists.openembedded.org/g/openembedded-core/message/233086
> Mute This Topic: https://lists.openembedded.org/mt/118314080/3617728
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [zboszor@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-23 10:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-14 14:20 [PATCH 1/2] libc-package, default-distrovars: Remove unsupported LOCALE_UTF8_ONLY Zoltán Böszörményi
2026-03-14 14:20 ` [PATCH 2/2] gtk4: Fix a build error in examples/application8 Zoltán Böszörményi
     [not found] ` <189CBB0CF0DD1005.1508127@lists.openembedded.org>
2026-03-23 10:29   ` [OE-core] " Böszörményi Zoltán

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox