Vala and Snapcraft. Issues with a library part in Vala.

Joe Talbott joe.talbott at canonical.com
Wed Feb 1 21:19:19 UTC 2017


I think you'll want something along the lines of:

parts:
    mylib-x:
        ...
    mylib-y:
        ...
        after: [mylib-x]

This will include both mylib-x and mylib-y in your snap and ensure
that mylib-x is built before mylib-y is.

Joe

On Wed, Feb 1, 2017 at 10:01 AM, Luca Dionisi <luca.dionisi at gmail.com> wrote:
> On Wed, Feb 1, 2017 at 1:29 PM, Gustavo Niemeyer <gustavo at niemeyer.net> wrote:
>> Yeah, besides "build-packages" there's also "stage-packages" which does
>> exactly that.
>
> I think you misunderstood. "build-packages" puts a deb package in the
> build host, "stage-packages" puts a deb package in stage.
> But I don't have a deb package of mylib-y.
> I want snapcraft to build both mylib-y and mylib-x, where mylib-x
> depends on mylib-y being installed.
> What I want is snapcraft to put the "install" pieces of the part
> "mylib-y" in the build host too (other than in stage).
> Is that doable?
> Or... wait, are you telling me that I can put the name of another
> "part" in "build-packages" instead of the name of a deb?
>
>
>> On Wed, Feb 1, 2017 at 8:34 AM, Luca Dionisi <luca.dionisi at gmail.com> wrote:
>>>
>>> This is another solution that I thought of.
>>> I want to put the library mylib-y (the one that is needed by mylib-x)
>>> both in the ./stage tree and in the /usr/ prefix of the host system
>>> where I prepare the snap.
>>> Is there a way to tell snapcraft to do so?
>>> It should be similar to the way one can use 'build-packages' to
>>> install deb packages on the build host.
>>>
>>> --Luca
>
> --
> 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