Handling update-alternatives

Dan Watkins daniel.watkins at canonical.com
Fri Aug 5 10:25:18 UTC 2016


On 05/08/16 11:00, John Lenton wrote:
> On 5 August 2016 at 10:20, Dan Watkins <daniel.watkins at canonical.com> wrote:
>> Something I'm snapping tries to run `awk`, which isn't included in the
>> ubuntu-core snap
> 
> awk *is* in the ubuntu-core snap. What's happening is bug #1580018:
> you've used update-alternatives on the host to switch to an awk that
> is different to the one in core. If you can live with mawk instead of
> gawk on the host (at least during the build) things will work.

The snapped program calls /usr/bin/awk at runtime, so I'd presumably
need mawk to be installed in the host at runtime as well?

(AIUI, /usr/bin/awk is a symlink to /etc/alternatives/awk which gets
resolved against the host's /etc.  The host's /etc/alternatives/awk
points at /usr/bin/[gm]awk which is then resolved against the snap's
view of the world.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160805/1c5ed081/attachment.sig>


More information about the Snapcraft mailing list