summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2018-05-04 15:32:42 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-08 16:14:14 +0100
commita6b62ef9aeab62851703fa883a2fe4fcb4ef94a9 (patch)
treea89ce726c354ce18a0212652fb82e1f50f03f2dd /meta/recipes-devtools
parent26fba8170174821d460146d46ddc71f632daef62 (diff)
downloadpoky-a6b62ef9aeab62851703fa883a2fe4fcb4ef94a9.tar.gz
meson: update to 0.46.0
Rebase a couple of patches (From OE-Core rev: dbac12d5eacc945881d472dca492180b62e6f345) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch17
-rw-r--r--meta/recipes-devtools/meson/meson/0003-native_bindir.patch57
-rw-r--r--meta/recipes-devtools/meson/meson_0.46.0.bb (renamed from meta/recipes-devtools/meson/meson_0.45.1.bb)4
3 files changed, 41 insertions, 37 deletions
diff --git a/meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch b/meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch
index ded42d14f7..f32267d0c4 100644
--- a/meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch
+++ b/meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch
@@ -1,7 +1,7 @@
1From 972667e0d789a6969a5d79249404f3539f891810 Mon Sep 17 00:00:00 2001 1From 0b860cb8a22ae876b6088939dbabca216bc29431 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 4 Aug 2017 16:18:47 +0300 3Date: Fri, 4 Aug 2017 16:18:47 +0300
4Subject: [PATCH 1/2] gobject-introspection: determine g-ir-scanner and 4Subject: [PATCH] gobject-introspection: determine g-ir-scanner and
5 g-ir-compiler paths from pkgconfig 5 g-ir-compiler paths from pkgconfig
6 6
7Do not hardcode the name of those binaries; gobject-introspection 7Do not hardcode the name of those binaries; gobject-introspection
@@ -16,19 +16,19 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
16 1 file changed, 2 insertions(+), 2 deletions(-) 16 1 file changed, 2 insertions(+), 2 deletions(-)
17 17
18diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py 18diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
19index 4f7fe30..9610cf6 100644 19index b29bab9..dc4c401 100644
20--- a/mesonbuild/modules/gnome.py 20--- a/mesonbuild/modules/gnome.py
21+++ b/mesonbuild/modules/gnome.py 21+++ b/mesonbuild/modules/gnome.py
22@@ -390,8 +390,6 @@ class GnomeModule(ExtensionModule): 22@@ -393,8 +393,6 @@ class GnomeModule(ExtensionModule):
23 raise MesonException('Gir takes one argument') 23 raise MesonException('Gir takes one argument')
24 if kwargs.get('install_dir'): 24 if kwargs.get('install_dir'):
25 raise MesonException('install_dir is not supported with generate_gir(), see "install_dir_gir" and "install_dir_typelib"') 25 raise MesonException('install_dir is not supported with generate_gir(), see "install_dir_gir" and "install_dir_typelib"')
26- giscanner = find_program('g-ir-scanner', 'Gir') 26- giscanner = self.interpreter.find_program_impl('g-ir-scanner')
27- gicompiler = find_program('g-ir-compiler', 'Gir') 27- gicompiler = self.interpreter.find_program_impl('g-ir-compiler')
28 girtarget = args[0] 28 girtarget = args[0]
29 while hasattr(girtarget, 'held_object'): 29 while hasattr(girtarget, 'held_object'):
30 girtarget = girtarget.held_object 30 girtarget = girtarget.held_object
31@@ -402,6 +400,8 @@ class GnomeModule(ExtensionModule): 31@@ -405,6 +403,8 @@ class GnomeModule(ExtensionModule):
32 self.gir_dep = PkgConfigDependency('gobject-introspection-1.0', 32 self.gir_dep = PkgConfigDependency('gobject-introspection-1.0',
33 state.environment, 33 state.environment,
34 {'native': True}) 34 {'native': True})
@@ -37,6 +37,3 @@ index 4f7fe30..9610cf6 100644
37 pkgargs = self.gir_dep.get_compile_args() 37 pkgargs = self.gir_dep.get_compile_args()
38 except Exception: 38 except Exception:
39 raise MesonException('gobject-introspection dependency was not found, gir cannot be generated.') 39 raise MesonException('gobject-introspection dependency was not found, gir cannot be generated.')
40--
412.15.0
42
diff --git a/meta/recipes-devtools/meson/meson/0003-native_bindir.patch b/meta/recipes-devtools/meson/meson/0003-native_bindir.patch
index af5e6a190b..f00327714b 100644
--- a/meta/recipes-devtools/meson/meson/0003-native_bindir.patch
+++ b/meta/recipes-devtools/meson/meson/0003-native_bindir.patch
@@ -1,7 +1,7 @@
1From ffa72eac56558aa4171dd70ac1e9c27a07338fa2 Mon Sep 17 00:00:00 2001 1From 0eec9428376450917098c68539a6c9dd60b85d93 Mon Sep 17 00:00:00 2001
2From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> 2From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
3Date: Wed, 15 Nov 2017 15:05:01 +0100 3Date: Wed, 15 Nov 2017 15:05:01 +0100
4Subject: [PATCH 4/4] native_bindir 4Subject: [PATCH] native_bindir
5 5
6Some libraries, like QT, have pre-processors that convert their input 6Some libraries, like QT, have pre-processors that convert their input
7files into something that the cross-compiler can process. We find the 7files into something that the cross-compiler can process. We find the
@@ -17,15 +17,15 @@ Upstream-Status: Inappropriate [OE specific]
17Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> 17Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
18 18
19--- 19---
20 mesonbuild/dependencies/base.py | 16 ++++++++++------ 20 mesonbuild/dependencies/base.py | 19 +++++++++++--------
21 mesonbuild/dependencies/ui.py | 6 +++--- 21 mesonbuild/dependencies/ui.py | 6 +++---
22 2 files changed, 13 insertions(+), 9 deletions(-) 22 2 files changed, 14 insertions(+), 11 deletions(-)
23 23
24diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py 24diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
25index bf79bc5..c9fd08c 100644 25index 0114a14..f4f19c5 100644
26--- a/mesonbuild/dependencies/base.py 26--- a/mesonbuild/dependencies/base.py
27+++ b/mesonbuild/dependencies/base.py 27+++ b/mesonbuild/dependencies/base.py
28@@ -131,7 +131,7 @@ class Dependency: 28@@ -141,7 +141,7 @@ class Dependency:
29 def need_threads(self): 29 def need_threads(self):
30 return False 30 return False
31 31
@@ -34,7 +34,7 @@ index bf79bc5..c9fd08c 100644
34 raise DependencyException('{!r} is not a pkgconfig dependency'.format(self.name)) 34 raise DependencyException('{!r} is not a pkgconfig dependency'.format(self.name))
35 35
36 def get_configtool_variable(self, variable_name): 36 def get_configtool_variable(self, variable_name):
37@@ -150,7 +150,7 @@ class InternalDependency(Dependency): 37@@ -178,7 +178,7 @@ class InternalDependency(Dependency):
38 self.sources = sources 38 self.sources = sources
39 self.ext_deps = ext_deps 39 self.ext_deps = ext_deps
40 40
@@ -43,24 +43,34 @@ index bf79bc5..c9fd08c 100644
43 raise DependencyException('Method "get_pkgconfig_variable()" is ' 43 raise DependencyException('Method "get_pkgconfig_variable()" is '
44 'invalid for an internal dependency') 44 'invalid for an internal dependency')
45 45
46@@ -425,10 +425,14 @@ class PkgConfigDependency(ExternalDependency): 46@@ -517,11 +517,14 @@ class PkgConfigDependency(ExternalDependency):
47 return s.format(self.__class__.__name__, self.name, self.is_found, 47 return s.format(self.__class__.__name__, self.name, self.is_found,
48 self.version_reqs) 48 self.version_reqs)
49 49
50- def _call_pkgbin(self, args, env=None): 50- def _call_pkgbin_real(self, args, env):
51+ def _call_pkgbin(self, args, env=None, use_native=False): 51- p, out = Popen_safe(self.pkgbin.get_command() + args, env=env)[0:2]
52 if not env: 52+ def _call_pkgbin_real(self, args, env, use_native=False):
53 env = os.environ
54- p, out = Popen_safe([self.pkgbin] + args, env=env)[0:2]
55+ if use_native: 53+ if use_native:
56+ pkgbin = [self.pkgbin + "-native"] 54+ p, out = Popen_safe(self.pkgbin.get_command() + "-native" + args, env=env)[0:2]
57+ else: 55+ else:
58+ pkgbin = [self.pkgbin] 56+ p, out = Popen_safe(self.pkgbin.get_command() + args, env=env)[0:2]
59+ p, out = Popen_safe(pkgbin + args, env=env)[0:2]
60 return p.returncode, out.strip() 57 return p.returncode, out.strip()
61 58
59- def _call_pkgbin(self, args, env=None):
60+ def _call_pkgbin(self, args, env=None, use_native=False):
61 if env is None:
62 fenv = env
63 env = os.environ
64@@ -530,7 +533,7 @@ class PkgConfigDependency(ExternalDependency):
65 targs = tuple(args)
66 cache = PkgConfigDependency.pkgbin_cache
67 if (self.pkgbin, targs, fenv) not in cache:
68- cache[(self.pkgbin, targs, fenv)] = self._call_pkgbin_real(args, env)
69+ cache[(self.pkgbin, targs, fenv)] = self._call_pkgbin_real(args, env, use_native)
70 return cache[(self.pkgbin, targs, fenv)]
71
62 def _convert_mingw_paths(self, args): 72 def _convert_mingw_paths(self, args):
63@@ -522,7 +526,7 @@ class PkgConfigDependency(ExternalDependency): 73@@ -630,7 +633,7 @@ class PkgConfigDependency(ExternalDependency):
64 # linkers such as MSVC, so prepend them. 74 # linkers such as MSVC, so prepend them.
65 self.link_args = ['-L' + lp for lp in libpaths] + self.link_args 75 self.link_args = ['-L' + lp for lp in libpaths] + self.link_args
66 76
@@ -69,7 +79,7 @@ index bf79bc5..c9fd08c 100644
69 options = ['--variable=' + variable_name, self.name] 79 options = ['--variable=' + variable_name, self.name]
70 80
71 if 'define_variable' in kwargs: 81 if 'define_variable' in kwargs:
72@@ -535,7 +539,7 @@ class PkgConfigDependency(ExternalDependency): 82@@ -643,7 +646,7 @@ class PkgConfigDependency(ExternalDependency):
73 83
74 options = ['--define-variable=' + '='.join(definition)] + options 84 options = ['--define-variable=' + '='.join(definition)] + options
75 85
@@ -79,10 +89,10 @@ index bf79bc5..c9fd08c 100644
79 if ret != 0: 89 if ret != 0:
80 if self.required: 90 if self.required:
81diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py 91diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py
82index 1db518c..4ed1d04 100644 92index 2f31196..916f648 100644
83--- a/mesonbuild/dependencies/ui.py 93--- a/mesonbuild/dependencies/ui.py
84+++ b/mesonbuild/dependencies/ui.py 94+++ b/mesonbuild/dependencies/ui.py
85@@ -239,7 +239,7 @@ class QtBaseDependency(ExternalDependency): 95@@ -240,7 +240,7 @@ class QtBaseDependency(ExternalDependency):
86 self.bindir = self.get_pkgconfig_host_bins(core) 96 self.bindir = self.get_pkgconfig_host_bins(core)
87 if not self.bindir: 97 if not self.bindir:
88 # If exec_prefix is not defined, the pkg-config file is broken 98 # If exec_prefix is not defined, the pkg-config file is broken
@@ -91,7 +101,7 @@ index 1db518c..4ed1d04 100644
91 if prefix: 101 if prefix:
92 self.bindir = os.path.join(prefix, 'bin') 102 self.bindir = os.path.join(prefix, 'bin')
93 103
94@@ -359,7 +359,7 @@ class Qt4Dependency(QtBaseDependency): 104@@ -374,7 +374,7 @@ class Qt4Dependency(QtBaseDependency):
95 applications = ['moc', 'uic', 'rcc', 'lupdate', 'lrelease'] 105 applications = ['moc', 'uic', 'rcc', 'lupdate', 'lrelease']
96 for application in applications: 106 for application in applications:
97 try: 107 try:
@@ -100,7 +110,7 @@ index 1db518c..4ed1d04 100644
100 except MesonException: 110 except MesonException:
101 pass 111 pass
102 112
103@@ -369,7 +369,7 @@ class Qt5Dependency(QtBaseDependency): 113@@ -384,7 +384,7 @@ class Qt5Dependency(QtBaseDependency):
104 QtBaseDependency.__init__(self, 'qt5', env, kwargs) 114 QtBaseDependency.__init__(self, 'qt5', env, kwargs)
105 115
106 def get_pkgconfig_host_bins(self, core): 116 def get_pkgconfig_host_bins(self, core):
@@ -109,6 +119,3 @@ index 1db518c..4ed1d04 100644
109 119
110 120
111 # There are three different ways of depending on SDL2: 121 # There are three different ways of depending on SDL2:
112--
1132.15.1
114
diff --git a/meta/recipes-devtools/meson/meson_0.45.1.bb b/meta/recipes-devtools/meson/meson_0.46.0.bb
index 9decdd0c24..7334045e05 100644
--- a/meta/recipes-devtools/meson/meson_0.45.1.bb
+++ b/meta/recipes-devtools/meson/meson_0.46.0.bb
@@ -10,8 +10,8 @@ SRC_URI = "https://github.com/mesonbuild/meson/releases/download/${PV}/${BP}.tar
10 file://0001-Linker-rules-move-cross_args-in-front-of-output_args.patch \ 10 file://0001-Linker-rules-move-cross_args-in-front-of-output_args.patch \
11 file://0003-native_bindir.patch \ 11 file://0003-native_bindir.patch \
12 " 12 "
13SRC_URI[md5sum] = "4d9c7b3a7365b7b472f00af14e034949" 13SRC_URI[md5sum] = "e3301606017e364a0d7e1c3b755e7a28"
14SRC_URI[sha256sum] = "4d0bb0dbb1bb556cb7a4092fdfea3d6e76606bd739a4bc97481c2d7bc6200afb" 14SRC_URI[sha256sum] = "b7df91b01a358a8facdbfa33596a47cda38a760435ab55e1985c0bff06a9cbf0"
15UPSTREAM_CHECK_URI = "https://github.com/mesonbuild/meson/releases" 15UPSTREAM_CHECK_URI = "https://github.com/mesonbuild/meson/releases"
16 16
17inherit setuptools3 17inherit setuptools3