wrap-find-debuginfo.sh: Enable separate debugedit program

This commit is contained in:
Florian Weimer 2021-05-21 16:22:23 +02:00
parent 3af4a41203
commit 79751685db

View File

@ -13,6 +13,13 @@ set -ex
ldso_tmp="$(mktemp)" ldso_tmp="$(mktemp)"
# Prefer a separately installed debugedit over the RPM-integrated one.
if command -v debugedit >/dev/null ; then
debugedit=debugedit
else
debugedit=/usr/lib/rpm/debugedit
fi
cleanup () { cleanup () {
rm -f "$ldso_tmp" rm -f "$ldso_tmp"
} }
@ -56,8 +63,7 @@ while true ; do
esac esac
done done
debug_base_name=${last_arg:-$RPM_BUILD_ROOT} debug_base_name=${last_arg:-$RPM_BUILD_ROOT}
/usr/lib/rpm/debugedit -b "$debug_base_name" -d "$debug_dest_name" -n \ $debugedit -b "$debug_base_name" -d "$debug_dest_name" -n $ldso_path
$ldso_path
# Apply single-file DWARF optimization. # Apply single-file DWARF optimization.
dwz $ldso_path dwz $ldso_path