← Back to issue list

fix(snap): remove libapt-pkg-dev now that python3-apt is a stage-package

View original Github issue

Metadata

Project
snapcraft
Number
#6383
Type
pull request
State
closed
Author
Copilot
Labels
Created
Updated
Closed

Current evaluation

Merged a fix to remove redundant libapt-pkg-dev from snapcraft build dependencies, resolving uv source distribution build failures by relying on the python3-apt stage-package.

Suggested action:

No scores available.

Issue body

`uv` now hard-rejects source distributions with non-PEP 625 filenames (`.tar.xz`), which breaks building `python-apt` from source. Snapcraft already has a dedicated `python3-apt` part that installs it via `stage-packages`, making `libapt-pkg-dev` redundant. ## Changes - **`snap/snapcraft.yaml`**: Drop `libapt-pkg-dev` from `build-deps` build-packages — it was only needed to compile `python-apt` from source - **`snap/snapcraft.yaml`**: Update stale `MAKEOPTS` comment from "things like python-apt" to reflect actual source-built packages (cryptography, pygit2) Mirrors the equivalent fix in charmcraft: https://github.com/canonical/charmcraft/pull/2818

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a fix to remove redundant libapt-pkg-dev from snapcraft build dependencies, resolving uv source distribution build failures by relying on the python3-apt stage-package.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 10
Confidence: 85
needs review Removes redundant libapt-pkg-dev build dependency from snapcraft.yaml to resolve python-apt source build failures. Updates a stale comment. Awaiting maintainer review with passing CI.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 5
Confidence: 90
needs review Removes redundant libapt-pkg-dev build dependency from snapcraft.yaml since python3-apt is now a stage-package. Updates a stale comment. Currently pending maintainer review with passing CI.

Update history

Date Change
closed
updated
created

Related issues

Issue Project State Summary Similarity
#6382 fix(snap): remove libapt-pkg-dev and stale comment now that python3-apt is a stage-package snapcraft closed Merged to remove the unused libapt-pkg-dev build dependency and update a stale comment, reflecting the switch to python3-apt as a stage-package.
86%
#2850 fix(snap): install python3-apt as a stage-package instead of building… charmcraft merged Merged. Fixes snap build failures from uv rejecting non-compliant python-apt sources by installing python3-apt as a distro stage-package and isolating it in a dedicated snap part. Also fixes ruff lint errors.
85%
#2818 fix(snap): install python3-apt as a stage-package instead of building from source charmcraft merged Merged. Fixed snap build failures from uv rejecting non-PEP 625-compliant python-apt sources by installing python3-apt as an apt stage-package instead of compiling from source. Removed requirements-noble.txt and updated snapcraft configuration.
85%
#1321 chore(snap): remove libapt-pkg-dev since we no longer build python-apt rockcraft open Removes unnecessary libapt-pkg-dev build dependency from snapcraft.yaml since python-apt is installed as a stage-package. Draft PR pending spread test fix.
77%
#401 fix(snap): install python3-apt as a stage-package instead of building from source imagecraft closed Closed and rejected without merging. A maintainer dismissed the snap fix to stage python3-apt instead of building from source as insufficiently impactful.
77%
#3394 requirements: rely on host's python3-apt snapcraft closed Merged into master. Updates snapcraft to use the host's python3-apt, removes it from requirements.txt, and fixes a snap command entry warning.
71%