repo: install requested build-package versions
Metadata
Current evaluation
Merged PR #3221 (commit 727c46f22) restored installation of versioned build packages, using --allow-downgrades so requested apt versions are honored.
Resolution: closed resolved
Reason: PR #3221 was merged into main as commit 727c46f22. It explicitly passes requested build-package versions to apt-get and permits downgrades.
Evaluated by: mr-cal-bot
No scores available.
Issue body
It either was never implemented, or has been broken for a long time.
However, it is documented as supported, so install the
build-package versions as requested.
This requires passing '--allow-downgrades' to apt, in case the user
changes the desired build-package. Additionally, now the version
for each apt package is explicitly specified for apt-get install.
LP: #1887960
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] 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 `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3221 (commit 727c46f22) restored installation of versioned build packages, using --allow-downgrades so requested apt versions are honored. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged snapcore/snapcraft#3221 (commit 727c46f22), adding requested build-package versions to apt installs and allowing apt downgrades when versions change. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged fix for unimplemented build-package version installation. Explicitly specifies apt package versions and enables downgrades to resolve LP: #1887960. Approved and passed CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix to install requested build-package versions by explicitly specifying apt package versions and adding the --allow-downgrades flag. Resolves LP: #1887960 and is available in edge/pr-3221. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3411 repo: only install build packages marked for installation | snapcraft | merged | Merged PR #3411 in commit e5f3422af, limiting apt build-package installation to packages explicitly marked for installation, excluding those marked for deletion. | |
| #3086 repo: restore marked-install strategy for apt-cache | snapcraft | merged | Merged PR #3086 (17cc75aae), restoring AptCache marked installs for build and stage packages and fixing primed-stage-packages name/version parsing from ':' to '='. | |
| #3915 legacy: install unpinned build packages | snapcraft | merged | Merged PR #3915 as commit 3a54031cb, changing legacy build-package installation to use unpinned packages and capture installed versions, avoiding apt downgrades or removals. | |
| #3035 repo: fix resolution of virtual build packages | snapcraft | merged | Merged PR #3035 in commit 9e9290554, restoring virtual build-package resolution, preserving versions, logging resolved packages, and adding unit and spread tests. | |
| #2023 repo: catch error due to broken build packages | snapcraft | merged | Merged PR #2023 (commit aa8f5f2b4) catches failed build-package installation and reports apt dependency conflicts via BuildPackagesNotInstalledError. |