mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 06:16:04 +01:00
python3-m2crypto: address build failure with openssl 3.x
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
This commit is contained in:
parent
539a6d36f1
commit
d5b6841bf8
|
|
@ -0,0 +1,28 @@
|
|||
From 0d824e5c2ab13e761ffaeabdccf9513d5b8f280d Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex@linutronix.de>
|
||||
Date: Fri, 8 Oct 2021 11:18:35 +0200
|
||||
Subject: [PATCH] setup.py: address openssl 3.x build issue
|
||||
|
||||
swig throws:
|
||||
| /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.
|
||||
|
||||
I'm not sure why; upstream should take a look.
|
||||
|
||||
Upstream-Status: Inappropriate [workaround]
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
---
|
||||
setup.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 2c65404..74704bc 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -192,6 +192,7 @@ class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
|
||||
self.swig_opts.append('-includeall')
|
||||
self.swig_opts.append('-modern')
|
||||
+ self.swig_opts.append('-cpperraswarn')
|
||||
self.swig_opts.append('-builtin')
|
||||
|
||||
# These two lines are a workaround for
|
||||
|
|
@ -7,8 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e"
|
|||
FILESEXTRAPATHS:prepend := "${THISDIR}/python-m2crypto:"
|
||||
|
||||
SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \
|
||||
file://cross-compile-platform.patch \
|
||||
file://avoid-host-contamination.patch \
|
||||
file://cross-compile-platform.patch \
|
||||
file://avoid-host-contamination.patch \
|
||||
file://0001-setup.py-address-openssl-3.x-build-issue.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "99f2260a30901c949a8dc6d5f82cd5312ffb8abc92e76633baf231bbbcb2decb"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user