]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: Handle native packages in the gettext test
authorJoshua Lock <josh@linux.intel.com>
Thu, 17 Dec 2009 10:26:05 +0000 (10:26 +0000)
committerJoshua Lock <josh@linux.intel.com>
Thu, 17 Dec 2009 10:26:05 +0000 (10:26 +0000)
When the package we are checking is a native package we need to check
for gettext-native rather than gettext in the DEPENDS.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/insane.bbclass

index 538cc140ee34fde1667b85bcb90bddb4be1547a6..706fc3c2275b6b94af062918378604a7c178860c 100644 (file)
@@ -442,8 +442,12 @@ def package_qa_check_rdepends(pkg, workdir, d):
 def configure_qa_check_gettext(d):
     # Check to see if gettext is required and if so whether it's in DEPENDS
     # Returning False means we need gettext but don't have it in DEPENDS
+    if bb.data.inherits_class('native', d):
+       gt = "gettext-native"
+    else:
+       gt = "gettext"
     deps = bb.utils.explode_deps(bb.data.getVar('DEPENDS', d, True) or "")
-    if "gettext" in deps:
+    if gt in deps:
        return True
 
     check = "grep \"^[[:space:]]*AM_GNU_GETTEXT\" $CONFIGURE_AC >/dev/null"