Skip to contentSkip to conversation

gettext.bbclass: Add virtclass DEPENDS prepends

PATCH In review Tom Rini 2 participants 2 messages Mar 10, 2011 – Mar 11, 2011

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 gettext.bbclass: Add virtclass DEPENDS prepends

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.

---
 classes/gettext.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
classes/gettext.bbclass +3 -0
index 6c480b5..2303311 100644
@@ -14,4 +14,7 @@ python () {
 DEPENDS_GETTEXT = "gettext-native virtual/libiconv virtual/libintl"
 
 DEPENDS =+ "${DEPENDS_GETTEXT}"
+DEPENDS_virtclass-native_prepend = "${DEPENDS_GETTEXT} "
+DEPENDS_virtclass-nativesdk_prepend = "${DEPENDS_GETTEXT} "
+DEPENDS_virtclass-cross_prepend = "${DEPENDS_GETTEXT} "
 EXTRA_OECONF += "--enable-nls"
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw

Looks sensible to me

G

Quoted 22 lines · Tom Rini

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.

---
 classes/gettext.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
classes/gettext.bbclass +3 -0
index 6c480b5..2303311 100644
@@ -14,4 +14,7 @@ python () {
 DEPENDS_GETTEXT = "gettext-native virtual/libiconv virtual/libintl"
 
 DEPENDS =+ "${DEPENDS_GETTEXT}"
+DEPENDS_virtclass-native_prepend = "${DEPENDS_GETTEXT} "
+DEPENDS_virtclass-nativesdk_prepend = "${DEPENDS_GETTEXT} "
+DEPENDS_virtclass-cross_prepend = "${DEPENDS_GETTEXT} "
 EXTRA_OECONF += "--enable-nls"