Skip to content

Commit fa02155

Browse files
committed
[patch-glibc] fix permission errors for shrink-rpath
1 parent 1d9c359 commit fa02155

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/shellgen/tmpl/glibc-patch.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ patch() {
6363
--add-needed libutil.so.1 \
6464
--set-interpreter "$interp" \
6565
"$binary"
66+
67+
# Neaten the runpath by removing extraneous paths. This will likely remove any old glibc.
68+
patchelf --shrink-rpath "$binary"
6669
chmod "$perm" "$binary"
6770
}
6871

@@ -73,6 +76,3 @@ echo "patching elf binaries count=$count"
7376
for binary in $elves; do
7477
patch "$binary" exe
7578
done
76-
77-
echo "shrinking binary rpaths"
78-
echo "$elves" | xargs "$patchelf/bin/patchelf" --shrink-rpath

0 commit comments

Comments
 (0)