diff mbox series

[meta-gnome,2/2] meta-gnome: Move the help files setup to a configuration fragment

Message ID 20261203075227.3404641-3-khem.raj@oss.qualcomm.com
State New
Headers show
Series meta-gnome: mutter upgrade and help files fragment | expand

Commit Message

Khem Raj Dec. 3, 2026, 7:52 a.m. UTC
With the new layer format, layer.conf only passes a few variable
prefixes to the global configuration, so the IMAGE_LINGUAS_COMPLEMENTARY
append there is ignored and bitbake warns on every parse:

  Variable IMAGE_LINGUAS_COMPLEMENTARY is set by meta-gnome but will be
  ignored.

Images therefore no longer pick up the *-help-<lingua> packages when the
helpfiles DISTRO_FEATURE is set. The variable is read while building an
image, so layervars.conf, which only applies to this layer's recipes,
does not help either.

Add a helpfiles fragment that sets both the helpfiles
DISTRO_FEATURE and the complementary glob, the way the layer migration
suggests for optional layer configuration. Enable it with

  bitbake-config-build enable-fragment meta-oe-gnome/helpfiles

Distros that set helpfiles directly need to add
IMAGE_LINGUAS_COMPLEMENTARY:append = " *-help-%s" themselves.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-gnome/conf/fragments/helpfiles.conf | 5 +++++
 meta-gnome/conf/layer.conf               | 3 ---
 2 files changed, 5 insertions(+), 3 deletions(-)
 create mode 100644 meta-gnome/conf/fragments/helpfiles.conf
diff mbox series

Patch

diff --git a/meta-gnome/conf/fragments/helpfiles.conf b/meta-gnome/conf/fragments/helpfiles.conf
new file mode 100644
index 0000000000..88bda94a6f
--- /dev/null
+++ b/meta-gnome/conf/fragments/helpfiles.conf
@@ -0,0 +1,5 @@ 
+BB_CONF_FRAGMENT_SUMMARY = "Ship GNOME help files"
+BB_CONF_FRAGMENT_DESCRIPTION = "Enables the helpfiles DISTRO_FEATURE, so recipes inheriting gnome-help keep their help files, and installs the *-help-<lingua> packages for each IMAGE_LINGUAS entry in images."
+
+DISTRO_FEATURES:append = " helpfiles"
+IMAGE_LINGUAS_COMPLEMENTARY:append = " *-help-%s"
diff --git a/meta-gnome/conf/layer.conf b/meta-gnome/conf/layer.conf
index 4230f61987..32c0de4f4f 100644
--- a/meta-gnome/conf/layer.conf
+++ b/meta-gnome/conf/layer.conf
@@ -7,9 +7,6 @@  LAYERVERSION = "1"
 LAYERSERIES_COMPAT = "garburn"
 LAYERDEPENDS = "oe-core meta-oe meta-oe-networking meta-oe-python"
 
-# auto-pack gnome help files
-IMAGE_LINGUAS_COMPLEMENTARY:append = " ${@bb.utils.contains('DISTRO_FEATURES','helpfiles','*-help-%s','',d)}"
-
 SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "\
   faenza-icon-theme->gdk-pixbuf \
   faenza-icon-theme->gtk+3 \