Source: webkit2gtk
Version: 2.18.2-1
Tags: upstream patch
User: helm...@debian.org
Usertags: rebootstrap

webkit2gtk also fails to cross build from source, because it searches
for geoclue-2.0.pc with the build architecture pkg-config which is
simply hard coded in the upstream build system. After turning it
substitutable, it uses the cross pkg-config and finds geoclue-2.0.pc.
Please consider applying the attached patch and closing this bug when
doing so, even though it still doesn't cross build after applying it.

Helmut
Index: webkit2gtk-2.18.2/Source/WebCore/PlatformGTK.cmake
===================================================================
--- webkit2gtk-2.18.2.orig/Source/WebCore/PlatformGTK.cmake
+++ webkit2gtk-2.18.2/Source/WebCore/PlatformGTK.cmake
@@ -188,7 +188,8 @@
     list(APPEND WebCore_DERIVED_SOURCES
         ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c
     )
-    execute_process(COMMAND pkg-config --variable dbus_interface geoclue-2.0 OUTPUT_VARIABLE GEOCLUE_DBUS_INTERFACE)
+    include(FindPkgConfig)
+    execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable dbus_interface geoclue-2.0 OUTPUT_VARIABLE GEOCLUE_DBUS_INTERFACE)
     add_custom_command(
          OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.h
          COMMAND gdbus-codegen --interface-prefix org.freedesktop.GeoClue2. --c-namespace Geoclue --generate-c-code ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface ${GEOCLUE_DBUS_INTERFACE}

Reply via email to