← 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

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.

Suggested action: keep open

Reason: This is a draft PR with a specific blocker — the maintainer @lengau noted the spread test issue must be resolved before unmarking as draft. The change itself is valid: libapt-pkg-dev is only needed to compile python-apt from source, but the snapcraft.yaml already has a python3-apt part that installs it as a stage-package. The PR has maintainer engagement and a clear path forward.

Impact: 25 Quick Win: 23.75 Staleness: 45 Complexity: 5 Confidence: 85

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
qwen3.6-35b-a3b-mtp-q6
Impact: 25
Quick Win: 23.75
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

  • Likely Fixed By: canonical/charmcraft#2818 (confidence 90%)

    This PR replicates the core change from charmcraft#2818, which was merged and fixed the same issue in charmcraft by removing libapt-pkg-dev and installing python3-apt as a stage-package.

Related issues

Issue Project State Summary Similarity
#6383 fix(snap): remove libapt-pkg-dev now that python3-apt is a stage-package snapcraft closed 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.
77%
#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.
72%