diff mbox series

[1/2] libc-package, default-distrovars: Remove unsupported LOCALE_UTF8_ONLY

Message ID 20260314142002.925941-1-zboszor@gmail.com
State Under Review
Headers show
Series [1/2] libc-package, default-distrovars: Remove unsupported LOCALE_UTF8_ONLY | expand

Commit Message

Zoltán Böszörményi March 14, 2026, 2:20 p.m. UTC
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 mbox series

Patch

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"