From 48eddeec0126b2ec0ca1d7a97cb9ef4987b8938c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 27 Aug 2026 18:15:24 +0500 Subject: [PATCH] package-zip-archives: patch rpath for all runtime libs, not just qt Unsure if it's required, but just to be safe and to avoid warnings showing up during `check_runtime_dependencies`. --- nix/package-zip-archives.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/package-zip-archives.py b/nix/package-zip-archives.py index c3a59a2092..11db5e3ae7 100644 --- a/nix/package-zip-archives.py +++ b/nix/package-zip-archives.py @@ -124,6 +124,10 @@ def stage_runtime_payload(ifcopenshell_install_dir: Path, dest: Path, *, include if not is_platform("MAC"): ensure_soname_links(dest) + for lib_so in dest.glob("*.so*"): + if lib_so.is_file(): + run("patchelf", "--set-rpath", "$ORIGIN", str(lib_so)) + def stage_qt_runtime_payload(exe_path: Path, dest: Path, qt_dir: Path | None) -> None: """Copy QT libs/plugins from `qt_dir` next to `exe_path`, if it depends on QT."""