]> code.ossystems Code Review - openembedded-core.git/commitdiff
gettext: relocate msgfmt utility for all recipes
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Fri, 16 Jun 2017 11:37:33 +0000 (14:37 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Jun 2017 14:51:58 +0000 (15:51 +0100)
Now that epiphany needs a working msgfmt as well, let's do this trick
where it should be.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
meta/recipes-core/gettext/gettext_0.19.8.1.bb
meta/recipes-kernel/sysprof/sysprof_3.24.1.bb

index 97e7986dc122098d7abba66d8670bd3b5aa4cc2e..c2059e608b1ccb3f6a11740c74a8df6a0a2f97ca 100644 (file)
@@ -111,6 +111,10 @@ do_install_append_class-native () {
        rm ${D}${datadir}/gettext/config.rpath
        rm ${D}${datadir}/gettext/po/Makefile.in.in
        rm ${D}${datadir}/gettext/po/remove-potcdate.sin
+
+        create_wrapper ${D}${bindir}/msgfmt \
+                GETTEXTDATADIR="${STAGING_DATADIR_NATIVE}/gettext-0.19.8/"
+
 }
 
 BBCLASSEXTEND = "native nativesdk"
index 36093ca89f4d13116a6cf883c967a62468e41827..168f2fdfba2921db422615d93852a7a70a7d4166 100644 (file)
@@ -20,10 +20,6 @@ AUTOTOOLS_AUXDIR = "${S}/build-aux"
 
 EXTRA_OECONF = "--enable-compile-warnings"
 
-# This properly relocates msgfmt, which otherwise fails to find its data files. 
-# Tips on how to get rid of hardcoded version welcome.
-export GETTEXTDATADIR = "${STAGING_DATADIR_NATIVE}/gettext-0.19.8/"
-
 PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)}"
 PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
 PACKAGECONFIG[polkit] = "--enable-polkit,--disable-polkit,polkit dbus"