Skip to content

contrib: remove deprecated --deep signing from macdeployqtplus - #33592

Closed
amishhhaaaa wants to merge 1 commit into
bitcoin:masterfrom
amishhhaaaa:fix-deep-arg
Closed

amishhhaaaa wants to merge 1 commit into
bitcoin:masterfrom
amishhhaaaa:fix-deep-arg

Conversation

@amishhhaaaa

@amishhhaaaa amishhhaaaa commented Oct 9, 2025 •

Copy link
Copy Markdown
Contributor

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.
@DrahtBot

DrahtBot commented Oct 9, 2025 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33592.

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK hebasto

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

No conflicts as of last run.

@hebasto

hebasto commented Oct 10, 2025

Copy link
Copy Markdown
Member

Concept ACK.

@fanquake fanquake changed the title Contrib: Updated macdeployqtplus to remove deprecated --deep signing contrib: remove deprecated --deep signing from macdeployqtplus Oct 10, 2025
@sedited

sedited commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

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.

@hebasto hebasto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 3ef0103 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

Comment on lines +521 to +534
plugins_path = os.path.join(contents_path, "PlugIns")
if os.path.exists(plugins_path):
for root, _, files in os.walk(plugins_path):
for f in files:
full_path = os.path.join(root, f)
if is_macho_executable(full_path):
sign_item(full_path, identity)

macos_path = os.path.join(contents_path, "MacOS")
if os.path.exists(macos_path):
for f in os.listdir(macos_path):
full_path = os.path.join(macos_path, f)
if os.path.isfile(full_path) and is_macho_executable(full_path):
sign_item(full_path, identity)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My tests also pass without this snippet for some reason.

@Sjors

Sjors commented Mar 24, 2026

Copy link
Copy Markdown
Member

I updated #32486 with the apple manual entry, which says about the deprecated --deep: "This is almost never what you want"

So just reproducing what it did seems the wrong approach. I made a more targeted version in #34914 (with @amishhaa as the co-author).

@fanquake

Copy link
Copy Markdown
Member

Going to close this for now, in favour of #34914.

@fanquake fanquake closed this Mar 25, 2026
fanquake added a commit that referenced this pull request Sep 11, 2026
…ccidental --verify skip on ci

da7d7db contrib: remove deprecated --deep codesign flag (Sjors Provoost)
ad4eeaf ci: avoid modifying GOAL in 03_test_script.sh (Sjors Provoost)

Pull request description:

  Replace the deprecated `codesign --deep` with explicit, and minimal, per-component signing of Frameworks, Plugins and the top-level bundle.

  The CI signature check introduced in #34787 is updated to use `--strict`.

  Can be tested with:

  ```sh
  cmake -B build -DBUILD_GUI=ON
  # delete artifacts before rebuilding the `deploy` target
  rm -rf build/Bitcoin-Qt.app build/bitcoin-macos-app.zip
  cmake --build build -t deploy
  codesign --verify --deep --strict --verbose=4 build/dist/Bitcoin-Qt.app
  ```

  Fixes #32486, supersedes #33592 (this is a condensed version)

  Additionally this PR modifies `03_test_script.sh` to avoid modifying `GOAL` in place. That was causing the `codesign --verify` step to get skipped entirely.

ACKs for top commit:
  fanquake:
    ACK da7d7db - I think we should try and cleanup `macdeployqtplus` somewhat, but that can happen in future.
  willcl-ark:
    Light ACK da7d7db

Tree-SHA512: 54e6d38a327a9a241d842728390770e7819d45180c69c288f1e26c5706aff8ebedbb4f608c4a45b2b186e3369181b116aa82134a38fcaabf3af3711be14b9863
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: deprecated arg usage in macOS deploy script

6 participants