First, this change switches the travis CI env from trusty to xenial + silences a small shellcheck warning. Most importantly though we also modify the stage and prime steps to no longer make them segfault on non-bionic systems.
There seems to be an incompatibility in glibc between what we have in the bootstrapped part and the host system. Since snapcraft by default includes the part's install directories in both LD_LIBRARY_PATH and PATH, this causes chaos and results in everything segfaulting. As a workaround we override the stage and prime steps to not use the part's paths at all as we don't actually need them.
First, this change switches the travis CI env from trusty to xenial + silences a small shellcheck warning. Most importantly though we also modify the stage and prime steps to no longer make them segfault on non-bionic systems. There seems to be an incompatibility in glibc between what we have in the bootstrapped part and the host system. Since snapcraft by default includes the part's install directories in both LD_LIBRARY_PATH and PATH, this causes chaos and results in everything segfaulting. As a workaround we override the stage and prime steps to not use the part's paths at all as we don't actually need them.