From ae3f901913a5810beb1e3039474202ddc19136ae Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Jan 19 2017 19:56:23 +0000 Subject: Skip test_aead_aes_gcm during rpmbuild --- diff --git a/00258-fix-test_aead_aes_gcm.patch b/00258-fix-test_aead_aes_gcm.patch new file mode 100644 index 0000000..1d061fd --- /dev/null +++ b/00258-fix-test_aead_aes_gcm.patch @@ -0,0 +1,12 @@ +diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py +index 8992a01..74170f4 100644 +--- a/Lib/test/test_socket.py ++++ b/Lib/test/test_socket.py +@@ -5458,6 +5458,7 @@ class LinuxKernelCryptoAPI(unittest.TestCase): + self.assertEqual(dec, msg * multiplier) + + @support.requires_linux_version(4, 3) # see test_aes_cbc ++ @unittest.skip('Failure on Kernel 4.9+') + def test_aead_aes_gcm(self): + key = bytes.fromhex('c939cc13397c1d37de6ae0e1cb7c423c') + iv = bytes.fromhex('b3d8cc017cbb89b39e0f67e2') diff --git a/python3.spec b/python3.spec index 99242fe..c86f199 100644 --- a/python3.spec +++ b/python3.spec @@ -417,6 +417,12 @@ Patch253: 00253-fix-HAVE_LONG_LONG-compatibility.patch # Fixed upstream: https://bugs.python.org/issue29085 Patch254: 00254-make-Random.seed-actually-use-OS-randomness.patch +# 00258 # +# Kernel 4.9 introduced some changes to its crypto API +# making test_aead_aes_gcm fail, so skipping the test for now +# Reported upstream: http://bugs.python.org/issue29324 +Patch258: 00258-fix-test_aead_aes_gcm.patch + # (New patches go here ^^^) # # When adding new patches to "python" and "python3" in Fedora, EL, etc., @@ -659,6 +665,7 @@ sed -r -i s/'_PIP_VERSION = "[0-9.]+"'/'_PIP_VERSION = "%{pip_version}"'/ Lib/en %patch250 -p1 %patch253 -p1 %patch254 -p1 +%patch258 -p1 # Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there # are many differences between 2.6 and the Python 3 library. @@ -1579,6 +1586,7 @@ rm -fr %{buildroot} %changelog * Mon Jan 16 2017 Charalampos Stratakis - 3.6.0-7 - Fix error check, so that Random.seed actually uses OS randomness (rhbz#1412275) +- Skip test_aead_aes_gcm during rpmbuild * Thu Jan 12 2017 Igor Gnatenko - 3.6.0-6 - Rebuild for readline 7.x