From: Jackie Huang <jackie.hu...@windriver.com>

Set the SH to the target path to avoid host contamination,
which causes the following issue on some hosts:
| WARNING: QA Issue: /usr/bin/smicache_libsmi contained in
  package libsmi requires /usr/bin/sh, but no providers
  found in its RDEPENDS [file-rdeps]
| Computing transaction...error: Can't install
  libsmi-0.4.8-r0.0@corei7_64: no package provides /usr/bin/sh

Signed-off-by: Jackie Huang <jackie.hu...@windriver.com>
---
 meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb 
b/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
index 2b35c59..b049067 100644
--- a/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
+++ b/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
@@ -14,6 +14,8 @@ SRC_URI[sha256sum] = 
"f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c72
 
 inherit autotools
 
+EXTRA_OECONF = "ac_cv_path_SH=${base_bindir}/sh"
+
 do_install_append () {
     install -d ${D}${sysconfdir}
     install -m 0644 ${WORKDIR}/smi.conf ${D}${sysconfdir}/smi.conf
-- 
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to