On Wed, 18 Jan 2017 08:58:00 -0200, Gustavo Niemeyer wrote: > Hi Sergio, > > The question asked was actually how to get snapcraft to include > dependencies *inside the snap* so that it works as it does with strict > snaps, bundling the dependencies. > > Your response was about system libraries rather than bundled > in-snap libraries, I believe. > > This should definitely work fine, right?
Yes, there is a gotcha though wrt the question asked. Using `build-packages`, which install on the host -the usual `-dev` ones- means that the libraries they bring in need to be added as `stage-packages`. We added an optimization here where we crawl all elf files in `prime` and `ldd` them to see if anything would resolve outside the snap and bring those libraries in. This is not as easy with classic confinement as all those elf files are runpathed. I have slept on it though and think there is a way to do it, but it won't be as straightforward. -- Sent using Dekko from my Ubuntu device -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft