Backport fix for CVE-2022-24761

Backport changes based in the fix
done for RHEL 923591398b8553c7ba295dfede592671b653f946

Signed-off-by: Renata Andrade Matos Ravanelli <rravanel@redhat.com>
This commit is contained in:
Renata Andrade Matos Ravanelli 2023-07-21 16:44:57 -04:00 committed by Super User
commit 74f0475310
7 changed files with 674 additions and 2 deletions

View file

@ -1,6 +1,6 @@
Name: python-waitress
Version: 1.4.4
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Waitress WSGI server
License: ZPL-2.1
@ -16,6 +16,15 @@ Source0: v%{version}-nodocs.tar.gz
#
Source1: generate-tarball.sh
# These patches are backports based on RHEL patch #923591398b8553c7ba295dfede592671b653f946
Patch1: 0001-This-patch-is-a-backport-of-commit-e75b0d9.patch
Patch2: 0002-This-patch-is-a-backport-of-commit-1f6059f.patch
Patch3: 0003-This-patch-is-a-backport-of-commit-884bed1.patch
Patch4: 0004-This-patch-is-a-backport-of-commit-d032a66.patch
Patch5: 0005-This-patch-is-a-backport-of-commit-d9bdfa0.patch
Patch6: 0006-This-patch-is-a-backport-of-commit-bd22869.patch
BuildArch: noarch
%global _description %{expand:
@ -34,7 +43,7 @@ BuildRequires: python3-devel
%description -n python3-waitress %{_description}
%prep
%autosetup -n waitress-%{version}-nodocs
%autosetup -n waitress-%{version}-nodocs -p 1
sed -e '/pytest-cover/d' \
-e '/coverage/d' \
-e '/addopts/d' \
@ -59,6 +68,9 @@ sed -e '/pytest-cover/d' \
%{_bindir}/waitress-serve
%changelog
* Fri Jul 21 2023 Renata Ravanelli <rravanel@redhat.com> - 1.4.4-8
- Backport changes to fix CVE-2022-24761
* Wed May 10 2023 Carl George <carl@george.computer> - 1.4.4-7
- Convert to pyproject macros
- Run test suite