]> code.ossystems Code Review - openembedded-core.git/commitdiff
net-tools: Fix build with USE_NLS="no"
authorJussi Kukkonen <jussi.kukkonen@intel.com>
Tue, 4 Apr 2017 08:09:29 +0000 (11:09 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Apr 2017 22:22:06 +0000 (23:22 +0100)
The configuration change was already done for -native but
we really want it when USE_NLS is set.

Fixes [YOCTO #11285].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/net-tools/net-tools_1.60-26.bb

index 115b3987c33639bc40d0e39bd252c24fcc3b2595..45d7bf452404e585c1bf9c4f7264b27cfc84d596 100644 (file)
@@ -70,21 +70,15 @@ python do_patch() {
     bb.build.exec_func('patch_do_patch', d)
 }
 
-# i18n only enabled for the target, doesn't build for native
-# and isn't needed there.
-disable_i18n() {
-       sed -i -e 's/^I18N=1/# I18N=1/' ${S}/config.make
-}
-disable_i18n_class-target () {
-       :
-}
-
 do_configure() {
        # net-tools has its own config mechanism requiring "make config"
        # we pre-generate desired options and copy to source directory instead
        cp ${WORKDIR}/net-tools-config.h    ${S}/config.h
        cp ${WORKDIR}/net-tools-config.make ${S}/config.make
-       disable_i18n
+
+       if [ "${USE_NLS}" = "no" ]; then
+               sed -i -e 's/^I18N=1/# I18N=1/' ${S}/config.make
+       fi
 }
 
 do_compile() {