From 6dddf426bdc822e482ef792cdf5bcc7d82681a5b Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Tue, 19 Jan 2016 15:33:51 +0100 Subject: [PATCH] ail: 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 preferred because of shell's -e option. Change-Id: Ie211954bfb1753a8fa7d450caa653c1e03a9ffff Signed-off-by: Philippe Coval --- meta-tizen-common-base/recipes-application-framework/ail/ail.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta-tizen-common-base/recipes-application-framework/ail/ail.inc b/meta-tizen-common-base/recipes-application-framework/ail/ail.inc index 50fcfc5..7cb19cb 100644 --- a/meta-tizen-common-base/recipes-application-framework/ail/ail.inc +++ b/meta-tizen-common-base/recipes-application-framework/ail/ail.inc @@ -120,7 +120,7 @@ do_install() { pkg_postinst_${PN}() { #!/bin/sh -e - ldconfig + [ "" != "$D" ] || ldconfig # Create tizenglobalapp user needed for global installation #mkdir -p %TZ_SYS_RW_APP/.config/xwalk-service/applications #cd %TZ_SYS_RW_APP/ @@ -157,7 +157,8 @@ pkg_postinst_${PN}() { pkg_postrm_${PN}() { #!/bin/sh -e - [ "x$D" == "x" ] && ldconfig + [ "" != "$D" ] || ldconfig + if [ $1 == 0 ]; then rm -f $D${prefix}/dbspace/.app_info.db* fi -- 2.7.4