Skip to contentSkip to conversation

Add gnome help packages to image according to IMAGE_LINGUAS

PATCH Superseded Andreas Müller 2 participants 3 messages Nov 5, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add gnome help packages to image according to IMAGE_LINGUAS

In case

* 'helpfiles' is in DISTRO_FEATURES and
* PACKAGE_NO_HELP_SPLIT is not set to '1'

those help packages matching language selections in IMAGE_LINGUAS are added to image automatically.

For more details see:

[1] https://github.com/openembedded/meta-openembedded/blob/master/meta-gnome/classes/gnome-help.bbclass
[2] https://github.com/openembedded/openembedded-core/commit/3a9e9585aeb67234901b2f842113dbe20c3801b3

---
 meta-gnome/conf/layer.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-gnome/conf/layer.conf +2 -0
index 862d622ee..996f4f64a 100644
@@ -8,6 +8,8 @@ BBFILE_COLLECTIONS += "gnome-layer"
 BBFILE_PATTERN_gnome-layer := "^${LAYERDIR}/"
 BBFILE_PRIORITY_gnome-layer = "7"
 
+IMAGE_LINGUAS_COMPLEMENTARY_append = " *-help-%s"
+
 # This should only be incremented on significant changes that will
 # cause compatibility issues with other layers
 LAYERVERSION_gnome-layer = "1"
Signature · 1 line
2.21.0
#1 lore raw
Quoted 24 lines · Andreas Müller

In case

* 'helpfiles' is in DISTRO_FEATURES and
* PACKAGE_NO_HELP_SPLIT is not set to '1'

those help packages matching language selections in IMAGE_LINGUAS are added to
image automatically.

For more details see:

[1]
https://github.com/openembedded/meta-openembedded/blob/master/meta-gnome/classes/gnome-help.bbclass
[2]
https://github.com/openembedded/openembedded-core/commit/3a9e9585aeb67234901b2f842113dbe20c3801b3

---
 meta-gnome/conf/layer.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-gnome/conf/layer.conf +0 -0
index 862d622ee..996f4f64a 100644

meta-gnome/conf/layer.conf BBFILE_COLLECTIONS += "gnome-layer" · line 11

Quoted 4 lines
meta-gnome/conf/layer.conf +1 -0
@@ -8,6 +8,8 @@ BBFILE_COLLECTIONS += "gnome-layer"
 BBFILE_PATTERN_gnome-layer := "^${LAYERDIR}/"
 BBFILE_PRIORITY_gnome-layer = "7"
 
+IMAGE_LINGUAS_COMPLEMENTARY_append = " *-help-%s"

This should be dependent on distro feature and here it’s unconditional

Quoted 13 lines
meta-gnome/conf/layer.conf +1 -1
+
 # This should only be incremented on significant changes that will
 # cause compatibility issues with other layers
 LAYERVERSION_gnome-layer = "1"
--

2.21.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 27 lines · Khem Raj
Quoted 25 lines · Andreas Müller

In case

* 'helpfiles' is in DISTRO_FEATURES and
* PACKAGE_NO_HELP_SPLIT is not set to '1'

those help packages matching language selections in IMAGE_LINGUAS are added to image automatically.

For more details see:

[1] https://github.com/openembedded/meta-openembedded/blob/master/meta-gnome/classes/gnome-help.bbclass
[2] https://github.com/openembedded/openembedded-core/commit/3a9e9585aeb67234901b2f842113dbe20c3801b3

---
 meta-gnome/conf/layer.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-gnome/conf/layer.conf +0 -0
index 862d622ee..996f4f64a 100644
@@ -8,6 +8,8 @@ BBFILE_COLLECTIONS += "gnome-layer"
 BBFILE_PATTERN_gnome-layer := "^${LAYERDIR}/"
 BBFILE_PRIORITY_gnome-layer = "7"
 
Quoted 4 lines

meta-gnome/conf/layer.conf BBFILE_COLLECTIONS += "gnome-layer" · line 11

Quoted 1 line
meta-gnome/conf/layer.conf +1 -0
+IMAGE_LINGUAS_COMPLEMENTARY_append = " *-help-%s"

This should be dependent on distro feature and here it’s unconditional

V2 is under test

Andreas