From e6090f49db9993d7b838c9798d07428b2418eb02 Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Thu, 12 Oct 2023 21:45:34 +0100 Subject: [PATCH] ardour: fix build with Python 3.12. --- .../patches/fix-build-with-python-3.12.diff | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/ardour/patches/fix-build-with-python-3.12.diff diff --git a/srcpkgs/ardour/patches/fix-build-with-python-3.12.diff b/srcpkgs/ardour/patches/fix-build-with-python-3.12.diff new file mode 100644 index 00000000000000..210083cb4abb02 --- /dev/null +++ b/srcpkgs/ardour/patches/fix-build-with-python-3.12.diff @@ -0,0 +1,17 @@ +At the moment, running `itstool` with Python 3.12 spews out a bunch of +`SyntaxWarning`s, polluting the command's stderr (which the code in `ardour`'s +`wscript` captures) and causing a configure failure. + +diff --git a/wscript b/wscript +index 39761da5f..b72e2ab75 100644 +--- a/wscript ++++ b/wscript +@@ -973,7 +973,7 @@ def configure(conf): + + # freedesktop translations needs itstool > 1.0.3 (-j option) + if Options.options.freedesktop: +- output = subprocess.Popen("itstool --version", shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines() ++ output = subprocess.Popen("itstool --version", shell=True, stderr=subprocess.DEVNULL, stdout=subprocess.PIPE).communicate()[0].splitlines() + o = output[0].decode('utf-8') + itstool = o.split(' ')[0] + version = o.split(' ')[1].split('.')