summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-06-22 13:22:00 +0300
committerMichal Domonkos <mdomonko@redhat.com>2022-07-01 10:52:14 +0200
commit6910974c7a2a2deff157b0960af9a794b6b61d81 (patch)
tree5e8840ddd81a6412d6f79fdd85e4477761a339e3
parente6d9b9bb02d7a7103684a9036f6af89f763e6dad (diff)
downloadrpm-6910974c7a2a2deff157b0960af9a794b6b61d81.tar.gz
Prevent readelf internet access during rpaths checking (RhBug:2079600)
Recent binutils can do debug section lookups over the internet, but this is something we never want during rpmbuild (everything else aside, we're just building the thing so there wont be anything on the net anyhow). Disable the lookups by setting DEBUGINFOD_URLS to empty rather than using the specific option as this is compatible with any old version of readelf. (cherry picked from commit 3cec59812c8126088a51924c6aeea112ce9b545a)
-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 e32e8232f..26f74f0c8 100755
--- a/scripts/check-rpaths-worker
+++ b/scripts/check-rpaths-worker
@@ -94,7 +94,7 @@ function msg()
function check_rpath() {
pos=0
- rpath=$(readelf -W -d "$1" 2>/dev/null | LANG=C grep -E "\((RPATH|RUNPATH)\).*:") || return 0
+ rpath=$(DEBUGINFOD_URLS="" readelf -W -d "$1" 2>/dev/null | LANG=C grep -E "\((RPATH|RUNPATH)\).*:") || return 0
rpath_orig="$rpath"
rpath=$(echo "$rpath" | LANG=C sed -e "s!.*\(RPATH\|RUNPATH\).*: \[\(.*\)\]!\2!p;d")