From 3714d7eba9872eecdaf9d8d50478460e91050bb8 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Wed, 15 Sep 2021 11:30:41 +0000 Subject: [PATCH] AlmaLinux changes --- SOURCES/python-3.6-almalinux_support.patch | 12 ++++++++++++ SPECS/python3.spec | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 SOURCES/python-3.6-almalinux_support.patch 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 1f4699d..39b3e64 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 @@ -600,6 +601,7 @@ Patch359: 00359-CVE-2021-23336.patch # # https://fedoraproject.org/wiki/SIGs/Python/PythonPatches +Patch1000: python-3.6-almalinux_support.patch # ========================================== # Descriptions, and metadata for subpackages @@ -919,6 +921,8 @@ git apply %{PATCH351} %patch357 -p1 %patch359 -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 @@ -1843,6 +1847,9 @@ fi # ====================================================== %changelog +* Mon May 24 2021 Andrew Lukoshko - 3.6.8-37.alma +- Add AlmaLinux to supported distros + * Thu Mar 04 2021 Petr Viktorin - 3.6.8-37 - Fix for CVE-2021-23336 Resolves: rhbz#1928904