From 575b2712f899a372bb48bbcd420b8b9f26722df8 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 29 Jan 2019 16:48:28 -0200 Subject: [PATCH] meson: make gir search on cross pkg-config --- .../dont-use-native-pkgocnfig-for-gir.patch | 14 ++++++++++++++ srcpkgs/meson/template | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/meson/patches/dont-use-native-pkgocnfig-for-gir.patch diff --git a/srcpkgs/meson/patches/dont-use-native-pkgocnfig-for-gir.patch b/srcpkgs/meson/patches/dont-use-native-pkgocnfig-for-gir.patch new file mode 100644 index 00000000000..42a8a9c6ca8 --- /dev/null +++ b/srcpkgs/meson/patches/dont-use-native-pkgocnfig-for-gir.patch @@ -0,0 +1,14 @@ +diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py +index bf49770..42473cb 100644 +--- mesonbuild/modules/gnome.py ++++ mesonbuild/modules/gnome.py +@@ -429,7 +429,7 @@ class GnomeModule(ExtensionModule): + try: + gir_dep = self.gir_dep or PkgConfigDependency('gobject-introspection-1.0', + state.environment, +- {'native': True}) ++ {'native': False}) + pkgargs = gir_dep.get_compile_args() + except Exception: + raise MesonException('gobject-introspection dependency was not found, gir cannot be generated.') + diff --git a/srcpkgs/meson/template b/srcpkgs/meson/template index b0451628c80..d869737fe17 100644 --- a/srcpkgs/meson/template +++ b/srcpkgs/meson/template @@ -1,7 +1,7 @@ # Template file for 'meson' pkgname=meson version=0.49.1 -revision=1 +revision=2 noarch=yes build_style=python3-module pycompile_module="mesonbuild"