diff options
| author | Peter Marko <peter.marko@siemens.com> | 2024-12-01 10:01:19 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-12-03 09:44:31 -0800 |
| commit | f9158ce32fffa6f18eed4008c3295146c81d55ea (patch) | |
| tree | 7c37bf674d1358f5a943a306b071a7e1be73a103 /meta-python | |
| parent | a68a7f7b43fb29f3168c595012575d50a30b349c (diff) | |
| download | meta-openembedded-f9158ce32fffa6f18eed4008c3295146c81d55ea.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
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb index 6b178cd127..b50ae31e4c 100644 --- a/meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.42.0.bb | |||
| @@ -35,6 +35,11 @@ export SWIG_FEATURES | |||
| 35 | 35 | ||
| 36 | export STAGING_DIR | 36 | export STAGING_DIR |
| 37 | 37 | ||
| 38 | do_configure:prepend() { | ||
| 39 | # workaround for https://github.com/swiftlang/swift/issues/69311 | ||
| 40 | sed -i "/sys\/types.h/d" ${RECIPE_SYSROOT}${includedir}/openssl/e_os2.h | ||
| 41 | } | ||
| 42 | |||
| 38 | do_install:append() { | 43 | do_install:append() { |
| 39 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc | 44 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc |
| 40 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc | 45 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc |
