summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2008-02-24 23:35:07 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2008-02-24 23:35:07 +0000
commit89edf25da6cbf515358aaa5fd64987d2a04bbc4f (patch)
tree39fa691fe62e4f734e97f7ef1de49ef04d47fed0 /classes
parentac68d5d71a59efe631087a9b576c95d2722822e7 (diff)
package.bbclass: shlib postinst: Check for ldconfig presence before running it.
* This helps uclibc systems where ldconfig is optional, in particular 3rd-party systems like OpenWRT. * Per RFC on the list.
Diffstat (limited to 'classes')
-rw-r--r--classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index e267478561..cb4417fc7f 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -515,7 +515,7 @@ emit_pkgdata[dirs] = "${PKGDATA_DIR}/runtime"
ldconfig_postinst_fragment() {
if [ x"$D" = "x" ]; then
- ldconfig
+ [ -x /sbin/ldconfig ] && /sbin/ldconfig
fi
}