Hello all, Something I'm snapping tries to run `awk`, which isn't included in the ubuntu-core snap. As such, I added gawk to stage-packages for my part:
parts: thing: ... stage-packages: - gawk Unfortunately, it didn't occur to me that awk is actually provided by update-alternatives, so just staging the package didn't provide me with `awk` on the PATH. It took me a few confusing build/examine iteration to realise what was going on, which lead to me adding: parts: thing: ... stage-packages: - gawk organize: usr/bin/gawk: usr/bin/awk This seems like a real wrinkle in the snapping experience; I both had to work out what the problem was, and then hack around it in a slightly uncomfortable way. What can we do to iron this out? My first thought was to add an `awk` part, which would allow you to specify the way in which you wanted awk to be provided (i.e. "this Ubuntu package", "build from this source") and ensure that awk would end up in the PATH of other things in the snap. My second thought was that creating a custom part for every Ubuntu package that uses update-alternatives is quite a lot of overhead. It's probably impractical, but parsing packages as they are staged to do just the `update-alternatives` step would be pretty cool. What do people think? Cheers, Dan
signature.asc
Description: OpenPGP digital signature
-- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft