Repository navigation
Conversation
This removes the `USE_DBUS` definition from `bitcoin-build-config.h`, reducing the dependency of non-GUI code on GUI-specific definitions.
This removes the `USE_QRCODE` definition from `bitcoin-build-config.h`, reducing the dependency of non-GUI code on GUI-specific definitions. Additionally, `QRencode::QRencode` is now linked only when wallet is enabled, because the `qrencode.h` header is used exclusively in wallet-specific code.
When using the Guix build/sign scripts from this repository, the Guix
environment and the `GUIX_ENVIRONMENT` variable within the container are
fully defined by the commit hash and the user-provided
`ADDITIONAL_GUIX_*_FLAGS`.
This change removes `GUIX_ENVIRONMENT` from the package ID calculations.
Doing so allows us to split manifests and reuse built depends packages
across containers that utilize these split manifests in subsequent
commits.
The potential impact of `ADDITIONAL_GUIX_*_FLAGS` is still accounted for
by passing them to the `gen_id` script via the `{BUILD,HOST}_ID_SALT`
variables.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35098. ReviewsSee the guideline for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
81bf176 to
c473095
Compare
|
My Guix build: |
Is that blocked on this change; I thought it just needed to be finished? (looking at https://github.com/bitcoin-core/gui-qml, it just has this repo as a subtree; I also can't see any new dependencies)
Im not sure yet, given the current approach of re-using the same build dir. We will want to compile / link the static binaries with different compilation / link flags. |
The The transition to QML-based GUI will use a branch that is cleanly mergeable into the master branch in this repo (rebasing is currently in progress). The new dependencies will look like the ones here.
Dropped this from the PR description. However, it still seems unreasonable to keep GUI-specific stuff in a Guix prefix where static non-GUI binaries are being built. |
Ok, so some additional Qt subcomponents? My point is that doing anything QML related in this repo, doesn't seem to be blocked on the changes here. It could be done today, by just enabling a few more components in Qt, without any other, new, non-Qt dependencies? |
I'm a bit confused. Are we making a distinction between additional Qt components and other non-Qt dependencies? If so, what is the difference between them from a security perspective? This PR is not proposed solely for the transition to the QML-based GUI. Its primary purpose is to resolve #29914, which doesn't mention QML at all. As a byproduct, it also enables the transition to the QML GUI without having any effect on the security of the non-GUI release binaries. |
Yes. I think we could generally add new Qt submodules as-needed, given we are already using Qt. Any other new dependency should be evaluated on a case-by-case basis.
I think this is my confusion. I don't think there are any security-related issues that would arise from moving to QML, today, if it only requires using a few more Qt modules; so am trying to clarify how this PR provides a "safer upgrade path". |
|
I've pushed an alternate approach into #25573 (if you want to leave approach feedback there), as the approach here wont work for static builds (we can't re-use depends / build artifacts across linux & linux GUI builds. My approach should be compatible with #34948, and wouldn't need changes like #35072. |
|
🐙 This pull request conflicts with the target branch and needs rebase. |
Closing. |
5338877 guix: Remove redundant ShellCheck `source` directives (Hennadii Stepanov) 62cf7bc guix, refactor: Add `BASE` argument to `*_for_host` functions (Hennadii Stepanov) 5d46429 guix, refactor: Move `distsrc_for_host()` to `prelude.bash` (Hennadii Stepanov) cab65ea guix, refactor: Move duplicated `profiledir_for_host()` to `prelude.bash` (Hennadii Stepanov) faa9d43 guix, refactor: Move duplicated `outdir_for_host()` to `prelude.bash` (Hennadii Stepanov) 6b59fd6 guix, refactor: Remove `contains()` function (Hennadii Stepanov) d4c69a7 guix, refactor: Remove unused `out_name()` function (Hennadii Stepanov) Pull request description: While working on #35098, I reviewed my notes regarding a few minor Guix script flaws and decided to address them here. This PR: 1. Removes unused code. 2. Reduces code duplication. 3. Improves consistency across function usage. 4. Minimizes ShellCheck directive usage. ACKs for top commit: fanquake: ACK 5338877 - the move-only deduplication, and dead code removal seem fine. The other (refactoring) changes seem less well motived Tree-SHA512: d565e31ba49300f3001b04d3143721aced305f41bca6d04c33dc479d568efb2c06d91758619378199f174a40f1306c9418ae80d5478013a65ad96341bea122b1
…ements 5338877 guix: Remove redundant ShellCheck `source` directives (Hennadii Stepanov) 62cf7bc guix, refactor: Add `BASE` argument to `*_for_host` functions (Hennadii Stepanov) 5d46429 guix, refactor: Move `distsrc_for_host()` to `prelude.bash` (Hennadii Stepanov) cab65ea guix, refactor: Move duplicated `profiledir_for_host()` to `prelude.bash` (Hennadii Stepanov) faa9d43 guix, refactor: Move duplicated `outdir_for_host()` to `prelude.bash` (Hennadii Stepanov) 6b59fd6 guix, refactor: Remove `contains()` function (Hennadii Stepanov) d4c69a7 guix, refactor: Remove unused `out_name()` function (Hennadii Stepanov) Pull request description: While working on bitcoin#35098, I reviewed my notes regarding a few minor Guix script flaws and decided to address them here. This PR: 1. Removes unused code. 2. Reduces code duplication. 3. Improves consistency across function usage. 4. Minimizes ShellCheck directive usage. ACKs for top commit: fanquake: ACK 5338877 - the move-only deduplication, and dead code removal seem fine. The other (refactoring) changes seem less well motived Tree-SHA512: d565e31ba49300f3001b04d3143721aced305f41bca6d04c33dc479d568efb2c06d91758619378199f174a40f1306c9418ae80d5478013a65ad96341bea122b1 (cherry picked from commit fbe6287)
…d improvements a242a12 guix: Remove redundant ShellCheck `source` directives (Hennadii Stepanov) 45867c8 guix, refactor: Add `BASE` argument to `*_for_host` functions (Hennadii Stepanov) 22fe58e guix, refactor: Move `distsrc_for_host()` to `prelude.bash` (Hennadii Stepanov) b22a57a guix, refactor: Move duplicated `profiledir_for_host()` to `prelude.bash` (Hennadii Stepanov) 10c2997 guix, refactor: Move duplicated `outdir_for_host()` to `prelude.bash` (Hennadii Stepanov) 6c8426b guix, refactor: Remove `contains()` function (Hennadii Stepanov) fcd785e guix, refactor: Remove unused `out_name()` function (Hennadii Stepanov) Pull request description: While working on bitcoin/bitcoin#35098, I reviewed my notes regarding a few minor Guix script flaws and decided to address them here. This PR: 1. Removes unused code. 2. Reduces code duplication. 3. Improves consistency across function usage. 4. Minimizes ShellCheck directive usage. ACKs for top commit: fanquake: ACK a242a12 - the move-only deduplication, and dead code removal seem fine. The other (refactoring) changes seem less well motived Tree-SHA512: d565e31ba49300f3001b04d3143721aced305f41bca6d04c33dc479d568efb2c06d91758619378199f174a40f1306c9418ae80d5478013a65ad96341bea122b1
…d improvements e2a92ec guix: Remove redundant ShellCheck `source` directives (Hennadii Stepanov) bd9db9e guix, refactor: Add `BASE` argument to `*_for_host` functions (Hennadii Stepanov) 3ba31d0 guix, refactor: Move `distsrc_for_host()` to `prelude.bash` (Hennadii Stepanov) ab5abe5 guix, refactor: Move duplicated `profiledir_for_host()` to `prelude.bash` (Hennadii Stepanov) 7f6b89b guix, refactor: Move duplicated `outdir_for_host()` to `prelude.bash` (Hennadii Stepanov) e12b41b guix, refactor: Remove `contains()` function (Hennadii Stepanov) 1de71b3 guix, refactor: Remove unused `out_name()` function (Hennadii Stepanov) Pull request description: While working on bitcoin/bitcoin#35098, I reviewed my notes regarding a few minor Guix script flaws and decided to address them here. This PR: 1. Removes unused code. 2. Reduces code duplication. 3. Improves consistency across function usage. 4. Minimizes ShellCheck directive usage. ACKs for top commit: fanquake: ACK e2a92ec - the move-only deduplication, and dead code removal seem fine. The other (refactoring) changes seem less well motived Tree-SHA512: d565e31ba49300f3001b04d3143721aced305f41bca6d04c33dc479d568efb2c06d91758619378199f174a40f1306c9418ae80d5478013a65ad96341bea122b1
…d improvements 53388773af78f8f1b8f3e705a5400cff6bee6de0 guix: Remove redundant ShellCheck `source` directives (Hennadii Stepanov) 62cf7bc53f238849cfa872972fc384dd25175fba guix, refactor: Add `BASE` argument to `*_for_host` functions (Hennadii Stepanov) 5d46429e322aa4840e0e7a714caa87672aee5faa guix, refactor: Move `distsrc_for_host()` to `prelude.bash` (Hennadii Stepanov) cab65ea9c6963bfffe73524b1485378b6305c398 guix, refactor: Move duplicated `profiledir_for_host()` to `prelude.bash` (Hennadii Stepanov) faa9d4345ff584eb2a7c09f4087c487c381e6b42 guix, refactor: Move duplicated `outdir_for_host()` to `prelude.bash` (Hennadii Stepanov) 6b59fd6b8cfd21bb008d3b71d4f1b24cf562854b guix, refactor: Remove `contains()` function (Hennadii Stepanov) d4c69a72246ed6a290c5aca812d5b896904b4382 guix, refactor: Remove unused `out_name()` function (Hennadii Stepanov) Pull request description: While working on bitcoin/bitcoin#35098, I reviewed my notes regarding a few minor Guix script flaws and decided to address them here. This PR: 1. Removes unused code. 2. Reduces code duplication. 3. Improves consistency across function usage. 4. Minimizes ShellCheck directive usage. ACKs for top commit: fanquake: ACK 53388773af78f8f1b8f3e705a5400cff6bee6de0 - the move-only deduplication, and dead code removal seem fine. The other (refactoring) changes seem less well motived Tree-SHA512: d565e31ba49300f3001b04d3143721aced305f41bca6d04c33dc479d568efb2c06d91758619378199f174a40f1306c9418ae80d5478013a65ad96341bea122b1
This PR isolates the GUI build, including its specific dependencies, into a dedicated container.
Benefits of this approach:
Improves security: Any unknown backdoors in GUI-specific dependencies will no longer affect
bitcoindand other non-GUI binaries.Enables a safer upgrade path: Allows for the introduction of additional GUI dependencies needed for Wayland support or transitioning to the QML-based GUI.
Could be useful for guix: produce a-static-piebitcoind #25573.This implementation is based on an idea proposed here.
Currently based on
#34948 and#35072.Closes #29914.