From 49cccd1bad98c2cf6b0c07a827e375ba114827e0 Mon Sep 17 00:00:00 2001 From: Tobias Hintze Date: Wed, 4 Jul 2007 12:59:12 +0000 Subject: [PATCH] Tobias Hintze: rockinitramfs: in libexec/list-deps.sh: only output first occurance of the required library since we switched to glibc26, we have more symlinks in /usr/lib for essential /lib libraries (usr/lib/libdl.so.2 -> libdl-2.6.so) this caused list-deps.sh to output more than one occurance of the same library git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8613 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/teha/rockinitramfs/libexec/list-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/teha/rockinitramfs/libexec/list-deps.sh b/package/teha/rockinitramfs/libexec/list-deps.sh index cffb81788..cf9f3eda6 100755 --- a/package/teha/rockinitramfs/libexec/list-deps.sh +++ b/package/teha/rockinitramfs/libexec/list-deps.sh @@ -12,7 +12,7 @@ do readelf -d $x 2>/dev/null | grep "(NEEDED)" | sed -e"s,.*Shared library: \[\(.*\)\],\1," | while read library ; do - find $libdirs -maxdepth 1 -name "$library" | + find $libdirs -maxdepth 1 -name "$library" | head -n 1 | sed -e "s,^$rootdir,,g" done done