← Back to issue list

snapcraft ignores version specific build-packages

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1887960
Type
issue
State
closed
Author
~adam-collard
Labels
—
Created
Updated
Closed

Current evaluation

snapcraft ignored version specifiers in build-packages (e.g. foo=version). Fixed by snapcore/snapcraft PR #3221 (commit 727c46f22), merged into snapcraft to pass requested package versions to apt-get install.

Resolution: closed resolved

Reason: Maintainer @sergiusens pointed to snapcore/snapcraft PR #3221, which was merged as commit 727c46f22 ("repo: install requested build-package versions"). The change makes snapcraft pass the user-prescribed version to apt-get install, resolving the TODO noted in internal/repo/_deb.py.

Evaluated by: mr-cal-bot

No scores available.

Issue body

snapcraft, version 4.1.1 Given a snap with a part with version specifiers on the debian packages in build-packages e.g. build-packages: - foo=version foo will be installed, but not at the version specified. internal/repo/_deb.py:367 contains this TODO # TODO: this matches prior behavior, but the version is not # being passed along to apt-get install, even if prescribed # by the user. We should specify it upon user request.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved snapcraft ignored version specifiers in build-packages (e.g. foo=version). Fixed by snapcore/snapcraft PR #3221 (commit 727c46f22), merged into snapcraft to pass requested package versions to apt-get install.
stealth/space-bunny-alpha — closed resolved Fixed by snapcore/snapcraft#3221 (commit 727c46f22), merged into master: deb build-packages are now installed at the user-specified version, with apt downgrades allowed.
stealth/space-bunny-alpha — closed resolved Fixed ignored build-package version specifiers in merged PR canonical/snapcraft#3221 (commit 727c46f22), which passes requested versions to apt and allows downgrades.
qwen/qwen3.6-35b-a3b — — Abandoned. The report noted snapcraft ignores version specifiers in build-packages, referencing a code TODO. No fix, merge, or developer comments were recorded.
qwen/qwen3.6-35b-a3b — — Abandoned and closed without resolution. Version specifiers in build-packages remain ignored, as the referenced TODO in _deb.py was never implemented.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Snapcraft ignores version specifiers in build-packages, as noted in an internal TODO. With zero comments and no follow-up, the report was abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. snapcraft ignores version specifiers in build-packages. The unimplemented logic in internal/repo/_deb.py remains unfixed, with no pull request or workaround provided.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#3221 (confidence 95%)

    PR referenced by the closing maintainer comment; merged as commit 727c46f22 titled 'repo: install requested build-package versions', directly addressing the ignored version specifiers in build-packages.

Related issues

Issue Project State Summary Similarity
#1666656 stage-packages doesn't support versions snapcraft (launchpad) closed Fixed in canonical/snapcraft#1157, merged as commit ef4076821 ('repo: support versioned stage-packages'), adding version-specifier support so entries like hello=2.10-1 resolve instead of erroring.
70%