debuginfo: Do not try to use eu-elfcompress if it does not exist

Reason: ae1ecef8 ("process-debuginfo: Do not call eu-elfcompress if it doesn't exist")
Fixes: 8682814b ("debuginfo: Try to uncompress if debugedit failed to extract sources list")
This commit is contained in:
Виталий Чикунов 2020-08-27 21:00:12 +03:00
parent b9ea232966
commit 453b0907f5

View File

@ -60,7 +60,7 @@ done
timestamp=$(date --iso-8601=ns --reference="$f") timestamp=$(date --iso-8601=ns --reference="$f")
@RPMCONFIGDIR@/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l .tmp/src.$$ "$f" @RPMCONFIGDIR@/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l .tmp/src.$$ "$f"
if [ ! -s .tmp/src.$$ ]; then if [ ! -s .tmp/src.$$ ] && [ -x /usr/bin/eu-elfcompress ]; then
# debugedit has failed to extract sources list, possibly # debugedit has failed to extract sources list, possibly
# due to ELF compression - uncompress and try again. # due to ELF compression - uncompress and try again.
LD_ORIGIN_PATH=/usr/bin eu-readelf -S "$f" > .tmp/sections.$$ LD_ORIGIN_PATH=/usr/bin eu-readelf -S "$f" > .tmp/sections.$$