diff options
| -rw-r--r-- | meta-python/recipes-devtools/python/python-m2crypto/m2crypto-0.26.4-gcc_macros.patch | 24 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb (renamed from meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb) | 6 |
2 files changed, 27 insertions, 3 deletions
diff --git a/meta-python/recipes-devtools/python/python-m2crypto/m2crypto-0.26.4-gcc_macros.patch b/meta-python/recipes-devtools/python/python-m2crypto/m2crypto-0.26.4-gcc_macros.patch new file mode 100644 index 0000000000..2d738cc94e --- /dev/null +++ b/meta-python/recipes-devtools/python/python-m2crypto/m2crypto-0.26.4-gcc_macros.patch | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | Imported from Fedora | ||
| 2 | |||
| 3 | --- M2Crypto/SWIG/_m2crypto.i 2017-09-26 11:26:33.000000000 +0200 | ||
| 4 | +++ M2Crypto-0.26.4/SWIG/_m2crypto.i 2017-09-26 21:04:14.080330741 +0200 | ||
| 5 | @@ -7,6 +7,7 @@ | ||
| 6 | * Copyright (c) 2009-2010 Heikki Toivonen. All rights reserved. | ||
| 7 | * | ||
| 8 | */ | ||
| 9 | +%import "gcc_macros.h" | ||
| 10 | |||
| 11 | %module(threads=1) m2crypto | ||
| 12 | /* We really don't need threadblock (PyGILState_Ensure() etc.) anywhere. | ||
| 13 | @@ -15,11 +16,6 @@ | ||
| 14 | %nothreadblock; | ||
| 15 | %nothreadallow; | ||
| 16 | |||
| 17 | -#if SWIG_VERSION >= 0x030000 | ||
| 18 | -#define __WCHAR_MAX__ __WCHAR_MAX | ||
| 19 | -#define __WCHAR_MIN__ __WCHAR_MIN | ||
| 20 | -#endif | ||
| 21 | - | ||
| 22 | %{ | ||
| 23 | #if __GNUC__ < 5 | ||
| 24 | #pragma GCC diagnostic ignored "-Wunused-label" | ||
diff --git a/meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb b/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb index 4b4fbbb7c2..272c76ca17 100644 --- a/meta-python/recipes-devtools/python/python-m2crypto_0.26.0.bb +++ b/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb | |||
| @@ -6,9 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e" | |||
| 6 | 6 | ||
| 7 | SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \ | 7 | SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \ |
| 8 | file://cross-compile-platform.patch \ | 8 | file://cross-compile-platform.patch \ |
| 9 | file://m2crypto-0.26.4-gcc_macros.patch \ | ||
| 9 | " | 10 | " |
| 10 | SRC_URI[md5sum] = "9f02f0b88fbe225cc6ea8680945cafa0" | 11 | SRC_URI[md5sum] = "5c74c25ba8b45122318a165a3a2059ad" |
| 11 | SRC_URI[sha256sum] = "05d94fd9b2dae2fb8e072819a795f0e05d3611b09ea185f68e1630530ec09ae8" | 12 | SRC_URI[sha256sum] = "5cae7acc0b34821f8c0ddf6665e482893fe1f198ad6379e61ffa9d8e65f5c199" |
| 12 | 13 | ||
| 13 | PYPI_PACKAGE = "M2Crypto" | 14 | PYPI_PACKAGE = "M2Crypto" |
| 14 | inherit pypi setuptools siteinfo | 15 | inherit pypi setuptools siteinfo |
| @@ -46,5 +47,4 @@ do_compile_prepend() { | |||
| 46 | fi | 47 | fi |
| 47 | } | 48 | } |
| 48 | 49 | ||
| 49 | |||
| 50 | BBCLASSEXTEND = "native" | 50 | BBCLASSEXTEND = "native" |
