How to tell snapcraft to not copy and include system libraries?

Renato Filho renato.filho at canonical.com
Fri Dec 9 11:33:52 UTC 2016


Hey Sebastien,

This is a know problem we have the same problem when using
ubuntu-app-platform.  Sergio is already working on it. Maybe he can
give us more information about that.

Cheers.
Renato.

2016-12-09 7:40 GMT-03:00 Sebastien Bacher <seb128 at ubuntu.com>:
> Hey there,
>
> I'm working on a simple demo snap which looks like that
>
> snapcraft.yaml
>
> example/
>
>     sharedlib/
>
>     demoexe
>
>
> where sharedlib/ is an empty dir where the libraries I use are going to
> be provided by content-sharing and demoexe is a binary copied my system
>
>
> the snapcraft.yaml uses a simple part
>
> "  example:
>     plugin: dump
>     source: example"
>
> doing that I'm trying to get a minimalistic snap but it seems that
> snapcraft is trying to get too clever and looks at what libraries are
> used by the binary and copy them over from the system directories...
>
> is there a way to tell snapcraft to not do that? or a workaround I could
> use that would and still allow me to build my snap on launchpad (which
> means not a manual edit of the prime on redoing that step locally)?
>
>
> Cheers,
>
> Sebastien Bacher
>
>
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft




More information about the Snapcraft mailing list