From b4e336e6faadfed954c57ce40226f5fc120d5c12 Mon Sep 17 00:00:00 2001 From: Butta Date: Wed, 15 Mar 2023 21:57:33 +0530 Subject: [PATCH] Make sure that no shared libraries or executables on linux ship with a /home runpath from the build host again Also, update the liblldb.so runpath for apple/llvm-project#6456. --- test-snapshot-binaries/test-rpath-linux.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test-snapshot-binaries/test-rpath-linux.py b/test-snapshot-binaries/test-rpath-linux.py index 109d418..c224fa2 100644 --- a/test-snapshot-binaries/test-rpath-linux.py +++ b/test-snapshot-binaries/test-rpath-linux.py @@ -38,4 +38,10 @@ # CHECK-SDE-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}:/usr/lib/swift/linux # # RUN: %{readelf} -d %{package_path}/usr/lib/liblldb.so | %{FileCheck} --check-prefix CHECK-LLDB %s -# CHECK-LLDB: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}$ORIGIN/../lib/swift/linux +# CHECK-LLDB: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}$ORIGIN/swift/linux +# +# RUN: find %{package_path} -name "lib*\.so" | xargs %{readelf} -d | %{FileCheck} --check-prefix CHECK-LIB %s +# CHECK-LIB-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/home/ +# +# RUN: find %{package_path}/usr/bin -type f | grep -Ev "\.py|\.txt|\.sh" | xargs %{readelf} -d | %{FileCheck} --check-prefix CHECK-BIN %s +# CHECK-BIN-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/home/