From 306bf8d353b56a58ede82b5b0ac77101d9bcfcbf Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Wed, 1 May 2019 10:37:00 +0200 Subject: host-meson: fix building with -v Signed-off-by: Michael Olbrich --- ...4-Don-t-close-fds-when-executing-programs.patch | 23 ++++++++++++++++++++++ patches/meson-0.49.2/series | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 patches/meson-0.49.2/0004-Don-t-close-fds-when-executing-programs.patch diff --git a/patches/meson-0.49.2/0004-Don-t-close-fds-when-executing-programs.patch b/patches/meson-0.49.2/0004-Don-t-close-fds-when-executing-programs.patch new file mode 100644 index 000000000..9c5b51f6a --- /dev/null +++ b/patches/meson-0.49.2/0004-Don-t-close-fds-when-executing-programs.patch @@ -0,0 +1,23 @@ +From: Michael Olbrich +Date: Mon, 29 Apr 2019 11:28:45 +0200 +Subject: [PATCH] Don't close fds when executing programs + +This is basically the same as ca894a24fca452e5aa982e1fc5dc63117c3e3d71 just +for new new Popen_safe_legacy(). +--- + mesonbuild/mesonlib.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py +index 98c2366d6a48..b5df8473ee40 100644 +--- a/mesonbuild/mesonlib.py ++++ b/mesonbuild/mesonlib.py +@@ -917,7 +917,7 @@ def Popen_safe(args, write=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, + return p, o, e + + def Popen_safe_legacy(args, write=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs): +- p = subprocess.Popen(args, universal_newlines=False, ++ p = subprocess.Popen(args, universal_newlines=False, close_fds=False, + stdout=stdout, stderr=stderr, **kwargs) + if write is not None: + write = write.encode('utf-8') diff --git a/patches/meson-0.49.2/series b/patches/meson-0.49.2/series index 119016a64..9445cad4d 100644 --- a/patches/meson-0.49.2/series +++ b/patches/meson-0.49.2/series @@ -3,4 +3,5 @@ 0001-only-use-paths-for-shared-libaries-in-get_link_dep_s.patch 0002-don-t-add-rpaths-for-build-directories-when-cross-co.patch 0003-HACK-don-t-loose-the-rpath-for-host-packages.patch -# 5cb122e1f6a7d12f6e2fc7dd5a2d329b - git-ptx-patches magic +0004-Don-t-close-fds-when-executing-programs.patch +# 648fdcce3df1dd2e0d3234bdbf0c8bff - git-ptx-patches magic -- cgit v1.2.3