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 <philippe.coval@osg.samsung.com>
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
}