import python-ply-3.9-8.el8

This commit is contained in:
CentOS Sources 2020-01-21 14:41:29 -05:00 committed by Stepan Oksanichenko
parent 349ac54b36
commit a98e7439e8
2 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,27 @@
From 129a530a7165dbb83ab9a5a723318b51dcd59edd Mon Sep 17 00:00:00 2001
From: Christian Heimes <cheimes@redhat.com>
Date: Mon, 11 Nov 2019 14:38:29 +0100
Subject: [PATCH] Make MD5 fingerprint FIPS compatible
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1747490
Signed-off-by: Christian Heimes <cheimes@redhat.com>
---
ply/yacc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ply/yacc.py b/ply/yacc.py
index 6842832..9e1b07a 100644
--- a/ply/yacc.py
+++ b/ply/yacc.py
@@ -2963,7 +2963,7 @@ class ParserReflect(object):
except ImportError:
from md5 import md5
try:
- sig = md5()
+ sig = md5(usedforsecurity=False)
if self.start:
sig.update(self.start.encode('latin-1'))
if self.prec:
--
2.23.0

View File

@ -16,12 +16,14 @@
Name: python-%{modname}
Summary: Python Lex-Yacc
Version: 3.9
Release: 7%{?dist}
Release: 8%{?dist}
License: BSD
URL: http://www.dabeaz.com/ply/
Source0: http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz
BuildArch: noarch
Patch1: Make-MD5-fingerprint-FIPS-compatible.patch
%description
PLY is a straightforward lex/yacc implementation. Here is a list of its
essential features:
@ -85,7 +87,12 @@ Python 3 version.
%endif # with python3
%prep
%autosetup -c
%autosetup -c -N
pushd %{modname}-%{version}
%patch1 -p1
popd
%if %{with python2}
cp -ai %{modname}-%{version} python2
find python2/example/ -type f -exec chmod -x {} ';'
@ -157,6 +164,10 @@ popd
%endif # with python3
%changelog
* Mon Nov 11 2019 Christian Heimes <cheimes@redhat.com> - 3.9-8
- Make MD5 fingerprint FIPS compliant
- Resolves: rhbz#1747490
* Fri Jun 15 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.9-7
- Conditionalize the python2 subpackage