Skip to content

Commit 6e42577

Browse files
committed
Make sure that no shared libraries or executables on linux ship with a /home runpath from the build host again
1 parent 495b4be commit 6e42577

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test-snapshot-binaries/test-rpath-linux.py

+6
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@
2424
#
2525
# RUN: %{readelf} -d %{package_path}/usr/lib/libswiftDemangle.so | %{FileCheck} --check-prefix CHECK-SDE %s
2626
# CHECK-SDE-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}:/usr/lib/swift/linux
27+
#
28+
# RUN: find %{package_path} -name "lib*\.so" | xargs %{readelf} -d | %{FileCheck} --check-prefix CHECK-LIB %s
29+
# CHECK-LIB-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/home/
30+
#
31+
# RUN: find %{package_path}/usr/bin -type f | grep -Ev "\.py|\.txt|\.sh" | xargs %{readelf} -d | %{FileCheck} --check-prefix CHECK-BIN %s
32+
# CHECK-BIN-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/home/

0 commit comments

Comments
 (0)