Building snap using base-18 is broken with 2.39
Metadata
Current evaluation
Closed without an upstream fix; the reporter built MAAS with base-18 using a local Snapcraft patch, but linked no resolving PR or commit.
Resolution: closed stale
Reason: The final 2018-03-06 comment reports success only with the reporter's own patch. No resolving Snapcraft PR, commit, release, or maintainer explanation was recorded, leaving the upstream regression unaddressed.
Evaluated by: mr-cal-bot
No scores available.
Issue body
We use base-18 when building/installing the MAAS snap, since we'll target bionic for the next MAAS release.
Things worked fine, until snapcraft 2.39 was released. Now building the MAAS snap fails:
https://paste.ubuntu.com/p/Rx7f42K2DB/
I tried a simple patch to snapcraft:
https://paste.ubuntu.com/p/s2t3wct5J3/
This made the build succeed, but the resulting snap was broken. The python scripts couldn't find the non-system modules. Seems like the environment isn't set up, since the '/usr/bin/env python3' shebang got expanded to /usr/bin/python3. Further more, after manually putting the right shebang, the scripts failed like this:
https://paste.ubuntu.com/p/G3dsTh33Fg/
The file libssl.so.1.1 is in the snap, but after some debugging I noticed that LD_LIBRARY_PATH isn't being set.
This problem seem to be related to building against base-18 on bionic. I tried building MAAS 2.3 with snapcraft 2.39 on xenial (against the core base), and that still works.
You can reproduce this bug by running building a snap of https://git.launchpad.net/maas:master, using the attached base-18 snap for the base.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Closed without an upstream fix; the reporter built MAAS with base-18 using a local Snapcraft patch, but linked no resolving PR or commit. | |
| stealth/space-bunny-alpha | — | closed stale | Snapcraft 2.39 base-18 builds on Bionic failed; the reporter later built MAAS with a local patch, but no upstream PR or commit resolving the report is recorded. | |
| stealth/space-bunny-alpha | — | closed stale | A local patch let the reporter build MAAS on base-18/Bionic; no upstream Snapcraft fix was linked, and the issue was later closed after inactivity. | |
| stealth/space-bunny-alpha | — | closed stale | Closed with no recorded fix, linked PR, or maintainer explanation after the Snapcraft 2.39 base-18-on-Bionic regression was left inactive for years. | |
| qwen/qwen3.6-35b-a3b | — | — | Snapcraft 2.39 breaking base-18 builds due to shebang expansion and missing LD_LIBRARY_PATH was closed without resolution or comments, indicating the report was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | snapcraft 2.39 broke base-18 builds on bionic due to shebang expansion and missing LD_LIBRARY_PATH. The report was closed without resolution, likely abandoned or superseded by newer base versions. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or merge, likely abandoned or superseded by newer snapcraft versions. The report detailed snapcraft 2.39 breaking base-18 builds due to incorrect shebang expansion and missing LD_LIBRARY_PATH. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. Snapcraft 2.39 broke base-18 builds via incorrect shebang expansion and missing LD_LIBRARY_PATH. No fix or comments were provided. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1839604 build-base seems broken | snapcraft (launchpad) | open | Closed as implemented: current Snapcraft supports `base: bare` with a required `build-base`, including core22/core24/core26, and documents the configuration. | |
| #4246 Reported error message building base: core18 with newer snapcrafts is wrong | snapcraft | closed | Closed without implementation after a maintainer confirmed the unsupported-base error also affected core17 and suggested clearer wording; no resolving PR or commit was linked. | |
| #1835532 snapcraft behavior for type: base | snapcraft (launchpad) | closed | Implemented build-base support for base snaps; the proposed branch successfully built core20 using core18 before the issue was closed. |