Stop depending on nash to find the program interpreter; use eu-readelf instead

master
Jeremy Katz 2009-01-05 12:46:39 -05:00
parent 38672ee8b4
commit 0d666d610a
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function get_dso_deps() {
declare -a FILES
declare -a NAMES

local LDSO=$(echo nash-showelfinterp $bin | /sbin/nash --forcequiet)
local LDSO=$(LANG=C eu-readelf -l $bin |grep interpreter |awk {'print $4;'} |sed -e 's/]$//')
[ -z "$LDSO" -o "$LDSO" == "$bin" ] && local LDSO="$IF_RTLD"
[ -z "$LDSO" -o "$LDSO" == "$bin" ] && return 1
[ -z "$IF_RTLD" ] && IF_RTLD="$LDSO"

View File

@ -22,6 +22,7 @@ Requires: mount
Requires: nash
Requires: bash
Requires: plymouth >= 0.6.0-2
Requires: /usr/bin/eu-readelf
Obsoletes: mkinitrd < 7.0
Provides: mkinitrd = 7.0
BuildArch: noarch