From 317bfee66280e5dfdbc014fb38ceb0edc95faeca Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 20 Jan 2016 10:33:25 +0100 Subject: [PATCH] festival: Prevent running ldconfig if not on system Without this change, bitbake tries to run ldconfig on host instead and then complains (but not fail !) about permission issue like : /sbin/ldconfig.real: \ Can't create temporary cache file /etc/ld.so.cache~: \ Permission denied Note, "or condition" is prefered because of shell's -e option. Change-Id: I2de3d79aef7c884727f91538ff3ac73babb07125 Signed-off-by: Philippe Coval --- meta-tizen-common-base/recipes-extended/festival/festival.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta-tizen-common-base/recipes-extended/festival/festival.inc b/meta-tizen-common-base/recipes-extended/festival/festival.inc index 3a67287..919d8cb 100644 --- a/meta-tizen-common-base/recipes-extended/festival/festival.inc +++ b/meta-tizen-common-base/recipes-extended/festival/festival.inc @@ -222,28 +222,28 @@ do_install() { pkg_postinst_${PN}() { #!/bin/sh -e - ldconfig + [ "" != "$D" ] || ldconfig } pkg_postinst_${PN}() { #!/bin/sh -e - ldconfig + [ "" != "$D" ] || ldconfig } pkg_postrm_${PN}() { #!/bin/sh -e - ldconfig + [ "" != "$D" ] || ldconfig } pkg_postrm_${PN}() { #!/bin/sh -e - ldconfig + [ "" != "$D" ] || ldconfig } -- 2.7.4