summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2021-06-21 11:19:27 +0200
committerPanu Matilainen <pmatilai@redhat.com>2021-06-22 15:02:29 +0300
commit412c6c7f124f3500fc0e35183ba8b9bdac4cce33 (patch)
treeec9520363616f1b1df5730fe800114ada8dba71d
parent1b626c883a05cac0dc2e811ca25e062f11baee00 (diff)
downloadrpm-412c6c7f124f3500fc0e35183ba8b9bdac4cce33.tar.gz
Don't break readelf output at 80 characters
by adding -W Related: #1713 (cherry picked from commit e2b4fdda316a6270935ab792774c4b4264d68630)
-rwxr-xr-xscripts/check-rpaths-worker2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/check-rpaths-worker b/scripts/check-rpaths-worker
index f8f13961f..6399c4fa0 100755
--- a/scripts/check-rpaths-worker
+++ b/scripts/check-rpaths-worker
@@ -94,7 +94,7 @@ function msg()
function check_rpath() {
pos=0
- rpath=$(readelf -d "$1" 2>/dev/null | LANG=C grep "($2).*:") || return 0
+ rpath=$(readelf -W -d "$1" 2>/dev/null | LANG=C grep "($2).*:") || return 0
rpath=$(echo "$rpath" | LANG=C sed -e "s!.*($2).*: \[\(.*\)\]!\1!p;d")
lower=$(echo $2 | awk '{print tolower($0)}')
tmp=aux:$rpath:/lib/aux || :