ail: Prevent running ldconfig if not on system 03/57403/2
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Tue, 19 Jan 2016 14:33:51 +0000 (15:33 +0100)
committerPhilippe Coval <philippe.coval@osg.samsung.com>
Wed, 20 Jan 2016 09:35:48 +0000 (10:35 +0100)
commit6dddf426bdc822e482ef792cdf5bcc7d82681a5b
tree22cfa3286d44e48cb832cc353440e380f58e189e
parent0dbe39ac0ee3899efb15608feab593fb4752b88c
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 <philippe.coval@osg.samsung.com>
meta-tizen-common-base/recipes-application-framework/ail/ail.inc