From 818fe273c124223ce651e3ba5d439de9a9550cd7 Mon Sep 17 00:00:00 2001 From: Valentin Niess Date: Wed, 15 Feb 2023 10:43:43 +0100 Subject: [PATCH] Add $ORIGIN/../lib to RPATH --- python_appimage/appimage/relocate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_appimage/appimage/relocate.py b/python_appimage/appimage/relocate.py index 4d2db16..163f383 100644 --- a/python_appimage/appimage/relocate.py +++ b/python_appimage/appimage/relocate.py @@ -98,7 +98,7 @@ def patch_binary(path, libdir, recursive=True): rpath = '\'' + system((PATCHELF, '--print-rpath', path)) + '\'' relpath = os.path.relpath(libdir, os.path.dirname(path)) relpath = '' if relpath == '.' else '/' + relpath - expected = '\'$ORIGIN' + relpath + '\'' + expected = '\'$ORIGIN' + relpath + ':$ORIGIN/../lib\'' if rpath != expected: system((PATCHELF, '--set-rpath', expected, path))