From ae1ecef8bd65e3ed1bed8dea6b7db3f1b52a8dab Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Thu, 9 Jul 2020 18:20:51 +0300 Subject: [PATCH] process-debuginfo: Do not call eu-elfcompress if it doesn't exist E2K arch have old elfutils-0.159 which doesn't have eu-elfcompress. Error: /usr/lib/rpm/process-debuginfo: line 68: eu-elfcompress: command not found Reported-by: Andrey Savchenko --- 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 f54e218..dc81259 100755 --- a/scripts/process-debuginfo.in +++ b/scripts/process-debuginfo.in @@ -64,7 +64,7 @@ if [ -n "$strip" ]; then mkdir -p "${debugf%/*}" LD_ORIGIN_PATH=/usr/bin eu-strip $strip --remove-comment -f "$debugf" "$f" - if [ -n "$elfcompress" ]; then + if [ -n "$elfcompress" ] && [ -x /usr/bin/eu-elfcompress ]; then LD_ORIGIN_PATH=/usr/bin eu-elfcompress --quiet "$debugf" fi