Stop depending on nash to find the program interpreter; use eu-readelf instead
parent
38672ee8b4
commit
0d666d610a
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue