[oe-commits] Koen Kooi : package bbclass: only run ldconfig when there's a ld.so. conf present

GIT User account git at amethyst.openembedded.net
Sat Oct 25 17:00:06 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 1a0a603ec78ebd2ca1a7e0174c8ab13e937721cb
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1a0a603ec78ebd2ca1a7e0174c8ab13e937721cb

Author: Koen Kooi <koen at openembedded.org>
Date:   Sat Oct 25 18:58:00 2008 +0200

package bbclass: only run ldconfig when there's a ld.so.conf present

---

 classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/classes/package.bbclass b/classes/package.bbclass
index fd72a6d..1dc26fd 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -558,7 +558,7 @@ emit_pkgdata[dirs] = "${PKGDATA_DIR}/runtime"
 
 ldconfig_postinst_fragment() {
 if [ x"$D" = "x" ]; then
-	[ -x /sbin/ldconfig ] && /sbin/ldconfig
+	[ -x /sbin/ldconfig ] && [ -e /etc/ld.so.conf ] && /sbin/ldconfig
 fi
 }
 





More information about the Openembedded-commits mailing list