gettext.bbclass: Add virtclass DEPENDS prepends
authorTom Rini <tom_rini@mentor.com>
Thu, 10 Mar 2011 17:33:03 +0000 (10:33 -0700)
committerTom Rini <tom_rini@mentor.com>
Fri, 11 Mar 2011 15:23:23 +0000 (08:23 -0700)
With BBCLASSEXTEND recipes which also modify DEPENDS_virtclass-native
gettext.bbclass is otherwise not working and gettext-native isn't
added.  So we need to have a DEPENDS_virtclass-$foo_prepend to
make sure GETTEXT_DEPENDS gets in.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
classes/gettext.bbclass

index 6c480b5..80b05a9 100644 (file)
@@ -13,5 +13,8 @@ python () {
 
 DEPENDS_GETTEXT = "gettext-native virtual/libiconv virtual/libintl"
 
-DEPENDS =+ "${DEPENDS_GETTEXT}"
+DEPENDS_prepend += "${DEPENDS_GETTEXT} "
+DEPENDS_virtclass-native_prepend = "${DEPENDS_GETTEXT} "
+DEPENDS_virtclass-nativesdk_prepend = "${DEPENDS_GETTEXT} "
+DEPENDS_virtclass-cross_prepend = "${DEPENDS_GETTEXT} "
 EXTRA_OECONF += "--enable-nls"