Skip to content

RFC: In guix compile the GUI sequentially from everything else? #29914

Closed

Description

@maflcko

Compiling the GUI pulls in quite a few dependencies, which could theoretically include backdoors that are leaked into bitcoind (or other non-GUI utils) as well.

A possible mitigation would be to compile the GUI in a separate guix container from the rest of the binaries. The downside would be that the node library, and the depends dependencies of the node library would have to be compiled twice, but the overhead may be worth it?

(I won't be working on this, but I wanted to keep track of this in a brainstorming issue, as the topic has repeatedly come up)

Activity

  1. laanwj commented on Apr 22, 2024

    @laanwj
    Member

    FWIW in #29923 i've removed all the GUI specific build-time dependencies except for Qt itself.

  2. maflcko commented on Apr 23, 2024

    @maflcko
    MemberAuthor

    FWIW in #29923 i've removed all the GUI specific build-time dependencies except for Qt itself.

    Nice!

    qt is still a massive blob (and possibly a large attack surface for backdoors), so I guess sequential builds could still be considered, but the priority would be less urgent after 29923.

  3. laanwj commented on Apr 23, 2024

    @laanwj
    Member

    Sure, and there may still be other reasons to have seperate build step; the idea of fully static binaries for the non-GUI utilities was raised again at CoreDev. This is not possible with the GUI as it necessarily needs access to the dynamic linker. And as this might require different compile and linker flags, this would also effectively need two seperate builds.

  4. fanquake commented on Apr 24, 2024

    @fanquake
    Member

    fully static binaries

    Yea. I think I'm just going to start PR'ing related changes, so we can move forward with static builds separately from the GUI, and keep all it's deps / build tools out of the env.

  5. fanquake commented on Feb 18, 2026

    @fanquake
    Member

    It seems like what we would end with is something like:

    • Guix env with minimal manifest (bitcoind & utils only) tooling
    • Build depends with NO_QT=1
    • Build bitcoind and utils
    • Exit Guix
    • New Guix env with minimal manifest + Qt tooling/deps + any packaging tools (+ previously built bins)
    • Rebuild all of depends (likely forced given profile/env has changed) with QT=1
    • Build bitcoin-qt & bitcoin-gui
    • Build installers / perform packing
    • Exit Guix env

    Some other thoughts:

    • We'd (given static builds) end up with different sets of flags when building bitcoind + utils and bitcoin-qt / bitcoin-gui.
    • The security and symbol check scripts would need to be refactored to accomodate different binary types. i.e static vs not.
    • Building the installers (i.e windows) seems doable, as we can manually run NSIS on the bins. I'm not sure if that becomes easier, or harder if we migrate to CPack (a todo according to cmakelists).
  6. added a commit that references this issue on Jul 21, 2026
    d673ca7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions