summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch
diff options
context:
space:
mode:
authorHaixiao Yan <haixiao.yan.cn@windriver.com>2025-10-16 15:27:58 +0800
committerKhem Raj <raj.khem@gmail.com>2025-10-16 08:48:34 -0700
commit97a9a1b93b8d2b333de87b4cb2ec2bce4c415ffe (patch)
tree8254d7c6b154e465ca4d4f5dfc721e3f7719f869 /meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch
parent19cbdbcac664b16e3c669e724d43725b8b00d2ef (diff)
downloadmeta-openembedded-97a9a1b93b8d2b333de87b4cb2ec2bce4c415ffe.tar.gz
python3-m2crypto: upgrade 0.45.1 -> 0.46.2
python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch refreshed for 0.46.2 python3-m2crypto/0001-timeout.py-use-qq-format-when-time_t-is-64bit-on-32b.patch removed, this patch doesn't work for 0.45.1 and 0.46.2. Fix the following test hang: test_IP_call (tests.test_ssl.HttpslibSSLSNIClientTestCase.test_IP_call) ... Changelog: =========== 0.46.2 - 2025-10-02 ------------------- - fix[m2xmlrpclib]: make the module compatible with Python 3.6 0.46.1 - 2025-10-02 ------------------- - Correct license to BSD-2-Clause and update references - Specify in setup.cfg that we require Python >= 3.6 0.46.0 - 2025-10-01 ------------------- (Tested on Pythons between 3.6 and 3.14.0~rc3) - M2Crypto closes SSL connection on closing HTTPS Connection, and some other related issues (#203, #278) - Modernize C API by eliminating use of deprecated PyBytes_AsStringAndSize and related functions with Python Buffer Protocol (#375) - Whole project is completely covered with type hints and is checked by mypy (also while doing that, the whole project was blackened) (#344) - Add logging support to C extension code sending messages to the Python logging - Introducing first efforts to support Engine object (#229) - Reworked and fixed M2Crypto.m2xmlrpclib module (#163) - Reverted removal of demo/ subdirectory - Improve SMIME documentation (#377) - Some other minor bugs, improvements, and removal of dead code 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/0001-setup.py-Make-the-cmd-available.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch25
1 files changed, 16 insertions, 9 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch b/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch
index c4262985ba..12216ce46a 100644
--- a/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch
+++ b/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch
@@ -1,4 +1,4 @@
1From eaeb95ec64762a58dde7cf368fc17188382e7df6 Mon Sep 17 00:00:00 2001 1From 6262f49de177a79bc17f8d583aa5a7acaf48bf9c Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com> 2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Fri, 28 Mar 2025 12:13:26 +0800 3Date: Fri, 28 Mar 2025 12:13:26 +0800
4Subject: [PATCH] setup.py: Make the cmd available 4Subject: [PATCH] setup.py: Make the cmd available
@@ -19,19 +19,26 @@ Upstream-Status: Inappropriate [oe specific]
19 19
20Signed-off-by: Mingli Yu <mingli.yu@windriver.com> 20Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
21--- 21---
22 setup.py | 2 +- 22 setup.py | 6 ++++--
23 1 file changed, 1 insertion(+), 1 deletion(-) 23 1 file changed, 4 insertions(+), 2 deletions(-)
24 24
25diff --git a/setup.py b/setup.py 25diff --git a/setup.py b/setup.py
26index 9938e67..21e2346 100644 26index 792d7365b6ed..5b8a5d791793 100644
27--- a/setup.py 27--- a/setup.py
28+++ b/setup.py 28+++ b/setup.py
29@@ -230,7 +230,7 @@ class _M2CryptoBuildExt(build_ext.build_ext): 29@@ -208,8 +208,10 @@ class _M2CryptoBuildExt(build_ext.build_ext):
30 with open( 30 if sys.platform != "win32":
31 "src/SWIG/x509_v_flag.h", "w", encoding="utf-8" 31 # generate src/SWIG/x509_v_flag.h to overcome weaknesses of swig
32 ) as x509_v_h: 32 # https://todo.sr.ht/~mcepl/m2crypto/298
33- cmd = [shutil.which(os.environ.get('CC', 'gcc'))] 33- with open("src/SWIG/x509_v_flag.h", "w", encoding="utf-8") as x509_v_h:
34- cmd = [shutil.which(os.environ.get("CC", "gcc"))]
35+ with open(
36+ "src/SWIG/x509_v_flag.h", "w", encoding="utf-8"
37+ ) as x509_v_h:
34+ cmd = os.environ.get('CC', 'gcc').split() 38+ cmd = os.environ.get('CC', 'gcc').split()
35 cflags = os.environ.get("CFLAGS") 39 cflags = os.environ.get("CFLAGS")
36 if cflags is not None: 40 if cflags is not None:
37 cmd += cflags.split() 41 cmd += cflags.split()
42--
432.34.1
44