distro/poky-tiny: don't put translations into images
PATCH 1/2 distro/poky-tiny: don't put translations into images
IMAGE_LINGUAS has a default value, "en-us en-gb" in default-distrovars.inc and "de-de fr-fr en-gb" in image.bbclass. However, poky-tiny sets USE_NLS=no so IMAGE_LINGUAS can't really be used in a tiny context, and previously musl hasn't supported locales so this hasn't been a problem.
However, now that musl-locales exists, poky-tiny images will try to pull in translations. As we've disabled NLS these simply take up disk space and cannot be used, and currently musl-locales fails to build if USE_NLS=no.
Set IMAGE_LINGUAS to "" in poky-tiny.conf so that images don't have locales added.
--- meta-poky/conf/distro/poky-tiny.conf | 2 ++ 1 file changed, 2 insertions(+)
meta-poky/conf/distro/poky-tiny.conf +2 -0
@@ -63,6 +63,8 @@ ENABLE_WIDEC:class-native = "true" # Drop native language support. This removes the # eglibc->bash->gettext->libc-posix-clang-wchar dependency. USE_NLS="no" +# As we don't have native language support, don't install locales into images +IMAGE_LINGUAS = "" # Comment out any of the lines below to disable them in the build # DISTRO_FEATURES options:
Signature · 1 line
2.25.1
PATCH 2/2 musl-locales: explicitly depend on gettext-native
The gettext class is designed for use by applications with optional NLS
support: depending on the value of USE_NLS it will either depend on gettext-minimal-native (just the autoconf macros) or gettext-native, and will pass --enable-nls/--disable-nls as appropriate.
However, musl-locales specifically needs to run msgfmt at runtime, so explicitly depend on gettext-native instead.
Also remove the redundant EXTRA_OECMAKE assignment.
--- meta/recipes-core/musl/musl-locales_git.bb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
meta/recipes-core/musl/musl-locales_git.bb +2 -4
@@ -14,14 +14,12 @@ SRCREV = "1101fb2bcdd189cd9415b8bd1c775eb43527d25c" S = "${WORKDIR}/git" -DEPENDS = "virtual/libintl" +DEPENDS = "virtual/libintl gettext-native" PROVIDES = "virtual/libc-locale" -inherit cmake gettext +inherit cmake -EXTRA_OECMAKE = "" -# # We will skip parsing for non-musl systems python () { if d.getVar('TCLIBC') != "musl":
Signature · 1 line
2.25.1