diff options
| author | Kai Kang <kai.kang@windriver.com> | 2021-06-24 16:32:04 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-06-28 09:02:47 -0700 |
| commit | cff3116f665c2d17f6a6ae9bbe61025c88da99c0 (patch) | |
| tree | 02fccc2ac1bc74c19208fb71611aa0891eb5931d /meta-python/recipes-devtools/python/python3-m2crypto_0.37.1.bb | |
| parent | 264616fa0d735d0ee5b0c7f461c80cee0453fda4 (diff) | |
| download | meta-openembedded-cff3116f665c2d17f6a6ae9bbe61025c88da99c0.tar.gz | |
python3-m2crypto: avoid host contamination for swig
If the version of libssl-dev is not match the version of libssl on the
build machine, it fails to compile SWIG/_m2crypto_wrap.c which is
created by swig for python3-m2crypto-native:
| SWIG/_m2crypto_wrap.c:9757:19: error: dereferencing pointer to
incomplete type 'struct stack_st'
| if (arg1) (arg1)->num = arg2;
| ^~
But it works if no libssl-dev installed on the build machine.
Export STAGING_DIR to make existing patch
0001-setup.py-link-in-sysroot-not-in-host-directories.patch work. And
filter out '/usr/inlucde' from include pathes of swig.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
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/python3-m2crypto_0.37.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto_0.37.1.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.37.1.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.37.1.bb index 2284a43a3b..b3da87fb7e 100644 --- a/meta-python/recipes-devtools/python/python3-m2crypto_0.37.1.bb +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.37.1.bb | |||
| @@ -10,6 +10,7 @@ SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \ | |||
| 10 | file://cross-compile-platform.patch \ | 10 | file://cross-compile-platform.patch \ |
| 11 | file://0001-Allow-verify_cb_-to-be-called-with-ok-True.patch \ | 11 | file://0001-Allow-verify_cb_-to-be-called-with-ok-True.patch \ |
| 12 | file://0001-Use-of-RSA_SSLV23_PADDING-has-been-deprecated.patch \ | 12 | file://0001-Use-of-RSA_SSLV23_PADDING-has-been-deprecated.patch \ |
| 13 | file://avoid-host-contamination.patch \ | ||
| 13 | " | 14 | " |
| 14 | SRC_URI[sha256sum] = "e4e42f068b78ccbf113e5d0a72ae5f480f6c3ace4940b91e4fff5598cfff6fb3" | 15 | SRC_URI[sha256sum] = "e4e42f068b78ccbf113e5d0a72ae5f480f6c3ace4940b91e4fff5598cfff6fb3" |
| 15 | 16 | ||
| @@ -42,4 +43,6 @@ SWIG_FEATURES_append_mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}" | |||
| 42 | SWIG_FEATURES_append_powerpc64le = " -D__powerpc64__" | 43 | SWIG_FEATURES_append_powerpc64le = " -D__powerpc64__" |
| 43 | export SWIG_FEATURES | 44 | export SWIG_FEATURES |
| 44 | 45 | ||
| 46 | export STAGING_DIR | ||
| 47 | |||
| 45 | BBCLASSEXTEND = "native" | 48 | BBCLASSEXTEND = "native" |
