summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-m2crypto
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-05-01 12:04:27 -0700
committerKhem Raj <raj.khem@gmail.com>2021-05-03 08:05:21 -0700
commitb8bbcd4dea422be57123d75fbf77db6d33542b06 (patch)
tree17575e74c76687ac01ecdd69aed7a71614941326 /meta-python/recipes-devtools/python/python-m2crypto
parent57baca4bc1b681482bc014508d28f7def5949c33 (diff)
downloadmeta-openembedded-b8bbcd4dea422be57123d75fbf77db6d33542b06.tar.gz
python3-m2crypto: Upgrade to 0.37.1
Unifiy .inc into .bb Add patches to fix issues with openssl 1.1.x Remove m2crypto-0.26.4-gcc_macros patch, its no longer needed Refresh existing patches Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-m2crypto')
-rw-r--r--meta-python/recipes-devtools/python/python-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch35
-rw-r--r--meta-python/recipes-devtools/python/python-m2crypto/cross-compile-platform.patch33
-rw-r--r--meta-python/recipes-devtools/python/python-m2crypto/m2crypto-0.26.4-gcc_macros.patch35
3 files changed, 0 insertions, 103 deletions
diff --git a/meta-python/recipes-devtools/python/python-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch b/meta-python/recipes-devtools/python/python-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch
deleted file mode 100644
index b339d93f75..0000000000
--- a/meta-python/recipes-devtools/python/python-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From dfb83a41aaeae326e9b6f02b233af375bc7b8815 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Fri, 29 Mar 2013 15:17:17 +0100
4Subject: [PATCH] setup.py: link in sysroot, not in host directories
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7
8Upstream-status: Unknown
9---
10 setup.py | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
12
13Index: M2Crypto-0.30.1/setup.py
14===================================================================
15--- M2Crypto-0.30.1.orig/setup.py
16+++ M2Crypto-0.30.1/setup.py
17@@ -130,6 +130,7 @@ class _M2CryptoBuildExt(build_ext.build_
18 self.set_undefined_options('build', ('bundledlls', 'bundledlls'))
19
20 self.libraries = ['ssl', 'crypto']
21+ self.openssl = os.environ.get( "STAGING_DIR" )
22 if sys.platform == 'win32':
23 self.libraries = ['ssleay32', 'libeay32']
24 if self.openssl and openssl_version(self.openssl, 0x10100000, True):
25@@ -150,8 +151,8 @@ class _M2CryptoBuildExt(build_ext.build_
26
27 if self.openssl is not None:
28 log.debug('self.openssl = %s', self.openssl)
29- openssl_library_dir = os.path.join(self.openssl, 'lib')
30- openssl_include_dir = os.path.join(self.openssl, 'include')
31+ openssl_library_dir = os.environ.get( "STAGING_LIBDIR" )
32+ openssl_include_dir = os.environ.get( "STAGING_INCDIR" )
33
34 self.library_dirs.append(openssl_library_dir)
35 self.include_dirs.append(openssl_include_dir)
diff --git a/meta-python/recipes-devtools/python/python-m2crypto/cross-compile-platform.patch b/meta-python/recipes-devtools/python/python-m2crypto/cross-compile-platform.patch
deleted file mode 100644
index 4b64f4613c..0000000000
--- a/meta-python/recipes-devtools/python/python-m2crypto/cross-compile-platform.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1Do not compute platform, this does not work in cross compile environment
2since it pokes at the system for getting architecture values
3
4Upstream-Status: Inappropriate
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6
7Index: M2Crypto-0.30.1/setup.py
8===================================================================
9--- M2Crypto-0.30.1.orig/setup.py
10+++ M2Crypto-0.30.1/setup.py
11@@ -160,22 +160,6 @@ class _M2CryptoBuildExt(build_ext.build_
12 log.debug('self.include_dirs = %s', self.include_dirs)
13 log.debug('self.library_dirs = %s', self.library_dirs)
14
15- if platform.system() == "Linux":
16- # For RedHat-based distros, the '-D__{arch}__' option for
17- # Swig needs to be normalized, particularly on i386.
18- mach = platform.machine().lower()
19- if mach in ('i386', 'i486', 'i586', 'i686'):
20- arch = '__i386__'
21- elif mach in ('ppc64', 'powerpc64', 'ppc64le', 'ppc64el'):
22- arch = '__powerpc64__'
23- elif mach in ('ppc', 'powerpc'):
24- arch = '__powerpc__'
25- else:
26- arch = '__%s__' % mach
27- self.swig_opts.append('-D%s' % arch)
28- if mach in ('ppc64le', 'ppc64el'):
29- self.swig_opts.append('-D_CALL_ELF=2')
30-
31 self.swig_opts.extend(['-I%s' % i for i in self.include_dirs])
32
33 # Some Linux distributor has added the following line in
diff --git a/meta-python/recipes-devtools/python/python-m2crypto/m2crypto-0.26.4-gcc_macros.patch b/meta-python/recipes-devtools/python/python-m2crypto/m2crypto-0.26.4-gcc_macros.patch
deleted file mode 100644
index 7f6dd29f8a..0000000000
--- a/meta-python/recipes-devtools/python/python-m2crypto/m2crypto-0.26.4-gcc_macros.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1Imported from Fedora
2
3Index: M2Crypto-0.30.1/SWIG/_m2crypto.i
4===================================================================
5--- M2Crypto-0.30.1.orig/SWIG/_m2crypto.i
6+++ M2Crypto-0.30.1/SWIG/_m2crypto.i
7@@ -8,6 +8,11 @@
8 *
9 */
10
11+%import "gcc_macros.h"
12+
13+%ignore WCHAR_MAX;
14+%ignore WCHAR_MIN;
15+
16 %module(threads=1) m2crypto
17 /* We really don't need threadblock (PyGILState_Ensure() etc.) anywhere.
18 Disable threadallow as well, only enable it for operations likely to
19@@ -15,11 +20,6 @@
20 %nothreadblock;
21 %nothreadallow;
22
23-#if SWIG_VERSION >= 0x030000
24-#define __WCHAR_MAX__ __WCHAR_MAX
25-#define __WCHAR_MIN__ __WCHAR_MIN
26-#endif
27-
28 %{
29 #ifdef _WIN32
30 #define _WINSOCKAPI_
31@@ -95,4 +95,3 @@ static PyObject *x509_store_verify_cb_fu
32 %constant int encrypt = 1;
33 %constant int decrypt = 0;
34 #endif
35-