build: ensure release binaries don't contain depends references #36270

Open
fanquake wants to merge 4 commits from check_no_depends into master AGit
fanquake commented 2026-09-16 10:53:55 +00:00 (Migrated from github.com)

It doesn't make sense for the release binaries to contain references to depends, either in debug symbols, or in relation to runtime functionality (i.e loading fonts, icons, keyboard configs), as it's unlikely that "depends" exists on a users system at runtime.

There are a number of Qt (and sub dep) related changes here. Not completely sure what is the best approach for these. My current understanding is that most of these changes should be a no-op at runtime.

It doesn't make sense for the release binaries to contain references to depends, either in debug symbols, or in relation to runtime functionality (i.e loading fonts, icons, keyboard configs), as it's unlikely that "depends" exists on a users system at runtime. There are a number of Qt (and sub dep) related changes here. Not completely sure what is the best approach for these. My current understanding is that most of these changes should be a no-op at runtime.
DrahtBot commented 2026-09-16 10:54:03 +00:00 (Migrated from github.com)

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

External sites

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36593 (depends: Update Qt to 6.12.0 by hebasto)
  • #25573 (guix: produce a -static-pie bitcoind by fanquake)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36270 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36270.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36270#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. A summary of reviews will appear here. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36593](https://github.com/bitcoin/bitcoin/pull/36593) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36593.svg"></sub> (depends: Update Qt to 6.12.0 by hebasto) * [#25573](https://github.com/bitcoin/bitcoin/pull/25573) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/25573.svg"></sub> (guix: produce a `-static-pie` bitcoind by fanquake) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

🟠 Minor · The global Qt prefix change loses local depends translation lookup

Locally run native depends-built bitcoin-qt now looks under /usr for Qt's own translations instead of the depends directory, so standard Qt UI text can remain untranslated.

Location: depends/packages/qt.mk:86 (head).

🔵 Suggestion · Depends-path validation skips macOS and Windows releases

DEPENDS_PATHS checks only ELF executables, and the new depends-prefix maps are Linux-only, leaving the proposed release-path guarantee unenforced for macOS and Windows.

Location: contrib/guix/symbol-check.py:294 (head).

Review coverage was incomplete.


Reviewed: 6b6f29b0da6b · Full review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:df0443dc5cff1224f58cf2f0af2a814b52ac77c4fa18c64584a637f43b36d781:b3906d5974a831cf25d9d4076421aeb88934ca1265895f22224d53119372abb5 --> <!-- ralph-base:050982c52d9752c5feda0e5fc4a29a0dc070a83b --> <!-- ralph-head:6b6f29b0da6bc7671d11cb3635943da40fcc5cab --> <!-- ralph-case:ea1f20fea057b056726f08430cb991514ae96a56d6b9a3a60bb92b92f4851955 --> **🟠 Minor · The global Qt prefix change loses local depends translation lookup** Locally run native depends-built bitcoin-qt now looks under /usr for Qt's own translations instead of the depends directory, so standard Qt UI text can remain untranslated. Location: [`depends/packages/qt.mk:86`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/6b6f29b0da6bc7671d11cb3635943da40fcc5cab/depends/packages/qt.mk#L86>) (head). **🔵 Suggestion · Depends-path validation skips macOS and Windows releases** DEPENDS_PATHS checks only ELF executables, and the new depends-prefix maps are Linux-only, leaving the proposed release-path guarantee unenforced for macOS and Windows. Location: [`contrib/guix/symbol-check.py:294`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/6b6f29b0da6bc7671d11cb3635943da40fcc5cab/contrib/guix/symbol-check.py#L294>) (head). Review coverage was incomplete. <!-- Review tier: standard --> --- Reviewed: [`6b6f29b0da6b`](<https://git.fish.foo/bitcoin/bitcoin/commit/6b6f29b0da6bc7671d11cb3635943da40fcc5cab>) · [Full review report](<https://review.fish.foo/traces/36270-6b6f29b0da6bc7671d11cb3635943da40fcc5cab-2310-3.html>) · [Previous reports](<https://review.fish.foo/traces/36270/>) [permalink](<https://review.fish.foo/traces/36270-6b6f29b0da6bc7671d11cb3635943da40fcc5cab-2310-3.html>)
fanquake commented 2026-11-06 13:18:41 +00:00 (Migrated from github.com)

@hebasto have you got any thoughts on the Qt (or sub dep) related changes here?

@hebasto have you got any thoughts on the Qt (or sub dep) related changes here?
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36270
No description provided.