Source: libayatana-appindicator-glib
Version: 2.0.3-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

libayatana-appindicator-glib fails to cross build from source, because
its upstream build system hard codes the build architecture vapigen. It
correctly discovers the host's vapigen.pc package configuration, but
does not consume the provided vapigen location to discover the correct
vapigen executable path. I'm attaching a patch that correct this. Please
consider applying it and forwarding it upstream as it makes
libayatana-appindicator-glib cross buildable.

Helmut
--- libayatana-appindicator-glib-2.0.3.orig/bindings/vala/CMakeLists.txt
+++ libayatana-appindicator-glib-2.0.3/bindings/vala/CMakeLists.txt
@@ -6,7 +6,12 @@
 
 find_package(PkgConfig REQUIRED)
 pkg_check_modules(Vala REQUIRED vapigen)
-find_program(VAPI_GEN NAMES vapigen)
+pkg_get_variable(_pc_vapigen_executable vapigen vapigen)
+if(_pc_vapigen_executable)
+    set(VAPI_GEN "${_pc_vapigen_executable}")
+else()
+    find_program(VAPI_GEN NAMES vapigen)
+endif()
 
 add_custom_command (
     OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/ayatana-appindicator-glib.vapi"

Reply via email to