On Thu, 2 Feb 2017 16:22:52 +0100, Luca Dionisi wrote:
> Maybe I found my error. It is in (lack of) usage of data from
> pkg-config files. Thus it is not strictly related to snapcraft.
> When mylib-x is built (and staged) by snapcraft the corresponding
> mylib-x.pc file is saved in [...]/stage/[...]/pkgconfig and it states
> that "prefix" variable is [...]/stage/usr.
> When building mylib-y, which depends on mylib-x, the configure part
> read this pc file. Now, the makefile should use this "prefix" variable
> and add this line to the valac command:
>   --vapidir=$prefix/share/vala/vapi
> Since usually I install with prefix=/usr and the directory
> /usr/share/vala/vapi is searched by default by valac, the lack of this
> line was not a problem until now.

Does your configure have something like

    ./configure --with-extra-vapi-dir

?

If so, try doing

parts:
    my-part:
        source: ...
        plugin: autotools
        configflags:
            - --with-extra-vapi-dir=$SNAPCRAFT_STAGE/usr/share/vala/vapi


-- 
Sent using Dekko from my Ubuntu device

-- 
Snapcraft mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft

Reply via email to