Skip to content

build-installers: include gpg helper programs and their DLLs - #766

Closed
dscho wants to merge 3 commits into
mainfrom
fix-build-installers-gpg-helpers
Closed

dscho wants to merge 3 commits into
mainfrom
fix-build-installers-gpg-helpers

Conversation

@dscho

@dscho dscho commented Nov 5, 2026

Copy link
Copy Markdown
Member

I just tried to drop the 64-bit variants of the OpenSSL packages from Git for Windows' Pacman repository, by running the remove-packages-from-pacman-repository workflow, but it failed. The symptoms point to a Catch-22 in running gpg to list the contents of the gnupg package so that those helpers that are required are included in the SDK artifact. Let's fix that.

The `build-installers` SDK artifact is a sparse SDK checkout that
includes gpg and friends. Since it already includes everything required
to run gpg, Git for Windows' automation uses it in GitHub workflows to
run Pacman and GnuPG operations.

That sparse checkout includes `gpg.exe` and `gpgconf.exe`, but is
missing a couple of helper programs to which gpg delegates to at
runtime, and even misses some of the DLLs those helpers load. As a
result, the `remove-packages-from-pacman-repository.yml` workflow in
`git-for-windows/git-for-windows-automation` currently fails to import
the key it needs to sign and verify packages:

  gpg: error running '/usr/bin/dirmngr': probably not installed
  gpg: failed to start dirmngr '/usr/bin/dirmngr': Configuration error
  gpg: can't connect to the dirmngr: Configuration error
  gpg: keyserver receive failed: No dirmngr

The reason: `gpg --recv-keys` delegates keyserver access to `dirmngr`,
and `gpgconf --kill` delegates to `gpg-connect-agent`; neither is
present. Add them and the DLLs and EXEs they need to the sparse
checkout.

Practically, these EXEs and DLLs should be included in the
`build-installers` artifact because they should be enumerated by the
`make-file-list.sh`, which lists the contents of the Pacman packages
from which to construct Git for Windows set of files. However, that
requires Pacman to work, which requires gpg to work...

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho
dscho marked this pull request as draft November 5, 2026 13:47
dscho added 2 commits November 5, 2026 15:28
Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
@dscho

dscho commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

I actually think that this is not necessary because the cache 22 only occurs if the pacman call is run in make-file-list.sh, which should never trigger for build installers (because the SDK should contain all the necessary patches to allow for time-traveling SDKs for embargoed releases).

So this PR is wrong. GPT-6.1 Sol was wrong. Shocking, I know.

@dscho dscho closed this Nov 11, 2026
@dscho
dscho deleted the fix-build-installers-gpg-helpers branch November 11, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant