From: Alex Kiernan Date: Tue, 3 Jan 2023 08:23:33 +0000 (+0000) Subject: classes: image: Set empty weak default IMAGE_LINGUAS X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2119 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb402948158659da7de0fbbb1bb403c8dad06e2b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes: image: Set empty weak default IMAGE_LINGUAS This is already set in default-distrovars.inc and so this assignment will almost never succeed. Rather than leaving it to confuse, set an empty weak default. Signed-off-by: Alex Kiernan Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass index a06c9f544d3..d9472a795af 100644 --- a/meta/classes-recipe/image.bbclass +++ b/meta/classes-recipe/image.bbclass @@ -182,8 +182,7 @@ python () { IMAGE_POSTPROCESS_COMMAND ?= "" -# some default locales -IMAGE_LINGUAS ?= "de-de fr-fr en-gb" +IMAGE_LINGUAS ??= "" LINGUAS_INSTALL ?= "${@" ".join(map(lambda s: "locale-base-%s" % s, d.getVar('IMAGE_LINGUAS').split()))}"