summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/meson/meson/0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/meson/meson/0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch')
-rw-r--r--meta/recipes-devtools/meson/meson/0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch48
1 files changed, 22 insertions, 26 deletions
diff --git a/meta/recipes-devtools/meson/meson/0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch b/meta/recipes-devtools/meson/meson/0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch
index 35c18f0785..a1f8422d44 100644
--- a/meta/recipes-devtools/meson/meson/0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch
+++ b/meta/recipes-devtools/meson/meson/0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch
@@ -1,4 +1,4 @@
1From 7be634fa9705d0367f48a91305f9acb642ff0a11 Mon Sep 17 00:00:00 2001 1From 64aa6718c290e150dafd8da83f31cb08af00af0e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 27 May 2020 16:43:05 +0000 3Date: Wed, 27 May 2020 16:43:05 +0000
4Subject: [PATCH] gnome.py: prefix g-i paths with PKG_CONFIG_SYSROOT_DIR 4Subject: [PATCH] gnome.py: prefix g-i paths with PKG_CONFIG_SYSROOT_DIR
@@ -9,33 +9,29 @@ determine when a custom variable is a path)
9 9
10Upstream-Status: Pending 10Upstream-Status: Pending
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12
12--- 13---
13 mesonbuild/modules/gnome.py | 8 ++++---- 14 mesonbuild/modules/gnome.py | 4 ++--
14 1 file changed, 4 insertions(+), 4 deletions(-) 15 1 file changed, 2 insertions(+), 2 deletions(-)
15 16
16diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py 17diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
17index 89d5d5d..d75f2e5 100644 18index 52016f4..2b72ee4 100644
18--- a/mesonbuild/modules/gnome.py 19--- a/mesonbuild/modules/gnome.py
19+++ b/mesonbuild/modules/gnome.py 20+++ b/mesonbuild/modules/gnome.py
20@@ -739,17 +739,17 @@ class GnomeModule(ExtensionModule): 21@@ -410,14 +410,14 @@ class GnomeModule(ExtensionModule):
21 if giscanner.found(): 22 if giscanner is not None:
22 giscanner_path = giscanner.get_command()[0] 23 self.giscanner = ExternalProgram.from_entry('g-ir-scanner', giscanner)
23 if not any(x in giscanner_path for x in gi_util_dirs_check): 24 elif self.gir_dep.type_name == 'pkgconfig':
24- giscanner = self.gir_dep.get_pkgconfig_variable('g_ir_scanner', {}) 25- self.giscanner = ExternalProgram('g_ir_scanner', self.gir_dep.get_pkgconfig_variable('g_ir_scanner', {}))
25+ giscanner = os.environ['PKG_CONFIG_SYSROOT_DIR'] + self.gir_dep.get_pkgconfig_variable('g_ir_scanner', {}) 26+ self.giscanner = ExternalProgram('g_ir_scanner', os.environ['PKG_CONFIG_SYSROOT_DIR'] + self.gir_dep.get_pkgconfig_variable('g_ir_scanner', {}))
26 else: 27 else:
27- giscanner = self.gir_dep.get_pkgconfig_variable('g_ir_scanner', {}) 28 self.giscanner = self.interpreter.find_program_impl('g-ir-scanner')
28+ giscanner = os.environ['PKG_CONFIG_SYSROOT_DIR'] + self.gir_dep.get_pkgconfig_variable('g_ir_scanner', {}) 29 gicompiler = state.environment.lookup_binary_entry(MachineChoice.HOST, 'g-ir-compiler')
29 30 if gicompiler is not None:
30 gicompiler = self.interpreter.find_program_impl('g-ir-compiler') 31 self.gicompiler = ExternalProgram.from_entry('g-ir-compiler', gicompiler)
31 if gicompiler.found(): 32 elif self.gir_dep.type_name == 'pkgconfig':
32 gicompiler_path = gicompiler.get_command()[0] 33- self.gicompiler = ExternalProgram('g_ir_compiler', self.gir_dep.get_pkgconfig_variable('g_ir_compiler', {}))
33 if not any(x in gicompiler_path for x in gi_util_dirs_check): 34+ self.gicompiler = ExternalProgram('g_ir_compiler', os.environ['PKG_CONFIG_SYSROOT_DIR'] + self.gir_dep.get_pkgconfig_variable('g_ir_compiler', {}))
34- gicompiler = self.gir_dep.get_pkgconfig_variable('g_ir_compiler', {}) 35 else:
35+ gicompiler = os.environ['PKG_CONFIG_SYSROOT_DIR'] + self.gir_dep.get_pkgconfig_variable('g_ir_compiler', {}) 36 self.gicompiler = self.interpreter.find_program_impl('g-ir-compiler')
36 else: 37 return self.gir_dep, self.giscanner, self.gicompiler
37- gicompiler = self.gir_dep.get_pkgconfig_variable('g_ir_compiler', {})
38+ gicompiler = os.environ['PKG_CONFIG_SYSROOT_DIR'] + self.gir_dep.get_pkgconfig_variable('g_ir_compiler', {})
39
40 ns = kwargs.pop('namespace')
41 nsversion = kwargs.pop('nsversion')