AlmaLinux changes

This commit is contained in:
Andrew Lukoshko 2021-09-15 11:28:21 +00:00
parent 155e533f82
commit 15c0832f8c
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -Naur Python-2.7.17.orig/Lib/platform.py Python-2.7.17.alma/Lib/platform.py
--- Python-2.7.17.orig/Lib/platform.py 2019-10-19 18:38:44.000000000 +0000
+++ Python-2.7.17.alma/Lib/platform.py 2021-03-22 07:54:35.254207418 +0000
@@ -291,7 +291,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')

View File

@ -2,6 +2,8 @@
# Conditionals and other variables controlling the build
# ======================================================
%global dist %{?dist}.alma
# Note that the bcond macros are named for the CLI option they create.
# "%%bcond_without" means "ENABLE by default and create a --without option"
@ -788,6 +790,7 @@ Patch377: 00377-CVE-2022-0391.patch
# above:
Patch5000: 05000-autotool-intermediates.patch
Patch5001: python-2.7-almalinux_support.patch
# ======================================================
# Additional metadata, and subpackages
@ -1115,6 +1118,7 @@ find -name "*~" |xargs rm -f
%patch5000 -p0 -b .autotool-intermediates
%endif
%patch5001 -p1
# ======================================================
# Configuring and building the code:
@ -2043,6 +2047,9 @@ fi
# ======================================================
%changelog
* Fri Apr 08 2022 Andrew Lukoshko <alukoshko@almalinux.org> - 2.7.18-10.alma
- Add AlmaLinux to supported distros
* Tue Feb 08 2022 Charalampos Stratakis <cstratak@redhat.com> - 2.7.18-10
- Security fix for CVE-2022-0391: urlparse does not sanitize URLs containing ASCII newline and tabs
Resolves: rhbz#2047376