Snapcraft should be able to run in clean environment with pbuilder/cowbuilder
Metadata
Current evaluation
Closed without implementation. Maintainers recommended using LXC/LXD for clean builds instead of integrating pbuilder/cowbuilder, requesting a new issue if the alternative is insufficient.
Suggested action: —
No scores available.
Issue body
I was trying out snapcraft current head and found that it is not the tool i can use at the moment, as i cannot compile everything quickly on the target architecture in a clean environment.
For debian packages we use a combination of cowbuilder, cowdancer and pbuilder to provide clean repeatable build environment on the various target environments.
It should be evaluated how building of snaps can be integrated with gear like that so it is possible to build snaps with similar gear. Ultimatively something like "ARCH=armhf snapcraft --cowbuilder ..." should produce snaps using the defined environment.
Launchpad Details: [#LP1480144](https://bugs.launchpad.net/bugs/1480144) Simon Eisenmann - 2015-07-31 05:28:36 -0300
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. Maintainers recommended using LXC/LXD for clean builds instead of integrating pbuilder/cowbuilder, requesting a new issue if the alternative is insufficient. | |
| qwen/qwen3.6-35b-a3b | — | — | Requested pbuilder/cowbuilder integration was closed. Maintainers suggested using lxc/lxd for clean builds instead and asked for a more specific issue if needed. The feature was deferred. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. Maintainers declined direct pbuilder/cowbuilder integration, recommending clean LXC/LXD containers instead, and requested a more specific report if the alternative failed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without core implementation. A contributor created a custom plugin for cross-architecture builds. Maintainers recommended using lxc/lxd for clean environments instead and closed the issue, requesting a new report if lxd proves insufficient. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without adding pbuilder/cowbuilder support. Maintainers recommended using LXC/LXD for clean builds instead and asked the author to file a new issue if LXC/LXD proves insufficient. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1570706 Snapcraft cleanbuild command doesn't work | snapcraft (launchpad) | closed | Closed without resolution, likely abandoned or superseded. The cleanbuild command failed due to LXC hash format incompatibility and container stop errors. | |
| #1480144 cleanbuild (through lxd) | snapcraft (launchpad) | closed | Closed as a wishlist item. The request to integrate snapcraft with clean build environments like cowbuilder or LXD was abandoned due to lack of priority and activity. | |
| #1746612 Snapcraft cleanbuild doesn't work if you're not using the LXD snap | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft hardcodes the LXD snap path during cleanbuild, causing failures with deb-installed LXD. The report appears abandoned or superseded by updated Snapcraft versions that dynamically detect LXD installations. | |
| #1666735 snapcraft cleanbuild does not work with lxd installed via snap | snapcraft (launchpad) | closed | Closed without resolution or merge. The report notes snapcraft cleanbuild fails to detect LXD installed via snap, suggesting checks via snap list or lxc list instead of apt cache. No fix was implemented or documented. |