fix(snap): remove libapt-pkg-dev now that python3-apt is a stage-package
Metadata
Current evaluation
PR #6383 was merged, dropping the redundant libapt-pkg-dev build-package from snap/snapcraft.yaml now that python3-apt is installed via stage-packages, and refreshing the stale MAKEOPTS comment.
Resolution: closed resolved
Reason: The PR itself carried the fix and was merged into main (Canonical CLA passing, no failing checks), removing libapt-pkg-dev from build-deps and updating the MAKEOPTS comment in snap/snapcraft.yaml. The redundancy existed because the python3-apt part installs it as a stage-package, so source-compiling python-apt (which uv now rejects due to non-PEP 625 .tar.xz filenames) was no longer needed.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | PR #6383 was merged, dropping the redundant libapt-pkg-dev build-package from snap/snapcraft.yaml now that python3-apt is installed via stage-packages, and refreshing the stale MAKEOPTS comment. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #6383, removing redundant libapt-pkg-dev from the snap build and updating the stale MAKEOPTS comment. | |
| 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 work
-
Related To:
canonical/charmcraft#2818
(confidence 85%)
Cited in the PR body as the equivalent charmcraft change this mirrors.
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 canonical/snapcraft#6382, removing obsolete libapt-pkg-dev from snap build dependencies and correcting the stale python-apt source-build comment. | |
| #2850 fix(snap): install python3-apt as a stage-package instead of building… | charmcraft | merged | Merged PR #2850 as commit e6edb4c6, replacing the incompatible python-apt source build with a dedicated python3-apt stage-package for snap builds. | |
| #2818 fix(snap): install python3-apt as a stage-package instead of building from source | charmcraft | merged | Merged PR canonical/charmcraft#2818 by lengau: snap build no longer builds python-apt from source via uv; python3-apt added to charmcraft-libs stage-packages and organized into the venv site-packages. Removed requirements-noble.txt and libapt-pkg-dev. | |
| #1321 chore(snap): remove libapt-pkg-dev since we no longer build python-apt | rockcraft | open | Draft PR removing obsolete libapt-pkg-dev from snap/snapcraft.yaml; replicates charmcraft#2818. CI: 16 pass, lint/files and source-spread-tests fail; awaiting spread-test resolution per maintainer comment. | |
| #401 fix(snap): install python3-apt as a stage-package instead of building from source | imagecraft | closed | Closed unmerged. Copilot's port of charmcraft#2818 (python3-apt as a stage-package instead of a rejected .tar.xz source build) was dismissed by @lengau as "not enough of a change to bother"; no code landed in imagecraft. |