diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2024-10-16 21:35:03 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-10-16 14:07:30 -0700 |
| commit | 0b3f4ed292c4b494a83f912184ad284edc72c2e3 (patch) | |
| tree | 26aecc1e1f69421d7bcccb73ed11fba736d23812 /meta-python/recipes-devtools/python/python3-m2crypto | |
| parent | 4a78fcff7cefb9bbf1d6223b5ad90af0f8e7ae14 (diff) | |
| download | meta-openembedded-0b3f4ed292c4b494a83f912184ad284edc72c2e3.tar.gz | |
python3-m2crypto: update 0.40.1 -> 0.42.0
This addresses python 3.13 issues.
Use build_meta instead of classic setuptools.
Drop all setup.py patches as no longer necessary.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-m2crypto')
4 files changed, 0 insertions, 117 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-address-openssl-3.x-build-issue.patch b/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-address-openssl-3.x-build-issue.patch deleted file mode 100644 index c67e50803b..0000000000 --- a/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-address-openssl-3.x-build-issue.patch +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | From 0d824e5c2ab13e761ffaeabdccf9513d5b8f280d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Fri, 8 Oct 2021 11:18:35 +0200 | ||
| 4 | Subject: [PATCH] setup.py: address openssl 3.x build issue | ||
| 5 | |||
| 6 | swig throws: | ||
| 7 | | /home/alex/development/poky/build-metaoe/tmp/work/x86_64-linux/python3-m2crypto-native/0.38.0-r0/recipe-sysroot-native/usr/include/openssl/macros.h:155: Error: CPP #error ""OPENSSL_API_COMPAT expresses an impossible API compatibility level"". Use the -cpperraswarn option to continue swig processing. | ||
| 8 | |||
| 9 | I'm not sure why; upstream should take a look. | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [workaround] | ||
| 12 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 13 | --- | ||
| 14 | setup.py | 1 + | ||
| 15 | 1 file changed, 1 insertion(+) | ||
| 16 | |||
| 17 | diff --git a/setup.py b/setup.py | ||
| 18 | index 2c65404..74704bc 100644 | ||
| 19 | --- a/setup.py | ||
| 20 | +++ b/setup.py | ||
| 21 | @@ -192,6 +192,7 @@ class _M2CryptoBuildExt(build_ext.build_ext): | ||
| 22 | |||
| 23 | self.swig_opts.append('-includeall') | ||
| 24 | self.swig_opts.append('-modern') | ||
| 25 | + self.swig_opts.append('-cpperraswarn') | ||
| 26 | self.swig_opts.append('-builtin') | ||
| 27 | |||
| 28 | # These two lines are a workaround for | ||
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch b/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch deleted file mode 100644 index 0baadfcaa5..0000000000 --- a/meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From dfb83a41aaeae326e9b6f02b233af375bc7b8815 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
| 3 | Date: Fri, 29 Mar 2013 15:17:17 +0100 | ||
| 4 | Subject: [PATCH] setup.py: link in sysroot, not in host directories | ||
| 5 | |||
| 6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
| 7 | |||
| 8 | Upstream-Status: Pending [Unknown] | ||
| 9 | --- | ||
| 10 | setup.py | 6 +++--- | ||
| 11 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 12 | |||
| 13 | --- a/setup.py | ||
| 14 | +++ b/setup.py | ||
| 15 | @@ -135,6 +135,7 @@ class _M2CryptoBuildExt(build_ext.build_ | ||
| 16 | self.set_undefined_options('build', ('bundledlls', 'bundledlls')) | ||
| 17 | |||
| 18 | self.libraries = ['ssl', 'crypto'] | ||
| 19 | + self.openssl = os.environ.get( "STAGING_DIR" ) | ||
| 20 | if sys.platform == 'win32': | ||
| 21 | self.libraries = ['ssleay32', 'libeay32'] | ||
| 22 | if self.openssl and openssl_version(self.openssl, | ||
| 23 | @@ -159,8 +160,8 @@ class _M2CryptoBuildExt(build_ext.build_ | ||
| 24 | |||
| 25 | if self.openssl is not None: | ||
| 26 | log.debug('self.openssl = %s', self.openssl) | ||
| 27 | - openssl_library_dir = os.path.join(self.openssl, 'lib') | ||
| 28 | - openssl_include_dir = os.path.join(self.openssl, 'include') | ||
| 29 | + openssl_library_dir = os.environ.get( "STAGING_LIBDIR" ) | ||
| 30 | + openssl_include_dir = os.environ.get( "STAGING_INCDIR" ) | ||
| 31 | |||
| 32 | self.library_dirs.append(openssl_library_dir) | ||
| 33 | self.include_dirs.append(openssl_include_dir) | ||
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch b/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch deleted file mode 100644 index 3cd6f7c276..0000000000 --- a/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | Filter out '/usr/include' for swig to avoid host contamination issue. | ||
| 2 | |||
| 3 | Upstream-Status: Inappropriate [cross compile specific] | ||
| 4 | |||
| 5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 6 | --- | ||
| 7 | setup.py | 3 ++- | ||
| 8 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 9 | |||
| 10 | diff --git a/setup.py b/setup.py | ||
| 11 | index 5a12981..389d49f 100644 | ||
| 12 | --- a/setup.py | ||
| 13 | +++ b/setup.py | ||
| 14 | @@ -153,7 +153,8 @@ class _M2CryptoBuildExt(build_ext.build_ext): | ||
| 15 | self.swig_opts.append('-py3') | ||
| 16 | |||
| 17 | # swig seems to need the default header file directories | ||
| 18 | - self.swig_opts.extend(['-I%s' % i for i in _get_additional_includes()]) | ||
| 19 | + self.swig_opts.extend(['-I%s' % i for i in _get_additional_includes() | ||
| 20 | + if i != '/usr/include']) | ||
| 21 | |||
| 22 | log.debug('self.include_dirs = %s', self.include_dirs) | ||
| 23 | log.debug('self.library_dirs = %s', self.library_dirs) | ||
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/cross-compile-platform.patch b/meta-python/recipes-devtools/python/python3-m2crypto/cross-compile-platform.patch deleted file mode 100644 index 77ef7e557e..0000000000 --- a/meta-python/recipes-devtools/python/python3-m2crypto/cross-compile-platform.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | Do not compute platform, this does not work in cross compile environment | ||
| 2 | since it pokes at the system for getting architecture values | ||
| 3 | |||
| 4 | Upstream-Status: Inappropriate | ||
| 5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 6 | |||
| 7 | --- a/setup.py | ||
| 8 | +++ b/setup.py | ||
| 9 | @@ -169,24 +169,6 @@ class _M2CryptoBuildExt(build_ext.build_ | ||
| 10 | log.debug('self.include_dirs = %s', self.include_dirs) | ||
| 11 | log.debug('self.library_dirs = %s', self.library_dirs) | ||
| 12 | |||
| 13 | - if platform.system() == "Linux": | ||
| 14 | - # For RedHat-based distros, the '-D__{arch}__' option for | ||
| 15 | - # Swig needs to be normalized, particularly on i386. | ||
| 16 | - mach = platform.machine().lower() | ||
| 17 | - if mach in ('i386', 'i486', 'i586', 'i686'): | ||
| 18 | - arch = '__i386__' | ||
| 19 | - elif mach in ('ppc64', 'powerpc64', 'ppc64le', 'ppc64el'): | ||
| 20 | - arch = '__powerpc64__' | ||
| 21 | - elif mach in ('ppc', 'powerpc'): | ||
| 22 | - arch = '__powerpc__' | ||
| 23 | - else: | ||
| 24 | - arch = '__%s__' % mach | ||
| 25 | - self.swig_opts.append('-D%s' % arch) | ||
| 26 | - if mach in ('ppc64le', 'ppc64el'): | ||
| 27 | - self.swig_opts.append('-D_CALL_ELF=2') | ||
| 28 | - if mach in ('arm64_be'): | ||
| 29 | - self.swig_opts.append('-D__AARCH64EB__') | ||
| 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 | ||
