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: I0f1c9b6389ed37cccf6ad9d2a6bf77966043f2da
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
pkg_postinst_libmessage-port() {
#!/bin/sh -e
- ldconfig
+ [ "" != "$D" ] || ldconfig
}
pkg_postrm_libmessage-port() {
#!/bin/sh -e
- ldconfig
+ [ "" != "$D" ] || ldconfig
# daemon: message-port
}