Re: [OE-core] [PATCH 21/24] meson: upgrade 0.59.2 -> 0.60.1

2021-11-11 Thread Khem Raj
seeing a bunch of packages fail common error seems to be

meson.build:1:0: ERROR: Unknown options: "introspection"

list is here

https://errors.yoctoproject.org/Errors/Build/135855/

On Wed, Nov 10, 2021 at 11:40 AM Alexander Kanavin
 wrote:
>
> From: Alexander Kanavin 
>
> Signed-off-by: Alexander Kanavin 
> ---
>  meta/recipes-devtools/meson/meson.inc |  2 +-
>  ...-not-manipulate-the-environment-when.patch | 53 +--
>  .../meson/meson/disable-rpath-handling.patch  | 14 ++---
>  .../{meson_0.59.2.bb => meson_0.60.1.bb}  |  0
>  ...on_0.59.2.bb => nativesdk-meson_0.60.1.bb} |  0
>  5 files changed, 33 insertions(+), 36 deletions(-)
>  rename meta/recipes-devtools/meson/{meson_0.59.2.bb => meson_0.60.1.bb} 
> (100%)
>  rename meta/recipes-devtools/meson/{nativesdk-meson_0.59.2.bb => 
> nativesdk-meson_0.60.1.bb} (100%)
>
> diff --git a/meta/recipes-devtools/meson/meson.inc 
> b/meta/recipes-devtools/meson/meson.inc
> index 174ebd9f31..f383ad9f74 100644
> --- a/meta/recipes-devtools/meson/meson.inc
> +++ b/meta/recipes-devtools/meson/meson.inc
> @@ -15,7 +15,7 @@ SRC_URI = 
> "https://github.com/mesonbuild/meson/releases/download/${PV}/meson-${P
> file://0002-Support-building-allarch-recipes-again.patch \
> file://0001-is_debianlike-always-return-False.patch \
> "
> -SRC_URI[sha256sum] = 
> "13dee549a7ba758b7e33ce7719f28d1d337a98d10d378a4779ccc996f5a2fc49"
> +SRC_URI[sha256sum] = 
> "5add789c953d984b500858b2851ee3d7add0460cf1a6f852f0a721af17384e13"
>
>  UPSTREAM_CHECK_URI = "https://github.com/mesonbuild/meson/releases;
>  UPSTREAM_CHECK_REGEX = "meson-(?P\d+(\.\d+)+)\.tar"
> diff --git 
> a/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
>  
> b/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
> index fdadc6869b..86abfa9d52 100644
> --- 
> a/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
> +++ 
> b/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
> @@ -1,4 +1,4 @@
> -From 2264e67d7c2c22ca634fd26ea8ada6f0344ab280 Mon Sep 17 00:00:00 2001
> +From dd5b4a200cd2fdf7fef627c4b6752f90c00b863a Mon Sep 17 00:00:00 2001
>  From: Alexander Kanavin 
>  Date: Mon, 19 Nov 2018 14:24:26 +0100
>  Subject: [PATCH] python module: do not manipulate the environment when 
> calling
> @@ -8,36 +8,31 @@ Upstream-Status: Inappropriate [oe-core specific]
>  Signed-off-by: Alexander Kanavin 
>
>  ---
> - mesonbuild/modules/python.py | 12 
> - 1 file changed, 12 deletions(-)
> + mesonbuild/modules/python.py | 7 +--
> + 1 file changed, 1 insertion(+), 6 deletions(-)
>
>  diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
> -index 422155b..aaf5844 100644
> +index f479ab9..b934bc6 100644
>  --- a/mesonbuild/modules/python.py
>  +++ b/mesonbuild/modules/python.py
> -@@ -70,11 +70,6 @@ class PythonDependency(ExternalDependency):
> - old_pkg_libdir = os.environ.get('PKG_CONFIG_LIBDIR')
> - old_pkg_path = os.environ.get('PKG_CONFIG_PATH')
> -
> --os.environ.pop('PKG_CONFIG_PATH', None)
> --
> --if pkg_libdir:
> --os.environ['PKG_CONFIG_LIBDIR'] = pkg_libdir
> --
> - try:
> - self.pkgdep = PkgConfigDependency(pkg_name, 
> environment, kwargs)
> - mlog.debug(f'Found "{pkg_name}" via pkgconfig lookup in 
> LIBPC ({pkg_libdir})')
> -@@ -83,13 +78,6 @@ class PythonDependency(ExternalDependency):
> - mlog.debug(f'"{pkg_name}" could not be found in LIBPC 
> ({pkg_libdir})')
> - mlog.debug(e)
> -
> --if old_pkg_path is not None:
> --os.environ['PKG_CONFIG_PATH'] = old_pkg_path
> --
> --if old_pkg_libdir is not None:
> --os.environ['PKG_CONFIG_LIBDIR'] = old_pkg_libdir
> --else:
> --os.environ.pop('PKG_CONFIG_LIBDIR', None)
> - else:
> - mlog.debug(f'"{pkg_name}" could not be found in LIBPC 
> ({pkg_libdir}), this is likely due to a relocated python installation')
> +@@ -239,10 +239,6 @@ def python_factory(env: 'Environment', for_machine: 
> 'MachineChoice',
> + # If python-X.Y.pc exists in LIBPC, we will try to use it
> + def wrap_in_pythons_pc_dir(name: str, env: 'Environment', kwargs: 
> T.Dict[str, T.Any],
> +installation: 'PythonInstallation') -> 
> 'ExternalDependency':
> +-old_pkg_libdir = os.environ.pop('PKG_CONFIG_LIBDIR', None)
> +-old_pkg_path = os.environ.pop('PKG_CONFIG_PATH', None)
> +-if pkg_libdir:
> +-os.environ['PKG_CONFIG_LIBDIR'] = pkg_libdir
> + try:
> + return PythonPkgConfigDependency(name, 

[OE-core] [PATCH 21/24] meson: upgrade 0.59.2 -> 0.60.1

2021-11-10 Thread Alexander Kanavin
From: Alexander Kanavin 

Signed-off-by: Alexander Kanavin 
---
 meta/recipes-devtools/meson/meson.inc |  2 +-
 ...-not-manipulate-the-environment-when.patch | 53 +--
 .../meson/meson/disable-rpath-handling.patch  | 14 ++---
 .../{meson_0.59.2.bb => meson_0.60.1.bb}  |  0
 ...on_0.59.2.bb => nativesdk-meson_0.60.1.bb} |  0
 5 files changed, 33 insertions(+), 36 deletions(-)
 rename meta/recipes-devtools/meson/{meson_0.59.2.bb => meson_0.60.1.bb} (100%)
 rename meta/recipes-devtools/meson/{nativesdk-meson_0.59.2.bb => 
nativesdk-meson_0.60.1.bb} (100%)

diff --git a/meta/recipes-devtools/meson/meson.inc 
b/meta/recipes-devtools/meson/meson.inc
index 174ebd9f31..f383ad9f74 100644
--- a/meta/recipes-devtools/meson/meson.inc
+++ b/meta/recipes-devtools/meson/meson.inc
@@ -15,7 +15,7 @@ SRC_URI = 
"https://github.com/mesonbuild/meson/releases/download/${PV}/meson-${P
file://0002-Support-building-allarch-recipes-again.patch \
file://0001-is_debianlike-always-return-False.patch \
"
-SRC_URI[sha256sum] = 
"13dee549a7ba758b7e33ce7719f28d1d337a98d10d378a4779ccc996f5a2fc49"
+SRC_URI[sha256sum] = 
"5add789c953d984b500858b2851ee3d7add0460cf1a6f852f0a721af17384e13"
 
 UPSTREAM_CHECK_URI = "https://github.com/mesonbuild/meson/releases;
 UPSTREAM_CHECK_REGEX = "meson-(?P\d+(\.\d+)+)\.tar"
diff --git 
a/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
 
b/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
index fdadc6869b..86abfa9d52 100644
--- 
a/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
+++ 
b/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
@@ -1,4 +1,4 @@
-From 2264e67d7c2c22ca634fd26ea8ada6f0344ab280 Mon Sep 17 00:00:00 2001
+From dd5b4a200cd2fdf7fef627c4b6752f90c00b863a Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin 
 Date: Mon, 19 Nov 2018 14:24:26 +0100
 Subject: [PATCH] python module: do not manipulate the environment when calling
@@ -8,36 +8,31 @@ Upstream-Status: Inappropriate [oe-core specific]
 Signed-off-by: Alexander Kanavin 
 
 ---
- mesonbuild/modules/python.py | 12 
- 1 file changed, 12 deletions(-)
+ mesonbuild/modules/python.py | 7 +--
+ 1 file changed, 1 insertion(+), 6 deletions(-)
 
 diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
-index 422155b..aaf5844 100644
+index f479ab9..b934bc6 100644
 --- a/mesonbuild/modules/python.py
 +++ b/mesonbuild/modules/python.py
-@@ -70,11 +70,6 @@ class PythonDependency(ExternalDependency):
- old_pkg_libdir = os.environ.get('PKG_CONFIG_LIBDIR')
- old_pkg_path = os.environ.get('PKG_CONFIG_PATH')
- 
--os.environ.pop('PKG_CONFIG_PATH', None)
--
--if pkg_libdir:
--os.environ['PKG_CONFIG_LIBDIR'] = pkg_libdir
--
- try:
- self.pkgdep = PkgConfigDependency(pkg_name, environment, 
kwargs)
- mlog.debug(f'Found "{pkg_name}" via pkgconfig lookup in 
LIBPC ({pkg_libdir})')
-@@ -83,13 +78,6 @@ class PythonDependency(ExternalDependency):
- mlog.debug(f'"{pkg_name}" could not be found in LIBPC 
({pkg_libdir})')
- mlog.debug(e)
- 
--if old_pkg_path is not None:
--os.environ['PKG_CONFIG_PATH'] = old_pkg_path
--
--if old_pkg_libdir is not None:
--os.environ['PKG_CONFIG_LIBDIR'] = old_pkg_libdir
--else:
--os.environ.pop('PKG_CONFIG_LIBDIR', None)
- else:
- mlog.debug(f'"{pkg_name}" could not be found in LIBPC 
({pkg_libdir}), this is likely due to a relocated python installation')
+@@ -239,10 +239,6 @@ def python_factory(env: 'Environment', for_machine: 
'MachineChoice',
+ # If python-X.Y.pc exists in LIBPC, we will try to use it
+ def wrap_in_pythons_pc_dir(name: str, env: 'Environment', kwargs: 
T.Dict[str, T.Any],
+installation: 'PythonInstallation') -> 
'ExternalDependency':
+-old_pkg_libdir = os.environ.pop('PKG_CONFIG_LIBDIR', None)
+-old_pkg_path = os.environ.pop('PKG_CONFIG_PATH', None)
+-if pkg_libdir:
+-os.environ['PKG_CONFIG_LIBDIR'] = pkg_libdir
+ try:
+ return PythonPkgConfigDependency(name, env, kwargs, 
installation)
+ finally:
+@@ -251,8 +247,7 @@ def python_factory(env: 'Environment', for_machine: 
'MachineChoice',
+ os.environ[name] = value
+ elif name in os.environ:
+ del os.environ[name]
+-set_env('PKG_CONFIG_LIBDIR', old_pkg_libdir)
+-set_env('PKG_CONFIG_PATH', old_pkg_path)
++pass
  
+