]> code.ossystems Code Review - openembedded-core.git/commitdiff
attr/ea-acl: pass --disable-gettext when USE_NLS=no
authorDenys Dmytriyenko <denys@ti.com>
Fri, 23 Dec 2016 19:34:31 +0000 (14:34 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jan 2017 13:34:32 +0000 (13:34 +0000)
Fixes following error in configure:
  FATAL ERROR: msgfmt does not seem to be installed.
  attr cannot be built without a working gettext installation.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/attr/ea-acl.inc

index cc33c101fb386ad2a768c6d4de259db0109ecafd..a88ce9011911ee5ee616c0163be3ed3334d0e91c 100644 (file)
@@ -10,6 +10,7 @@ inherit autotools-brokensep gettext
 EXTRA_AUTORECONF += "--exclude=autoheader"
 EXTRA_OECONF = "INSTALL_USER=root INSTALL_GROUP=root"
 EXTRA_OECONF_append_class-native = " --enable-gettext=no"
+EXTRA_OECONF_append_class-target = "${@['', ' --disable-gettext '][(d.getVar('USE_NLS') == 'no')]}"
 
 EXTRA_OEMAKE = "PKG_LIB_DIR=${base_libdir} PKG_DEVLIB_DIR=${libdir}"