Browse Source

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
rocklinux
Tobias Hintze 17 years ago
parent
commit
49cccd1bad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      package/teha/rockinitramfs/libexec/list-deps.sh

+ 1
- 1
package/teha/rockinitramfs/libexec/list-deps.sh

@ -12,7 +12,7 @@ do
readelf -d $x 2>/dev/null | grep "(NEEDED)" | readelf -d $x 2>/dev/null | grep "(NEEDED)" |
sed -e"s,.*Shared library: \[\(.*\)\],\1," | sed -e"s,.*Shared library: \[\(.*\)\],\1," |
while read library ; do while read library ; do
find $libdirs -maxdepth 1 -name "$library" |
find $libdirs -maxdepth 1 -name "$library" | head -n 1 |
sed -e "s,^$rootdir,,g" sed -e "s,^$rootdir,,g"
done done
done done

Loading…
Cancel
Save