diff options
| author | Haixiao Yan <haixiao.yan.cn@windriver.com> | 2025-11-03 21:56:44 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-04 16:52:46 -0800 |
| commit | 076217856e246a9eed9e8bafafa4876f70980860 (patch) | |
| tree | 93820cd22f19acf1f998e12105e0f0b2b1033ef4 /meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb | |
| parent | c9510a21cc40b0e736b14a6fca60c73d6fb4f9f1 (diff) | |
| download | meta-openembedded-076217856e246a9eed9e8bafafa4876f70980860.tar.gz | |
python3-m2crypto: correct struct packing on 32-bit with _TIME_BITS=64
Fixes:
# python3 -munittest -v test_ssl.MiscSSLClientTestCase.test_server_simple_timeouts
test_server_simple_timeouts (test_ssl.MiscSSLClientTestCase.test_server_simple_timeouts) ... ERROR
======================================================================
ERROR: test_server_simple_timeouts (test_ssl.MiscSSLClientTestCase.test_server_simple_timeouts)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/python3-m2crypto/tests/test_ssl.py", line 474, in test_server_simple_timeouts
s.set_socket_read_timeout(SSL.timeout())
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/M2Crypto/SSL/Connection.py", line 680, in set_socket_read_timeout
self.socket.setsockopt(
~~~~~~~~~~~~~~~~~~~~~~^
socket.SOL_SOCKET, socket.SO_RCVTIMEO, timeo.pack()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
OSError: [Errno 22] Invalid argument
Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb index 0a631c7a07..9aac7b344f 100644 --- a/meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb | |||
| @@ -8,6 +8,8 @@ SRC_URI[sha256sum] = "13c2fa89562f7b8af40cc74b55f490be5e2ab8ccfb739f11c16d3ce622 | |||
| 8 | 8 | ||
| 9 | SRC_URI += " \ | 9 | SRC_URI += " \ |
| 10 | file://0001-setup.py-Make-the-cmd-available.patch \ | 10 | file://0001-setup.py-Make-the-cmd-available.patch \ |
| 11 | file://0001-fix-allow-64-bit-time_t-on-32-bit-systems-in-test_is.patch \ | ||
| 12 | file://0002-fix-correct-struct-packing-on-32-bit-with-_TIME_BITS.patch \ | ||
| 11 | " | 13 | " |
| 12 | 14 | ||
| 13 | inherit pypi siteinfo python_setuptools_build_meta | 15 | inherit pypi siteinfo python_setuptools_build_meta |
