diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-01-02 00:13:14 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-01-02 00:13:14 +0530 |
commit | 63a902aeea2aba127e2c905be0cf2b53aeb7e53a (patch) | |
tree | 4411e7c90f6663435e0ea9c0b6259fa0d2640413 /recipes/build-tools | |
parent | 83ec24fc1a605acd908fc11a32f69ccd92cab409 (diff) |
meson.recipe: Fix compatibility with Python 3.8
Taken from https://github.com/mesonbuild/meson/pull/5872
Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/issues/220
Diffstat (limited to 'recipes/build-tools')
-rw-r--r-- | recipes/build-tools/meson.recipe | 2 | ||||
-rw-r--r-- | recipes/build-tools/meson/0001-flatten-list-to-subprocess.Popen-necessary-for-Pytho.patch | 27 |
2 files changed, 29 insertions, 0 deletions
diff --git a/recipes/build-tools/meson.recipe b/recipes/build-tools/meson.recipe index eab6dcea..771989cb 100644 --- a/recipes/build-tools/meson.recipe +++ b/recipes/build-tools/meson.recipe @@ -27,6 +27,8 @@ class Recipe(recipe.Recipe): 'meson/0001-ninja-backend-Quote-args-to-compiler-rules.patch', # https://github.com/mesonbuild/meson/pull/5475 'meson/0001-environment-better-xcode-11-clang-detection.patch', + # https://github.com/mesonbuild/meson/pull/5872 + 'meson/0001-flatten-list-to-subprocess.Popen-necessary-for-Pytho.patch', ] deps = ['ninja'] diff --git a/recipes/build-tools/meson/0001-flatten-list-to-subprocess.Popen-necessary-for-Pytho.patch b/recipes/build-tools/meson/0001-flatten-list-to-subprocess.Popen-necessary-for-Pytho.patch new file mode 100644 index 00000000..65fb62be --- /dev/null +++ b/recipes/build-tools/meson/0001-flatten-list-to-subprocess.Popen-necessary-for-Pytho.patch @@ -0,0 +1,27 @@ +From e2a64cd698efde820ccf77c7912cfc5ebf89d2cd Mon Sep 17 00:00:00 2001 +From: "Michael Hirsch, Ph.D" <scivision@users.noreply.github.com> +Date: Sun, 1 Sep 2019 13:40:05 -0400 +Subject: [PATCH] flatten list to subprocess.Popen, necessary for Python 3.8 + +--- + mesonbuild/backend/ninjabackend.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py +index 1afb073..312f6ef 100644 +--- a/mesonbuild/backend/ninjabackend.py ++++ b/mesonbuild/backend/ninjabackend.py +@@ -185,8 +185,8 @@ int dummy; + # and locale dependent. Any attempt at converting it to + # Python strings leads to failure. We _must_ do this detection + # in raw byte mode and write the result in raw bytes. +- pc = subprocess.Popen([compiler.get_exelist(), +- '/showIncludes', '/c', 'incdetect.c'], ++ pc = subprocess.Popen(compiler.get_exelist() + ++ ['/showIncludes', '/c', 'incdetect.c'], + cwd=self.environment.get_scratch_dir(), + stdout=subprocess.PIPE, stderr=subprocess.PIPE) + (stdo, _) = pc.communicate() +-- +2.24.1.windows.2 + |