[oe-commits] [openembedded-core] 08/25: gettext.bbclass: also search for files in target sysroot

git at git.openembedded.org git at git.openembedded.org
Wed Aug 9 08:38:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit ebb706f9dafdbb7c4aa18e5595930bbc1a0497b1
Author: Patrick Ohly <patrick.ohly at intel.com>
AuthorDate: Tue Jul 25 16:40:59 2017 +0200

    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.
    
    Signed-off-by: Patrick Ohly <patrick.ohly at intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/gettext.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/gettext.bbclass b/meta/classes/gettext.bbclass
index d60a0c1..689ef55 100644
--- a/meta/classes/gettext.bbclass
+++ b/meta/classes/gettext.bbclass
@@ -17,3 +17,8 @@ DEPENDS_GETTEXT ??= "virtual/gettext gettext-native"
 
 BASEDEPENDS_append = " ${@gettext_dependencies(d)}"
 EXTRA_OECONF_append = " ${@gettext_oeconf(d)}"
+
+# Without this, msgfmt from gettext-native will not find ITS files
+# provided by target recipes (for example, polkit.its).
+GETTEXTDATADIRS_append_class-target = ":${STAGING_DATADIR}/gettext"
+export GETTEXTDATADIRS

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list