Hello community, here is the log from the commit of package meson for openSUSE:Factory checked in at 2018-07-14 20:20:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/meson (Old) and /work/SRC/openSUSE:Factory/.meson.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "meson" Sat Jul 14 20:20:16 2018 rev:34 rq:622425 version:0.46.0 Changes: -------- --- /work/SRC/openSUSE:Factory/meson/meson.changes 2018-06-03 12:30:38.124424433 +0200 +++ /work/SRC/openSUSE:Factory/.meson.new/meson.changes 2018-07-14 20:20:19.231429943 +0200 @@ -1,0 +2,5 @@ +Fri Jul 13 06:00:48 UTC 2018 - [email protected] + +- add Don-t-raise-StopIteration-in-generators-no-longer-al.patch + +------------------------------------------------------------------- New: ---- Don-t-raise-StopIteration-in-generators-no-longer-al.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ meson.spec ++++++ --- /var/tmp/diff_new_pack.JalvqN/_old 2018-07-14 20:20:21.547435905 +0200 +++ /var/tmp/diff_new_pack.JalvqN/_new 2018-07-14 20:20:21.571435968 +0200 @@ -45,6 +45,8 @@ Patch4: meson-restore-python3.4.patch # PATCH-FIX-OPENSUSE meson-fix-gcc48.patch [email protected] -- Fix GCC 4.8 handling for openSUSE Leap 42.x. Patch5: meson-fix-gcc48.patch +# PATCH-FIX-UPSTREAM Don-t-raise-StopIteration-in-generators-no-longer-al.patch -- Don't raise StopIteration in generators, no longer allowed with Python 3.7. Fixes #3622 +Patch6: Don-t-raise-StopIteration-in-generators-no-longer-al.patch BuildRequires: python3-base BuildArch: noarch %if %{testsuite} @@ -137,6 +139,7 @@ %patch4 -p1 %patch5 -p1 %endif +%patch6 -p1 # Remove static boost tests from test cases/frameworks/1 boost (can't use patch due to spaces in dirname) sed -i "/static/d" test\ cases/frameworks/1\ boost/meson.build ++++++ Don-t-raise-StopIteration-in-generators-no-longer-al.patch ++++++ From: Christoph Reiter <[email protected]> Date: Mon, 28 May 2018 09:32:19 +0200 Subject: Don't raise StopIteration in generators, no longer allowed with Python 3.7. Fixes #3622 Patch-mainline: 0.47.1 Raising StopIteration from a generator has been deprecated with Python 3.5 and is now an error with Python 3.7: https://docs.python.org/3.8/library/exceptions.html#StopIteration Just use return instead. Signed-off-by: Jiri Slaby <[email protected]> --- mesonbuild/compilers/compilers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 762e7c56..56a0ab2b 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -796,7 +796,7 @@ class Compiler: mlog.debug('Cached compiler stdout:\n', p.stdo) mlog.debug('Cached compiler stderr:\n', p.stde) yield p - raise StopIteration + return try: with tempfile.TemporaryDirectory() as tmpdirname: if isinstance(code, str): -- 2.12.3
