]> code.ossystems Code Review - openembedded-core.git/commit
gettext.bbclass, bitbake.conf: Append nls options to EXTRA_OECONF instead of +=
authorKhem Raj <raj.khem@gmail.com>
Thu, 5 May 2011 16:57:56 +0000 (09:57 -0700)
committerSaul Wold <sgw@linux.intel.com>
Mon, 9 May 2011 06:56:11 +0000 (23:56 -0700)
commitc47c783ddca8427aa7381e1df254a8d29ff0fe78
tree281d8ba8badaa7a52e2d06f90c2e290433fe4323
parent897f11e4ecf3acaa9d4695d3be0e9beb38322d9d
gettext.bbclass, bitbake.conf: Append nls options to EXTRA_OECONF instead of +=

Some recipes do not defined EXTRA_OECONF in such cases += drops
the --enable|--disable-nls options. In another case where recipe
defines EXTRA_OECONF instead of adding/appending to it then
--enable|--disable-nls options are lost from EXTRA_OECONF

We define EXTRA_OECONF = "" in bitbake.conf so the variable exists
always.

We use _append instead of += so the option is added at very end
and not lost.

We only return empty gettext dependencies if its a target recipe
in case when USE_NLS is not set because the native/cross/nativesdk recipes still
need the gettext dependencies

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/classes/gettext.bbclass
meta/conf/bitbake.conf