diff options
| author | Peter Marko <peter.marko@siemens.com> | 2026-01-31 19:46:09 +0100 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-02-09 09:35:47 +0530 |
| commit | 0182c8c2691deb05830d2d741a744dbc96e7340b (patch) | |
| tree | 934ea04948f0f6427bc922820f65331002776eb9 /meta-python/recipes-devtools/python | |
| parent | e2001fa66c536a552f633c2ced28831fc3360ab4 (diff) | |
| download | meta-openembedded-0182c8c2691deb05830d2d741a744dbc96e7340b.tar.gz | |
python3-m2crypto: workaround for swig issue with sys/types.h
Upgrade to openssl 3.4.0 added sys/types.h into include/openssl/e_os2.h
Unfortunetelly swig has issue with this and the build broke.
Add a workaroung to remove this include until swig is fixed.
In our setup this include is not necessary.
Upstream issue: https://github.com/swiftlang/swift/issues/69311
(From meta-openembedded rev: f9158ce32fffa6f18eed4008c3295146c81d55ea)
This backport is part of effort to upgrade openssl to LTS in scarthgap.
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb index 736399c9d2..dce459477f 100644 --- a/meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb | |||
| @@ -46,6 +46,11 @@ export SWIG_FEATURES | |||
| 46 | 46 | ||
| 47 | export STAGING_DIR | 47 | export STAGING_DIR |
| 48 | 48 | ||
| 49 | do_configure:prepend() { | ||
| 50 | # workaround for https://github.com/swiftlang/swift/issues/69311 | ||
| 51 | sed -i "/sys\/types.h/d" ${RECIPE_SYSROOT}${includedir}/openssl/e_os2.h | ||
| 52 | } | ||
| 53 | |||
| 49 | do_install:append() { | 54 | do_install:append() { |
| 50 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc | 55 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc |
| 51 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc | 56 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc |
