bitcoin/depends/patches
Wladimir J. van der Laan 816314ef0f
Merge #20644: Add patch to make codesign_allocate compatible with Apple's
a4118c6e20 Add patch to make codesign_allocate compatible with Apple's (Pieter Wuille)

Pull request description:

  This is an alternative to #20638.

  The problem is that Apple's codesign(_allocate) apparently rounds the "vmsize" attribute on the __LINKEDIT section to a multiple of 0x2000 on x86_64 rather than 0x1000 (as their published source code does). This divergence means that the binary signed by codesign is slightly different from the one recreated by our reattach-sig-to-gitian-output process, and the signature being invalid.

  This fixes it by patching our codesign_allocate source code to also use 0x2000. In tests, this appears to result in matching binaries.

ACKs for top commit:
  jonasschnelli:
    Tested ACK a4118c6e20 - removed the osx cache, built commit a4118c6e20 for osx in gitian (dependency where built, patch was applied), signed on my signing mac (detach-sig-create), ran gitian osx signer with the produces signature and the a4118c6e20 build (detach-sig-apply), signature then was successful verified on my Mac (codesign -v /Volumes/Bitcoin-Core/Bitcoin-Qt.app)
  MarcoFalke:
    Concept ACK a4118c6e20

Tree-SHA512: 07b8cdf8216249ddfe4bd38b39f2b48b2e190d4002b84d8981e62197bbbc9f25ac5c137bcc32057b23fbf38cbb2889ef95101ce008edfbf608cd170b88b3acbc
2020-12-17 21:34:35 +01:00
..
bdb build: use patch rather than sed in bdb package 2020-08-25 13:19:55 +08:00
fontconfig build: use patch rather than sed in fontconfig package 2020-08-25 14:37:35 +08:00
libevent depends: Patch libevent build to fix IPv6 -rpcbind on Windows 2020-06-25 10:23:54 +08:00
miniupnpc build: replace wingenminiupnpcstrings sed with a patch in miniupnpc package 2020-08-26 11:27:31 +08:00
native_cctools Add patch to make codesign_allocate compatible with Apple's 2020-12-13 12:20:39 -08:00
native_libdmg-hfsplus depends: pull upstream libdmg-hfsplus changes 2019-10-09 10:41:51 -04:00
qt Fix QPainter non-determinism on macOS 2020-11-23 12:08:18 -05:00
zeromq build: use patch rather than sed in zeromq package 2020-08-25 14:37:44 +08:00