From 453b0907f568bcd5b53d7622193b77553c3b5998 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Thu, 27 Aug 2020 21:00:12 +0300 Subject: [PATCH] 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") --- scripts/process-debuginfo.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/process-debuginfo.in b/scripts/process-debuginfo.in index 1e4a2a6..9f1ca6b 100755 --- a/scripts/process-debuginfo.in +++ b/scripts/process-debuginfo.in @@ -60,7 +60,7 @@ done timestamp=$(date --iso-8601=ns --reference="$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 # due to ELF compression - uncompress and try again. LD_ORIGIN_PATH=/usr/bin eu-readelf -S "$f" > .tmp/sections.$$