Removed the deprecated --deep flag from codesign in macdeployqtplus and replaced it with an explicit recursive signing process for all binaries, frameworks, and plugins.
Fixes #32486
Removed the deprecated --deep flag from codesign in macdeployqtplus and replaced it with an explicit recrusive signing process for all binaries, frameworks, and plugins.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33592.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| Concept ACK | hebasto |
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--174a7506f384e20aa4161008e828411d-->
No conflicts as of last run.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
Concept ACK.
Could somebody with a Mac try this out? It's been open for a while, but I'm having a hard time judging its correctness.
529 | + macos_path = os.path.join(contents_path, "MacOS") 530 | + if os.path.exists(macos_path): 531 | + for f in os.listdir(macos_path): 532 | + full_path = os.path.join(macos_path, f) 533 | + if os.path.isfile(full_path) and is_macho_executable(full_path): 534 | + sign_item(full_path, identity)
My tests also pass without this snippet for some reason.
Tested 3ef010339313f8627f91be1f9c632ebd1b49150d on macOS Tahoe 26.2 as follows:
% cmake -B build -DBUILD_GUI=ON
% cmake --build build -t bitcoin-qt deploy
% codesign --verify --deep --strict --verbose=4 build/dist/Bitcoin-Qt.app