← Back to issue list

build-packages doesn't support specifying a version

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1671939
Type
issue
State
closed
Author
~joetalbott
Labels
Created
Updated
Closed

Current evaluation

Abandoned. Closed without comments or documented resolution. Snapcraft does not support version pinning in build-packages due to underlying apt cache limitations.

Suggested action:

No scores available.

Issue body

There is no way to install a specific version of a build-package. KeyError: 'make=4.1-6' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/cache.py", line 198, in __getitem__ rawpkg = self._cache[key] KeyError: 'make=4.1-6' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/josepht/src/git/snapcraft/snapcraft/internal/repo.py", line 86, in install_build_packages if not apt_cache[pkg].installed: File "/usr/lib/python3/dist-packages/apt/cache.py", line 200, in __getitem__ raise KeyError('The cache has no package named %r' % key) KeyError: "The cache has no package named 'make=4.1-6'" During handling of the above exception, another exception occurred: Traceback (most recent call last): File "../../../bin/snapcraft", line 31, in <module> snapcraft.main.main() File "/home/josepht/src/git/snapcraft/snapcraft/main.py", line 244, in main return run(args, project_options) File "/home/josepht/src/git/snapcraft/snapcraft/main.py", line 280, in run lifecycle_command, project_options, args['<part>']) File "/home/josepht/src/git/snapcraft/snapcraft/internal/lifecycle.py", line 111, in execute build_packages = repo.install_build_packages(config.build_tools) File "/home/josepht/src/git/snapcraft/snapcraft/internal/repo.py", line 91, in install_build_packages '\'build-packages\': {}'.format(str(e))) OSError: Could not find a required package in 'build-packages': "The cache has no package named 'make=4.1-6'"

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned. Closed without comments or documented resolution. Snapcraft does not support version pinning in build-packages due to underlying apt cache limitations.
qwen/qwen3.6-35b-a3b Abandoned. Specifying versions in build-packages causes a KeyError during installation. The feature remains unsupported.
qwen/qwen3.6-35b-a3b Closed as abandoned due to zero comments and prolonged inactivity. Version pinning for build-packages was not implemented.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution or comments, indicating abandonment. Build-packages failed when specifying package versions due to an apt cache KeyError. No fix or merge was implemented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1666656 stage-packages doesn't support versions snapcraft (launchpad) closed Closed without resolution. The limitation was superseded by updated Snapcraft packaging logic in later releases.
76%
#1887960 snapcraft ignores version specific build-packages snapcraft (launchpad) closed Abandoned and closed without resolution. Version specifiers in build-packages remain ignored, as the referenced TODO in _deb.py was never implemented.
75%