summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-07-25 16:40:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-09 09:24:16 +0100
commite2ecc4d20fc929ddadba1068cd7fd0ac7740c03b (patch)
treee8c00ff23fed4f3c6452b0177eb04df46e53fd8f
parent700b846ba0e0f31b06459aee3ebb3ce5f1715918 (diff)
downloadpoky-e2ecc4d20fc929ddadba1068cd7fd0ac7740c03b.tar.gz
gettext.bbclass: also search for files in target sysroot
fwupd contains polkit policy files that it translates using polkit.its and polkit.loc files that the next polkit release is going to install (see https://github.com/hughsie/fwupd/issues/107). In order to make that work with OE-core, the gettext tools must be told to look also for files in the recipe-sysroot. Otherwise it only uses the GETTEXTDATADIR set by the gettext-native tool wrappers, and that only points to the files provided by gettext-native itself. (From OE-Core rev: ebb706f9dafdbb7c4aa18e5595930bbc1a0497b1) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/gettext.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/gettext.bbclass b/meta/classes/gettext.bbclass
index d60a0c12ce..689ef55ed1 100644
--- a/meta/classes/gettext.bbclass
+++ b/meta/classes/gettext.bbclass
@@ -17,3 +17,8 @@ DEPENDS_GETTEXT ??= "virtual/gettext gettext-native"
17 17
18BASEDEPENDS_append = " ${@gettext_dependencies(d)}" 18BASEDEPENDS_append = " ${@gettext_dependencies(d)}"
19EXTRA_OECONF_append = " ${@gettext_oeconf(d)}" 19EXTRA_OECONF_append = " ${@gettext_oeconf(d)}"
20
21# Without this, msgfmt from gettext-native will not find ITS files
22# provided by target recipes (for example, polkit.its).
23GETTEXTDATADIRS_append_class-target = ":${STAGING_DATADIR}/gettext"
24export GETTEXTDATADIRS