Source: libayatana-appindicator
Version: 0.5.94-1.1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

libayatana-appindicator fails to cross build from source, because it
uses the build architecture vapigen. Since the library search path is
architecture-dependent, vapigen fails location dependencies as a result.
A triplet-prefixed vapigen should be used. The best way of discovering
the correct vapigen is detecting it from the vapigen.pc file. I'm
attaching a patch for your convenience. Please consider applying it and
forwarding it upstream.

Helmut
--- libayatana-appindicator-0.5.94.orig/cmake/FindVala.cmake
+++ libayatana-appindicator-0.5.94/cmake/FindVala.cmake
@@ -40,7 +40,15 @@
 	string (REGEX MATCH "[.0-9]+" VALA_VERSION "${VALA_VERSION}")
 endif (VALA_COMPILER)
 
-find_program (VAPI_GEN "vapigen")
+pkg_check_modules(_pc_vapigen vapigen)
+if (_pc_vapigen_FOUND)
+	pkg_get_variable(_pc_vapigen_executable vapigen vapigen)
+endif (_pc_vapigen_FOUND)
+if (_pc_vapigen_executable)
+	set(VAPI_GEN "${_pc_vapigen_executable}")
+else (_pc_vapigen_executable)
+	find_program (VAPI_GEN "vapigen")
+endif (_pc_vapigen_executable)
 
 if (VAPI_GEN)
 	execute_process (COMMAND ${VAPI_GEN} --version

Reply via email to