Patchwork gettext.bbclass: Ensure we don't overwrite other DEPENDS_GETTEXT values

mail settings
Submitter Richard Purdie
Date April 19, 2012, 7:48 a.m.
Message ID <1334821705.5336.8.camel@ted>
Download mbox | patch
Permalink /patch/26149/
State Accepted
Commit 751ead4fa7d4120de906a1d9cb1d5a29357bebad
Headers show


Richard Purdie - April 19, 2012, 7:48 a.m.
In particular, this overwrites the value from cross-canadian.bbclass in
some cases which isn't the desired behaviour and unnecessarily
complicates/breaks the dependency chain.

Signed-off-by: Richard Purdie <>


diff --git a/meta/classes/gettext.bbclass b/meta/classes/gettext.bbclass
index 89faa30..95818c6 100644
--- a/meta/classes/gettext.bbclass
+++ b/meta/classes/gettext.bbclass
@@ -15,7 +15,7 @@  def gettext_oeconf(d):
         return '--disable-nls'
     return "--enable-nls"
-DEPENDS_GETTEXT = "virtual/gettext gettext-native"
+DEPENDS_GETTEXT ??= "virtual/gettext gettext-native"
 BASEDEPENDS =+ "${@gettext_dependencies(d)}"
 EXTRA_OECONF_append = " ${@gettext_oeconf(d)}"