diff --git a/greenlet-1.0.0-sw.patch b/greenlet-1.0.0-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..b9cda28091e2f5214b9c2d751e0f69f3111ae835 --- /dev/null +++ b/greenlet-1.0.0-sw.patch @@ -0,0 +1,12 @@ +diff -Naur greenlet-1.0.0-bak/src/greenlet/greenlet.c greenlet-1.0.0/src/greenlet/greenlet.c +--- greenlet-1.0.0-bak/src/greenlet/greenlet.c 2022-08-03 07:20:15.655405640 +0000 ++++ greenlet-1.0.0/src/greenlet/greenlet.c 2022-08-03 07:21:07.705405640 +0000 +@@ -349,7 +349,7 @@ + #undef slp_switch + + #ifndef STACK_MAGIC +-# error \ ++#define error \ + "greenlet needs to be ported to this platform, or taught how to detect your compiler properly." + #endif /* !STACK_MAGIC */ + diff --git a/python-greenlet.spec b/python-greenlet.spec index a9bc4d6e7af311b1380c244a96b7b6815c5994eb..bdbc7966b3cf4a6507518e7b501b49774b84b6b2 100644 --- a/python-greenlet.spec +++ b/python-greenlet.spec @@ -1,13 +1,13 @@ Name: python-greenlet Version: 1.0.0 -Release: 2 +Release: 3 Summary: lightweight coroutines for in-process concurrent programming License: Python-2.0 and MIT URL: https://github.com/python-greenlet/greenlet Source0: https://files.pythonhosted.org/packages/92/be/878cc5314fa5aadce33e68738c1a24debe317605196bdfc2049e66bc9c30/greenlet-1.0.0.tar.gz Patch0: 0001-add-loongarch64-architecture-support.patch - +Patch1: greenlet-1.0.0-sw.patch %description The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently @@ -45,6 +45,10 @@ that use python3-greenlet. %patch0 -p1 %endif +%ifarch sw_64 +%patch1 -p1 +%endif + %build %py3_build @@ -65,6 +69,9 @@ that use python3-greenlet. %{_includedir}/python%{python3_version}*/greenlet/ %changelog +* Mon Dec 12 2022 guojiancheng - 1.0.0-3 +- Add sw patch + * Thu Nov 17 2022 huajingyun - 1.0.0-2 - add loongarch64 architecture support