summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2009-12-17 10:26:05 +0000
committerJoshua Lock <josh@linux.intel.com>2009-12-17 10:26:05 +0000
commit4859945b118def44b0e07d0a8d447611246976ec (patch)
tree9355c80b681527d7953600892233475df989fc76 /meta
parent459861b9c039cba764e3e453fa34d4d4a4566e4f (diff)
downloadpoky-4859945b118def44b0e07d0a8d447611246976ec.tar.gz
insane.bbclass: Handle native packages in the gettext test
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/insane.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 538cc140ee..706fc3c227 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -442,8 +442,12 @@ def package_qa_check_rdepends(pkg, workdir, d):
442def configure_qa_check_gettext(d): 442def configure_qa_check_gettext(d):
443 # Check to see if gettext is required and if so whether it's in DEPENDS 443 # Check to see if gettext is required and if so whether it's in DEPENDS
444 # Returning False means we need gettext but don't have it in DEPENDS 444 # Returning False means we need gettext but don't have it in DEPENDS
445 if bb.data.inherits_class('native', d):
446 gt = "gettext-native"
447 else:
448 gt = "gettext"
445 deps = bb.utils.explode_deps(bb.data.getVar('DEPENDS', d, True) or "") 449 deps = bb.utils.explode_deps(bb.data.getVar('DEPENDS', d, True) or "")
446 if "gettext" in deps: 450 if gt in deps:
447 return True 451 return True
448 452
449 check = "grep \"^[[:space:]]*AM_GNU_GETTEXT\" $CONFIGURE_AC >/dev/null" 453 check = "grep \"^[[:space:]]*AM_GNU_GETTEXT\" $CONFIGURE_AC >/dev/null"