[oe-commits] Kai Kang : LSB_Test.sh: check ldconfig before update cache

git at git.openembedded.org git at git.openembedded.org
Sun Dec 15 17:42:30 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 99ce66b01c12d62e9daf8ab3f7b6ba37d3bc56ee
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=99ce66b01c12d62e9daf8ab3f7b6ba37d3bc56ee

Author: Kai Kang <kai.kang at windriver.com>
Date:   Fri Dec 13 15:54:45 2013 +0800

LSB_Test.sh: check ldconfig before update cache

LSB_Test.sh run ldconfig to update library cache. If command ldconfig
doesn't exists, test will fail.

Check whether ldconfig exists. If not, don't update library cache.

Signed-off-by: Kai Kang <kai.kang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index db4e749..2004157 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -444,11 +444,13 @@ else
 	echo "Fail to creat Dirnames file"
 fi
 
+[ -x /sbin/ldconfig ] && {
 echo ""
 echo "---------------------------------"
 echo "Update cache"
-ldconfig
+/sbin/ldconfig
 check;
+}
 
 # Check loop device
 if [ ! -b /dev/loop0 ]



More information about the Openembedded-commits mailing list