diff --git a/0001-fix-1065-gevent-1.3.0-removes-fast-wsgi-implementati.patch b/0001-fix-1065-gevent-1.3.0-removes-fast-wsgi-implementati.patch new file mode 100644 index 0000000000000000000000000000000000000000..5b358c1b543509ff02ae06c8e37c2de75f33b8ed --- /dev/null +++ b/0001-fix-1065-gevent-1.3.0-removes-fast-wsgi-implementati.patch @@ -0,0 +1,37 @@ +From 19a12f898b7343e16f0d08821de6aac169143752 Mon Sep 17 00:00:00 2001 +From: Marcel Hellkamp +Date: Tue, 27 Nov 2018 19:27:54 +0100 +Subject: [PATCH] fix #1065 gevent-1.3.0 removes 'fast' wsgi implementation. + +--- + bottle.py | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/bottle.py b/bottle.py +index 3a51b38..cb46893 100644 +--- a/bottle.py ++++ b/bottle.py +@@ -2904,14 +2904,16 @@ class GeventServer(ServerAdapter): + * See gevent.wsgi.WSGIServer() documentation for more options. + """ + def run(self, handler): +- from gevent import wsgi, pywsgi, local ++ from gevent import pywsgi, local + if not isinstance(threading.local(), local.local): + msg = "Bottle requires gevent.monkey.patch_all() (before import)" + raise RuntimeError(msg) +- if not self.options.pop('fast', None): wsgi = pywsgi +- self.options['log'] = None if self.quiet else 'default' ++ if self.options.pop('fast', None): ++ depr('The "fast" option has been deprecated and removed by Gevent.') ++ if self.quiet: ++ self.options['log'] = None + address = (self.host, self.port) +- server = wsgi.WSGIServer(address, handler, **self.options) ++ server = pywsgi.WSGIServer(address, handler, **self.options) + if 'BOTTLE_CHILD' in os.environ: + import signal + signal.signal(signal.SIGINT, lambda s, f: server.stop()) +-- +2.39.0.windows.2 + diff --git a/python-bottle.spec b/python-bottle.spec index 68db8017539e9362f1b088f048701a85e14b9954..35d2799a9134b4642b25c87470e4d87ea48c0eb3 100644 --- a/python-bottle.spec +++ b/python-bottle.spec @@ -1,6 +1,6 @@ Name: python-bottle Version: 0.12.13 -Release: 9 +Release: 10 Summary: WSGI micro web-framework for Python. License: MIT URL: http://bottlepy.org @@ -8,6 +8,7 @@ Source0: https://github.com/bottlepy/bottle/archive/%{version}/bottle-%{v Patch0000: CVE-2020-28473.patch #https://github.com/bottlepy/bottle/commit/e140e1b54da721a660f2eb9d58a106b7b3ff2f00 Patch0001: CVE-2022-31799.patch +Patch0002: 0001-fix-1065-gevent-1.3.0-removes-fast-wsgi-implementati.patch BuildArch: noarch BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools @@ -62,6 +63,9 @@ sed -i '/^#!/d' bottle.py %{python3_sitelib}/* %changelog +* Thu Nov 02 2023 zhangliangpengkun - 0.12.13-10 +- fix #1065 gevent-1.3.0 removes 'fast' wsgi implementation. + * Tue Jun 14 2022 yaoxin - 0.12.13-9 - - Fix CVE-2022-31799