Building snap using base-18 is broken with 2.39
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Wishlist
|
Sergio Schvezov |
Bug Description
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:/
I tried a simple patch to snapcraft:
https:/
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:/
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:/
Changed in snapcraft: | |
status: | New → Confirmed |
Changed in snapcraft: | |
status: | Confirmed → Fix Committed |
assignee: | nobody → Sergio Schvezov (sergiusens) |
importance: | Undecided → Wishlist |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
I managed to finally build the MAAS snap using this patch to snapcraft:
https:/ /pastebin. ubuntu. com/p/9CkKJCByY 2/