[MacPorts] #65178: gh: @2.10.x: destroot fails for prebuilt binary: symbol not found: _SecTrustEvaluateWithError
MacPorts
noreply at macports.org
Sun May 28 04:42:51 UTC 2023
#65178: gh: @2.10.x: destroot fails for prebuilt binary: symbol not found:
_SecTrustEvaluateWithError
----------------------+-------------------------
Reporter: mascguy | Owner: herbygillot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: gh |
----------------------+-------------------------
Comment (by krackers):
>can only be linked to compiled binaries via MacPorts, not to those
downloaded from the network.
That's not true, you can in fact use legacysupport with arbitrary
binaries, either by telling dyld to use it at load-time via
DYLD_INSERT_DYLIB, or more permanently by patching the mach-o to add a
LOAD_DYLIB command. The latter can be done easily via
https://github.com/tyilo/insert_dylib or
https://github.com/alexzielenski/optool.
This is particularly handy for Go binaries, because with the extra symbols
supplied they usually work perfectly. Well... that used to be the case
until Go 1.18, which started making use of the SecTrustEvaluateWithError
that's the focus of this bug. I did verify that the polyfill in
https://trac.macports.org/ticket/66749 works fine, someone just needs to
PR it in.
--
Ticket URL: <https://trac.macports.org/ticket/65178#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list