fix: install gpg and dirmngr in core24 builds
Metadata
Current evaluation
Merged in Snapcraft 8.2.1 via #4754 (commit 712626448), installing gpg and dirmngr in core24 remote builds before using package-repositories.
Resolution: closed resolved
Reason: PR #4754 was merged as commit 712626448 and released in 8.2.1. It fixes #4740 by installing the missing gpg and dirmngr packages in core24 Launchpad build environments.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This commit mimicks the behavior for core22<= builds where gpg and dirmngr are installed at runtime for projects with package-repositories. The trigger for this commit is the fact that the environment where Snapcraft builds in Launchpad do _not_ have the 'dirmngr' package installed.
Unfortunately the strategy of bundling 'gpg' and 'dirmngr' as stage-packages in Snapcraft's own snap didn't work because gpg has the expected path to the 'dirmngr' executable hardcoded (always trying to call '/usr/bin/dirmngr').
Fixes #4740
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `tox run -m lint`?
- [ ] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`)
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged in Snapcraft 8.2.1 via #4754 (commit 712626448), installing gpg and dirmngr in core24 remote builds before using package-repositories. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #4754 (commit 712626448) makes the lifecycle install gpg and dirmngr at runtime for projects using package-repositories, fixing core24 Launchpad builds. Ships in 8.2.1; closes #4740. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #4754 installs gpg and dirmngr at runtime for core24 builds using package-repositories, fixing missing dependencies on Launchpad and closing #4740. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged to install gpg and dirmngr in core24 builds, fixing Launchpad dependency errors. The change replicates core22 behavior after bundling failed due to hardcoded paths. Approved by reviewers and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix to install gpg and dirmngr during core24 builds, resolving Launchpad package-repositories failures. Replaced a failed stage-package bundling approach caused by hardcoded paths. Closes #4740. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#4740
(confidence 100%)
The reported core24 package-repositories failure caused by missing gpg and dirmngr.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4740 `package-repositories` fail with the core24 base due to missing packages | snapcraft | closed | Fixed in merged PR #4754 (commit 712626448) and released in Snapcraft 8.2.1: core24 remote builds now install GPG/dirmngr before configuring package repositories. | |
| #4758 fix: use local keys for package-repos in core24 | snapcraft | merged | Merged PR #4758 (commit b8ff64b89) into hotfix/8.2, making core24 package-repositories use local signing keys; fixes issue #4743 where local key assets were ignored. | |
| #3293 project loader: install dirmngr prior to configuring package repositories | snapcraft | closed | Closed unmerged because identical fix snapcraft#3294 merged in commit e4a013fd4, installing dirmngr and gnupg before configuring package repositories. |