← Back to issue list

chore(snap): remove libapt-pkg-dev since we no longer build python-apt

View original Github issue

Metadata

Project
rockcraft
Number
#1321
Type
pull request
State
open
Author
copilot-swe-agent
Labels
—
Created
Updated
Closed
—

Current evaluation

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.

Suggested action: keep open

Reason: This is a draft PR that @lengau noted needs the spread test issue resolved before it can be unmarked as draft. The change itself is trivially correct (removing an obsolete build-package), but the PR is blocked on CI and has been inactive for 70 days. Keeping it open allows the author to address the spread test failure when ready.

Evaluated by: mr-cal-bot

Impact: 5 Quick Win: 1 Complexity: 5 Confidence: 75 Actionability: 30

Issue body

Replicates the core of [canonical/charmcraft#2818](https://github.com/canonical/charmcraft/pull/2818): `uv` now hard-rejects sdists with non-PEP 625 filenames (`.tar.xz`), which breaks building `python-apt` from source. ## Changes - **`snap/snapcraft.yaml`**: Remove `libapt-pkg-dev` from top-level `build-packages` — only needed to compile `python-apt` from source, which is superseded by the existing `python3-apt` part that installs it as a stage-package - **`snap/snapcraft.yaml`**: Update stale `MAKEOPTS` comment that cited `python-apt` as a source-build example

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b
Impact: 5
Quick Win: 1
Complexity: 5
Confidence: 75
Actionability: 30
keep 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.
stealth/space-bunny-alpha
Impact: 15
Quick Win: 4
Complexity: 5
Confidence: 74
Actionability: 25
keep open Draft chore removing obsolete libapt-pkg-dev build-package from snap/snapcraft.yaml plus a stale MAKEOPTS comment; replicates charmcraft#2818. CI: 16 checks pass, lint/files and source-spread-tests fail; awaiting spread-test resolution.
stealth/space-bunny-alpha
Impact: 28
Quick Win: 7
Complexity: 10
Confidence: 57
Actionability: 27
keep open Removes libapt-pkg-dev from snap/snapcraft.yaml build-packages and fixes a stale MAKEOPTS comment; port of charmcraft#2818 after uv rejected python-apt sdist. Draft-style: source-spread-tests still failing per reviewer @lengau.
~deepseek/deepseek-pro-latest
Impact: 20
Quick Win: 6
Complexity: 5
Confidence: 85
Actionability: 30
keep open Removes obsolete libapt-pkg-dev build-package and updates stale MAKEOPTS comment; python3-apt is already installed as a stage-package part. Draft with failing source-spread-tests and lint/files CI.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 2
Complexity: 5
Confidence: 90
Actionability: 5
close superseded Removes the obsolete libapt-pkg-dev Snapcraft build dependency; repository metadata says this fix has already merged despite stale open-state and CI-failure data.
qwen3.6-35b-a3b-mtp-q6
Impact: 25
Quick Win: 24
Staleness: 45
Complexity: 5
Confidence: 85
keep 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.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 5
Confidence: 90
keep open Removes libapt-pkg-dev from snapcraft.yaml to resolve uv sdist compatibility issues. Currently a draft with failing CI checks and pending maintainer review.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 5
Confidence: 90
needs review Removes libapt-pkg-dev from snapcraft.yaml build-packages and updates a stale comment to align with uv's new PEP 625 requirements. Currently pending maintainer review with a minor CI lint failure.

Update history

Date Change
updated
created

Related work

  • Related To: canonical/charmcraft#2818 (confidence 90%)

    This PR explicitly replicates the core of charmcraft#2818 which made the same change.

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.
78%
#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.
77%
#6241 chore: remove snapcraft_legacy snapcraft merged Merged #6241 via commits ffb164b7a and 995f0a3bc, deleting snapcraft_legacy, obsolete specs, and legacy-only dependencies after its entry points were removed.
74%
#6035 chore!: remove deprecated commands snapcraft merged Merged as 3623601d7, removing deprecated Snapcraft commands and options and resolving #5674 (SNAPCRAFT-1196).
72%
#1078 chore!: remove deprecated APIs craft-application merged Merged PR #1078 as 3334f13e, removing eight deprecated APIs and fixing #1063. All CI checks passed, with local Snapcraft verification.
72%
#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.
71%
#6470 chore: remove unused errors snapcraft closed PR removing unused SnapcraftError subclasses was closed unmerged; superseded by reworking the branch layout and pushing directly to canonical/snapcraft.
70%