Source: gupnp-dlna
Version: 0.12.0-5
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
gupnp-dlna fails to cross build from source. When it runs vapigen,
Glib-2.0 is not being found. Until recently, vapigen was not aware of
the host architecture and therefore had no chance of finding it.
Recently though, Simon McVittie added triplet-prefixed vapigen to the
packages. Once using those, dependencies are being found. As a result,
we now need to search for vapigen using AC_PATH_TOOL rather than
AC_PATH_PROG. You'll find the requested change in the attached patch. It
is backwards compatible as AC_PATH_TOOL will fall back to using a bare
tool name if the prefixed one is not being found. I hope this is
acceptable upstream.
Helmut
--- gupnp-dlna-0.12.0.orig/m4/vapigen.m4
+++ gupnp-dlna-0.12.0/m4/vapigen.m4
@@ -27,7 +27,7 @@
# VALA_PROG_VAPIGEN([MINIMUM-VERSION])
# ------------------------------------
AC_DEFUN([GUPNP_PROG_VAPIGEN],
-[AC_PATH_PROG([VAPIGEN], [vapigen], [])
+[AC_PATH_TOOL([VAPIGEN], [vapigen], [])
AS_IF([test -z "$VAPIGEN"],
[AC_MSG_WARN([No Vala API Generator found. You will not be able to generate .vapi files.])],
[AS_IF([test -n "$1"],