diff --git a/SOURCES/python-3.6-almalinux_support.patch b/SOURCES/python-3.6-almalinux_support.patch new file mode 100644 index 0000000..9332247 --- /dev/null +++ b/SOURCES/python-3.6-almalinux_support.patch @@ -0,0 +1,12 @@ +diff -Naur Python-3.6.8.orig/Lib/platform.py Python-3.6.8.almalinux/Lib/platform.py +--- Python-3.6.8.orig/Lib/platform.py 2018-12-24 00:37:14.000000000 +0300 ++++ Python-3.6.8.almalinux/Lib/platform.py 2021-03-09 11:46:50.252385459 +0300 +@@ -297,7 +297,7 @@ + # and http://www.die.net/doc/linux/man/man1/lsb_release.1.html + + _supported_dists = ( +- 'SuSE', 'debian', 'fedora', 'redhat', 'centos', ++ 'SuSE', 'debian', 'fedora', 'redhat', 'centos', 'almalinux', + 'mandrake', 'mandriva', 'rocks', 'slackware', 'yellowdog', 'gentoo', + 'UnitedLinux', 'turbolinux', 'arch', 'mageia') + diff --git a/SPECS/python3.spec b/SPECS/python3.spec index 785689a..68cc26b 100644 --- a/SPECS/python3.spec +++ b/SPECS/python3.spec @@ -1,6 +1,7 @@ # ================== # Top-level metadata # ================== +%global dist %{?dist}.alma Name: python3 Summary: Interpreter of the Python programming language @@ -651,6 +652,9 @@ Patch370: 00370-GIL-monotonic-clock.patch # Tracking bug: https://bugzilla.redhat.com/show_bug.cgi?id=2036020 Patch372: 00372-CVE-2021-4189.patch +Patch1000: python-3.6-almalinux_support.patch + + # (New patches go here ^^^) # # When adding new patches to "python" and "python3" in Fedora, EL, etc., @@ -991,6 +995,8 @@ git apply %{PATCH351} %patch370 -p1 %patch372 -p1 +%patch1000 -p1 + # Remove files that should be generated by the build # (This is after patching, so that we can use patches directly from upstream) rm configure pyconfig.h.in @@ -1915,6 +1921,9 @@ fi # ====================================================== %changelog +* Fri Apr 01 2022 Eduard Abdullin - 3.6.8-45.alma +- AlmaLinux changes + * Fri Jan 07 2022 Charalampos Stratakis - 3.6.8-45 - Security fix for CVE-2021-4189: ftplib should not use the host from the PASV response Resolves: rhbz#2036020