GNOME Bugzilla – Bug 731826
vapigen fails to find Rsvg-2.0-custom.vala when building out-of-source
Last modified: 2016-09-20 14:44:41 UTC
Created attachment 278658 [details] [review] Patch fixing the issue by using fully-qualified path How to reproduce: mkdir _build cd _build ../configure -C --enable-vala make V=1 This result in the following error: make[2]: Entering directory '/tmp/librsvg/_build' /usr/bin/vapigen-0.24 --library librsvg-2.0 --metadatadir .. --pkg gio-2.0 --pkg cairo Rsvg-2.0.gir Rsvg-2.0-custom.vala error: Rsvg-2.0-custom.vala not found Generation failed: 1 error(s), 0 warning(s) /usr/share/vala/Makefile.vapigen:61: recipe for target 'librsvg-2.0.vapi' failed make[2]: *** [librsvg-2.0.vapi] Error 1 I've been able to fix this via prepending the 'Rsvg-2.0-custom.vala' file path in Makefile.am with $(srcdir).
Hmm. IMHO this is a bug in the Makefile.vapigen, it should automatically adapt to *_FILES being a mix of srcdir and builddir files.
(In reply to comment #1) > Hmm. IMHO this is a bug in the Makefile.vapigen, it should automatically adapt > to *_FILES being a mix of srcdir and builddir files. How? Is there anything which does?
Almost everything in automake is able to automatically cope with a mix of srcdir and builddir files, e.g. most importantly _SOURCES .
Relevant: https://bugzilla.gnome.org/show_bug.cgi?id=725497
Can this be committed or should we wait for bug 725497 instead?
*** This bug has been marked as a duplicate of bug 725497 ***