mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
9.16 failed to start on Intel Macs (#10123): cryptography had no prebuilt Intel macOS wheel, pip compiled it from source, and its openssl-sys build linked the builder's Homebrew OpenSSL into _rust.abi3.so instead of the bundled one. _fixup_imports deliberately skips _rust.abi3.so, so the dangling reference shipped unnoticed and the app died on startup for anyone without that external dylib. Add _verify_bundle_linkage, run after the bundle is assembled and relocated but before code-signing: walks every .so/.dylib and fails the build if any install-name points at a build-host prefix (/usr/local, /opt/homebrew, /opt/local, $SLAVE_HOME). OS libraries and @loader_path/@rpath/@executable_path references pass untouched. Turns this class of bug into a build-time failure instead of a runtime one.