← Back to issue list

overlays: replace pychroot with non-magic chroot (CRAFT-558)

View original Github issue

Metadata

Project
craft-parts
Number
#139
Type
pull request
State
merged
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

PR #139 (CRAFT-558) merged as commit bcd40b3b, adding craft_parts/overlays/chroot.py as a simple, explicit chroot implementation to replace pychroot, removing the pychroot dependency.

Resolution: closed resolved

Reason: Merged to main as bcd40b3b ("Merge pull request #139 from cmatsuoka/overlay/simple-chroot"), containing commit 565b3a80 "overlays: replace pychroot with non-magic chroot" and 01e72dbf "requirements: remove pychroot". The new craft_parts/overlays/chroot.py module is still used by executor/part_handler.py and step_handler.py for overlay build steps, confirming the change shipped.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Add a simple, non-magic replacement for pychroot. Pychroot has numerous issues such as being too hackish, being restricted to certain interpreter versions and platforms, and not working in the CI environment. This implementation is much simpler and we can actually understand it. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved PR #139 (CRAFT-558) merged as commit bcd40b3b, adding craft_parts/overlays/chroot.py as a simple, explicit chroot implementation to replace pychroot, removing the pychroot dependency.
stealth/space-bunny-alpha — closed resolved Merged in #139 as bcd40b3b, replacing pychroot with a simpler explicit chroot implementation to remove interpreter/platform restrictions and CI incompatibilities.
qwen/qwen3.6-35b-a3b — — Merged changes replacing the hackish pychroot library with a simpler, non-magic chroot implementation. Resolves interpreter and platform restrictions, fixes CI failures, and passed reviewer approval.
qwen3.6-35b-a3b-mtp-q6 — — Merged a simpler, platform-independent chroot implementation to replace pychroot for overlays. This resolves version restrictions, platform limitations, and CI failures. Tests were restarted via a close/reopen cycle.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#134 overlay: add overlay package install (CRAFT-81) craft-parts merged Merged in commit 041af872, adding chrooted overlay package installation on each declaring part's upper layer so maintainer scripts run and package databases stay correct.
71%