mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
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 (From OE-Core rev: c47c783ddca8427aa7381e1df254a8d29ff0fe78) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
620 B
Plaintext
18 lines
620 B
Plaintext
def gettext_dependencies(d):
|
|
if d.getVar('USE_NLS', True) == 'no' and not oe.utils.inherits(d, 'native', 'nativesdk', 'cross'):
|
|
return ""
|
|
if d.getVar('INHIBIT_DEFAULT_DEPS', True) and not oe.utils.inherits(d, 'cross-canadian'):
|
|
return ""
|
|
return d.getVar('DEPENDS_GETTEXT', False)
|
|
|
|
def gettext_oeconf(d):
|
|
# Remove the NLS bits if USE_NLS is no.
|
|
if d.getVar('USE_NLS', True) == 'no':
|
|
return '--disable-nls'
|
|
return "--enable-nls"
|
|
|
|
DEPENDS_GETTEXT = "virtual/gettext gettext-native"
|
|
|
|
BASEDEPENDS =+ "${@gettext_dependencies(d)}"
|
|
EXTRA_OECONF_append = " ${@gettext_oeconf(d)}"
|