diff --git a/.gitignore b/.gitignore index 07a1934..7c485ff 100644 --- a/.gitignore +++ b/.gitignore @@ -80,3 +80,4 @@ numpy-1.4.1.tar.gz /numpy-1.19.1.tar.gz /numpy-1.19.2.tar.gz /numpy-html.zip +/numpy-1.19.3.tar.gz diff --git a/numpy-1.19.2-FIPS.patch b/numpy-1.19.2-FIPS.patch new file mode 100644 index 0000000..3768799 --- /dev/null +++ b/numpy-1.19.2-FIPS.patch @@ -0,0 +1,135 @@ +From f73d993bcb03701f4e9146005a65eb482689140a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Nikola=20Forr=C3=B3?= +Date: Mon, 26 Oct 2020 18:54:22 +0100 +Subject: [PATCH] TST: Make test suite work in FIPS (140-2) Mode +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Tests using MD5 algorithms fail in FIPS Mode because MD5 is not FIPS +compliant. + +Mark usages of MD5 in test suite as not being used for security +purposes to overcome that. + +Signed-off-by: Nikola Forró +--- + numpy/core/tests/test_regression.py | 2 +- + numpy/random/tests/test_generator_mt19937.py | 10 +++++----- + numpy/random/tests/test_random.py | 4 ++-- + numpy/random/tests/test_randomstate.py | 6 +++--- + 4 files changed, 11 insertions(+), 11 deletions(-) + +diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py +index 2e731d4fa..4633174d9 100644 +--- a/numpy/core/tests/test_regression.py ++++ b/numpy/core/tests/test_regression.py +@@ -1509,7 +1509,7 @@ class TestRegression: + from hashlib import md5 + + x = np.array([1, 2, 3], dtype=np.dtype(' - 1:1.19.3-1 +- 1.19.3 + +* Tue Oct 27 2020 Nikola Forró - 1:1.19.2-2 +- Make test suite work in FIPS (140-2) Mode + * Thu Sep 10 2020 Gwyn Ciesla - 1:1.19.2-1 - 1.19.2 diff --git a/sources b/sources index 1e1d177..4e3f228 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (numpy-1.19.2.tar.gz) = e4fe2ca46eaa921a38c04c6e5faab222d51e6cc1af494922815d521de8427d4c4f5f148258b2caf98e4152b9a04138d8ee1a00205fe74b79118c15ee4d4127a4 +SHA512 (numpy-1.19.3.tar.gz) = bd9d7aa778a0ef3f663783a09205b46267249e303066a6724bd7f3063c3f60bb3b0ddf5fd0f62a4ba1aa7a6ab830772a3097dc64cbd4c4c1e55ed8610575db7d SHA512 (numpy-html.zip) = 4a421636523424a0703290b6a0ba53b85a9a9e8a6256363e2481f1c02ae278825c09f2f13d39e99f8aae21f57a4978723f3fc690693520f8c3b45a5b4c5a38ab