From 5e8d0b2102eb45624483952ef2afd8589ba332845cae8c9138a8a6f5aac91c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 2 Feb 2018 13:36:13 +0000 Subject: [PATCH] - Add patch to fix build on ppc64le to not clobber r2 register: * greenlet-ppc64le.patch - Version update to 0.4.13: * Support for Python 3.7 * Support for MinGW x64 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-greenlet?expand=0&rev=41 --- greenlet-0.4.12.tar.gz | 3 --- greenlet-0.4.13.tar.gz | 3 +++ greenlet-ppc64le.patch | 23 +++++++++++++++++++++++ python-greenlet.changes | 13 +++++++++++++ python-greenlet.spec | 22 ++++++++++------------ 5 files changed, 49 insertions(+), 15 deletions(-) delete mode 100644 greenlet-0.4.12.tar.gz create mode 100644 greenlet-0.4.13.tar.gz create mode 100644 greenlet-ppc64le.patch diff --git a/greenlet-0.4.12.tar.gz b/greenlet-0.4.12.tar.gz deleted file mode 100644 index 5208d5e..0000000 --- a/greenlet-0.4.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e4c99c6010a5d153d481fdaf63b8a0782825c0721506d880403a3b9b82ae347e -size 57319 diff --git a/greenlet-0.4.13.tar.gz b/greenlet-0.4.13.tar.gz new file mode 100644 index 0000000..937b99b --- /dev/null +++ b/greenlet-0.4.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fef83d43bf87a5196c91e73cb9772f945a4caaff91242766c5916d1dd1381e4 +size 58382 diff --git a/greenlet-ppc64le.patch b/greenlet-ppc64le.patch new file mode 100644 index 0000000..664b735 --- /dev/null +++ b/greenlet-ppc64le.patch @@ -0,0 +1,23 @@ +From d32e64abf2443ada592f6a1e5d74bee35db0f221 Mon Sep 17 00:00:00 2001 +From: "Laszlo Boszormenyi (GCS)" +Date: Sat, 9 Sep 2017 07:57:16 +0000 +Subject: [PATCH] Don't clobber 'r2' register on ppc64el + +It was invalid even before, now GCC 7 no longer accept this. +--- + platform/switch_ppc64_linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/platform/switch_ppc64_linux.h b/platform/switch_ppc64_linux.h +index 0f20756..cd7d748 100644 +--- a/platform/switch_ppc64_linux.h ++++ b/platform/switch_ppc64_linux.h +@@ -56,7 +56,7 @@ + #define ALTIVEC_REGS + #endif + +-#define REGS_TO_SAVE "r2", "r14", "r15", "r16", "r17", "r18", "r19", "r20", \ ++#define REGS_TO_SAVE "r14", "r15", "r16", "r17", "r18", "r19", "r20", \ + "r21", "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r31", \ + "fr14", "fr15", "fr16", "fr17", "fr18", "fr19", "fr20", "fr21", \ + "fr22", "fr23", "fr24", "fr25", "fr26", "fr27", "fr28", "fr29", \ diff --git a/python-greenlet.changes b/python-greenlet.changes index 137ef47..157a94c 100644 --- a/python-greenlet.changes +++ b/python-greenlet.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Feb 2 13:34:46 UTC 2018 - tchvatal@suse.com + +- Add patch to fix build on ppc64le to not clobber r2 register: + * greenlet-ppc64le.patch + +------------------------------------------------------------------- +Fri Feb 2 13:32:25 UTC 2018 - tchvatal@suse.com + +- Version update to 0.4.13: + * Support for Python 3.7 + * Support for MinGW x64 + ------------------------------------------------------------------- Wed Apr 19 17:46:25 UTC 2017 - toddrme2178@gmail.com diff --git a/python-greenlet.spec b/python-greenlet.spec index 4f7b04e..ff1a7aa 100644 --- a/python-greenlet.spec +++ b/python-greenlet.spec @@ -1,7 +1,7 @@ # # spec file for package python-greenlet # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,23 +17,22 @@ # -%bcond_without test - %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-greenlet -Version: 0.4.12 +Version: 0.4.13 Release: 0 -Url: http://pypi.python.org/pypi/greenlet Summary: Lightweight in-process concurrent programming License: MIT Group: Development/Libraries/Python +Url: http://pypi.python.org/pypi/greenlet Source0: https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: gcc-c++ -BuildRequires: fdupes -BuildRequires: python-rpm-macros +Patch0: greenlet-ppc64le.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx %python_subpackages @@ -54,6 +53,7 @@ This package contains header files required for C modules development. %prep %setup -q -n greenlet-%{version} +%patch0 -p1 %build export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing" @@ -71,13 +71,11 @@ export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing" %endif %files %{python_files} -%defattr(-,root,root) %doc AUTHORS NEWS README.rst LICENSE* %doc doc/_build/html/ %{python_sitearch}/* -%files %{python_files devel} -%defattr(-,root,root,-) +%files %{python_files devel} %doc AUTHORS LICENSE* %{_includedir}/python%{python_version}*/greenlet/