fix(snap): remove libapt-pkg-dev and stale comment now that python3-apt is a stage-package
Metadata
Current evaluation
Merged canonical/snapcraft#6382, removing obsolete libapt-pkg-dev from snap build dependencies and correcting the stale python-apt source-build comment.
Resolution: closed resolved
Reason: PR #6382 was merged, completing the cleanup after python3-apt had moved to a stage-package. It removed the no-longer-needed libapt-pkg-dev dependency and updated the associated comment.
Evaluated by: mr-cal-bot
No scores available.
Issue body
`uv` now hard-rejects non-PEP 625 source distributions (`.tar.xz`), breaking `python-apt` installs via `uv pip`. The `python3-apt` part already addresses this by installing `python3-apt` as a stage-package and organizing it into the venv's `site-packages` — but two artifacts from the old source-build approach remained.
## Changes
- **`build-deps`**: remove `libapt-pkg-dev` — only needed to compile `python-apt` from source
- **`snapcraft` part**: update stale comment that still referenced python-apt as a source build dependency
Replicates the fix from [canonical/charmcraft#2818](https://github.com/canonical/charmcraft/pull/2818).
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/snapcraft#6382, removing obsolete libapt-pkg-dev from snap build dependencies and correcting the stale python-apt source-build comment. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in canonical/snapcraft#6382, removing the obsolete libapt-pkg-dev build dependency and correcting a stale comment after python3-apt became a stage-package. | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
5
Complexity:
5
Confidence:
90
|
needs review | Removes unused libapt-pkg-dev build dependency and updates a stale snapcraft comment after switching to python3-apt as a stage-package. Currently awaiting maintainer review with passing CI. |
Update history
| Date | Change |
|---|---|
| closed | |
| created |
Related work
-
Related To:
canonical/charmcraft#2818
(confidence 99%)
The merged Charmcraft PR introduced the python3-apt stage-package approach that Snapcraft#6382 references and cleans up after.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6383 fix(snap): remove libapt-pkg-dev now that python3-apt is a stage-package | snapcraft | closed | 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. | |
| #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. | |
| #5521 build: drop python3-pkg-resources | snapcraft | merged | Merged in canonical/snapcraft#5521 (commit a4427d716), removing the obsolete python3-pkg-resources stage package after the pkg_resources migration in #4490. | |
| #311 snap: remove plugs and add python3-dev build-package | charmcraft | merged | Merged #311 via 91efe74a: removed unsupported classic-snap plugs and added python3-dev with build flags for non-amd64 source builds. |