summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-06-22 13:22:00 +0300
committerPanu Matilainen <pmatilai@redhat.com>2022-06-28 14:51:02 +0300
commitc733877b8fc136a25738be446cd1c7a9db4749f2 (patch)
tree222b8356488606f1fe5801cbc5b2f84ccdc4bcd0
parent5c4f70800bf35736200a55aab5d1373bafdf0936 (diff)
downloadrpm-c733877b8fc136a25738be446cd1c7a9db4749f2.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.
-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")