diff options
Diffstat (limited to 'meta/recipes-devtools/meson/meson/0003-native_bindir.patch')
-rw-r--r-- | meta/recipes-devtools/meson/meson/0003-native_bindir.patch | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/meta/recipes-devtools/meson/meson/0003-native_bindir.patch b/meta/recipes-devtools/meson/meson/0003-native_bindir.patch index 5d7bdc2f59..fb55a05187 100644 --- a/meta/recipes-devtools/meson/meson/0003-native_bindir.patch +++ b/meta/recipes-devtools/meson/meson/0003-native_bindir.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f06c89939d0d006090a8a8728b2a13d532b83047 Mon Sep 17 00:00:00 2001 | 1 | From cbc27ee1576b4d04ad8e9d80760c63a9d3b7f5ed Mon Sep 17 00:00:00 2001 |
2 | From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2 | From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> |
3 | Date: Wed, 15 Nov 2017 15:05:01 +0100 | 3 | Date: Wed, 15 Nov 2017 15:05:01 +0100 |
4 | Subject: [PATCH] native_bindir | 4 | Subject: [PATCH] native_bindir |
@@ -15,22 +15,21 @@ that is is OE only. https://github.com/mesonbuild/meson/issues/1849#issuecomment | |||
15 | 15 | ||
16 | Upstream-Status: Inappropriate [OE specific] | 16 | Upstream-Status: Inappropriate [OE specific] |
17 | Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 17 | Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> |
18 | |||
19 | --- | 18 | --- |
20 | mesonbuild/dependencies/base.py | 19 +++++++++++-------- | 19 | mesonbuild/dependencies/base.py | 19 +++++++++++-------- |
21 | mesonbuild/dependencies/ui.py | 6 +++--- | 20 | mesonbuild/dependencies/ui.py | 6 +++--- |
22 | 2 files changed, 14 insertions(+), 11 deletions(-) | 21 | 2 files changed, 14 insertions(+), 11 deletions(-) |
23 | 22 | ||
24 | diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py | 23 | diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py |
25 | index 368a4bc..9fc398e 100644 | 24 | index 3a5f5f8..0af89f8 100644 |
26 | --- a/mesonbuild/dependencies/base.py | 25 | --- a/mesonbuild/dependencies/base.py |
27 | +++ b/mesonbuild/dependencies/base.py | 26 | +++ b/mesonbuild/dependencies/base.py |
28 | @@ -183,7 +183,7 @@ class Dependency: | 27 | @@ -183,7 +183,7 @@ class Dependency: |
29 | def get_exe_args(self, compiler): | 28 | def get_exe_args(self, compiler): |
30 | return [] | 29 | return [] |
31 | 30 | ||
32 | - def get_pkgconfig_variable(self, variable_name, kwargs): | 31 | - def get_pkgconfig_variable(self, variable_name: str, kwargs: T.Dict[str, T.Any]) -> str: |
33 | + def get_pkgconfig_variable(self, variable_name, kwargs, use_native=False): | 32 | + def get_pkgconfig_variable(self, variable_name: str, kwargs: T.Dict[str, T.Any], use_native=False) -> str: |
34 | raise DependencyException('{!r} is not a pkgconfig dependency'.format(self.name)) | 33 | raise DependencyException('{!r} is not a pkgconfig dependency'.format(self.name)) |
35 | 34 | ||
36 | def get_configtool_variable(self, variable_name): | 35 | def get_configtool_variable(self, variable_name): |
@@ -38,12 +37,12 @@ index 368a4bc..9fc398e 100644 | |||
38 | setattr(result, k, copy.deepcopy(v, memo)) | 37 | setattr(result, k, copy.deepcopy(v, memo)) |
39 | return result | 38 | return result |
40 | 39 | ||
41 | - def get_pkgconfig_variable(self, variable_name, kwargs): | 40 | - def get_pkgconfig_variable(self, variable_name: str, kwargs: T.Dict[str, T.Any]) -> str: |
42 | + def get_pkgconfig_variable(self, variable_name, kwargs, use_native=False): | 41 | + def get_pkgconfig_variable(self, variable_name: str, kwargs: T.Dict[str, T.Any], use_native=False) -> str: |
43 | raise DependencyException('Method "get_pkgconfig_variable()" is ' | 42 | raise DependencyException('Method "get_pkgconfig_variable()" is ' |
44 | 'invalid for an internal dependency') | 43 | 'invalid for an internal dependency') |
45 | 44 | ||
46 | @@ -634,15 +634,18 @@ class PkgConfigDependency(ExternalDependency): | 45 | @@ -639,8 +639,11 @@ class PkgConfigDependency(ExternalDependency): |
47 | return s.format(self.__class__.__name__, self.name, self.is_found, | 46 | return s.format(self.__class__.__name__, self.name, self.is_found, |
48 | self.version_reqs) | 47 | self.version_reqs) |
49 | 48 | ||
@@ -57,15 +56,16 @@ index 368a4bc..9fc398e 100644 | |||
57 | p, out, err = Popen_safe(cmd, env=env) | 56 | p, out, err = Popen_safe(cmd, env=env) |
58 | rc, out, err = p.returncode, out.strip(), err.strip() | 57 | rc, out, err = p.returncode, out.strip(), err.strip() |
59 | call = ' '.join(cmd) | 58 | call = ' '.join(cmd) |
60 | mlog.debug("Called `{}` -> {}\n{}".format(call, rc, out)) | 59 | @@ -666,7 +669,7 @@ class PkgConfigDependency(ExternalDependency): |
61 | return rc, out, err | 60 | mlog.debug('PKG_CONFIG_LIBDIR: ' + new_pkg_config_libdir) |
61 | |||
62 | 62 | ||
63 | - def _call_pkgbin(self, args, env=None): | 63 | - def _call_pkgbin(self, args, env=None): |
64 | + def _call_pkgbin(self, args, env=None, use_native=False): | 64 | + def _call_pkgbin(self, args, env=None, use_native=False): |
65 | # Always copy the environment since we're going to modify it | 65 | # Always copy the environment since we're going to modify it |
66 | # with pkg-config variables | 66 | # with pkg-config variables |
67 | if env is None: | 67 | if env is None: |
68 | @@ -668,7 +671,7 @@ class PkgConfigDependency(ExternalDependency): | 68 | @@ -680,7 +683,7 @@ class PkgConfigDependency(ExternalDependency): |
69 | targs = tuple(args) | 69 | targs = tuple(args) |
70 | cache = PkgConfigDependency.pkgbin_cache | 70 | cache = PkgConfigDependency.pkgbin_cache |
71 | if (self.pkgbin, targs, fenv) not in cache: | 71 | if (self.pkgbin, targs, fenv) not in cache: |
@@ -74,16 +74,16 @@ index 368a4bc..9fc398e 100644 | |||
74 | return cache[(self.pkgbin, targs, fenv)] | 74 | return cache[(self.pkgbin, targs, fenv)] |
75 | 75 | ||
76 | def _convert_mingw_paths(self, args: T.List[str]) -> T.List[str]: | 76 | def _convert_mingw_paths(self, args: T.List[str]) -> T.List[str]: |
77 | @@ -877,7 +880,7 @@ class PkgConfigDependency(ExternalDependency): | 77 | @@ -889,7 +892,7 @@ class PkgConfigDependency(ExternalDependency): |
78 | (self.name, out_raw)) | 78 | (self.name, out_raw)) |
79 | self.link_args, self.raw_link_args = self._search_libs(out, out_raw) | 79 | self.link_args, self.raw_link_args = self._search_libs(out, out_raw) |
80 | 80 | ||
81 | - def get_pkgconfig_variable(self, variable_name, kwargs): | 81 | - def get_pkgconfig_variable(self, variable_name: str, kwargs: T.Dict[str, T.Any]) -> str: |
82 | + def get_pkgconfig_variable(self, variable_name, kwargs, use_native=False): | 82 | + def get_pkgconfig_variable(self, variable_name: str, kwargs: T.Dict[str, T.Any], use_native=False) -> str: |
83 | options = ['--variable=' + variable_name, self.name] | 83 | options = ['--variable=' + variable_name, self.name] |
84 | 84 | ||
85 | if 'define_variable' in kwargs: | 85 | if 'define_variable' in kwargs: |
86 | @@ -890,7 +893,7 @@ class PkgConfigDependency(ExternalDependency): | 86 | @@ -902,7 +905,7 @@ class PkgConfigDependency(ExternalDependency): |
87 | 87 | ||
88 | options = ['--define-variable=' + '='.join(definition)] + options | 88 | options = ['--define-variable=' + '='.join(definition)] + options |
89 | 89 | ||
@@ -93,7 +93,7 @@ index 368a4bc..9fc398e 100644 | |||
93 | if ret != 0: | 93 | if ret != 0: |
94 | if self.required: | 94 | if self.required: |
95 | diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py | 95 | diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py |
96 | index 95dfe2b..5f82890 100644 | 96 | index 5dffd3a..fb3a178 100644 |
97 | --- a/mesonbuild/dependencies/ui.py | 97 | --- a/mesonbuild/dependencies/ui.py |
98 | +++ b/mesonbuild/dependencies/ui.py | 98 | +++ b/mesonbuild/dependencies/ui.py |
99 | @@ -325,7 +325,7 @@ class QtBaseDependency(ExternalDependency): | 99 | @@ -325,7 +325,7 @@ class QtBaseDependency(ExternalDependency): |