diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto/0001-fix-swig-avoid-clang-GNUC-pragma-block-before-_lib.h.patch | 49 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto_0.48.0.bb (renamed from meta-python/recipes-devtools/python/python3-m2crypto_0.47.0.bb) | 5 |
2 files changed, 2 insertions, 52 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/0001-fix-swig-avoid-clang-GNUC-pragma-block-before-_lib.h.patch b/meta-python/recipes-devtools/python/python3-m2crypto/0001-fix-swig-avoid-clang-GNUC-pragma-block-before-_lib.h.patch deleted file mode 100644 index 7aa768f44d..0000000000 --- a/meta-python/recipes-devtools/python/python3-m2crypto/0001-fix-swig-avoid-clang-GNUC-pragma-block-before-_lib.h.patch +++ /dev/null | |||
| @@ -1,49 +0,0 @@ | |||
| 1 | From df210da932c2cab9d3a80ee88c70611d77824a15 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Wang Mingyu <wangmy@fujitsu.com> | ||
| 3 | Date: Wed, 18 Mar 2026 02:26:56 +0000 | ||
| 4 | Subject: [PATCH] fix(swig): avoid clang GNUC pragma block before _lib.h | ||
| 5 | |||
| 6 | Clang defines __GNUC__, so the old guard emitted PRAGMA_* tokens before | ||
| 7 | they were defined, breaking builds on macOS/clang; move the block after | ||
| 8 | <_lib.h> and exclude clang while keeping the GCC<5 workaround. | ||
| 9 | |||
| 10 | Fixes: https://todo.sr.ht/~mcepl/m2crypto/392 | ||
| 11 | |||
| 12 | Upstream-Status: Backport [git.sr.ht/~mcepl/m2crypto/commit/504ca8f438afb0f5041d2b5163e5f666a9a1b742.patch] | ||
| 13 | |||
| 14 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | ||
| 15 | --- | ||
| 16 | src/SWIG/_m2crypto.i | 13 ++++++++----- | ||
| 17 | 1 file changed, 8 insertions(+), 5 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/src/SWIG/_m2crypto.i b/src/SWIG/_m2crypto.i | ||
| 20 | index d89d355..5426446 100644 | ||
| 21 | --- a/src/SWIG/_m2crypto.i | ||
| 22 | +++ b/src/SWIG/_m2crypto.i | ||
| 23 | @@ -43,15 +43,18 @@ typedef unsigned __int64 uint64_t; | ||
| 24 | %} | ||
| 25 | |||
| 26 | %{ | ||
| 27 | -#if defined __GNUC__ && __GNUC__ < 5 | ||
| 28 | -PRAGMA_IGNORE_UNUSED_LABEL | ||
| 29 | -PRAGMA_WARN_STRICT_PROTOTYPES | ||
| 30 | -#endif | ||
| 31 | - | ||
| 32 | #include <openssl/err.h> | ||
| 33 | #include <openssl/rand.h> | ||
| 34 | #include <_lib.h> | ||
| 35 | |||
| 36 | +/* _lib.h defines PRAGMA_* helpers; only needed for old GCC (clang defines | ||
| 37 | + * __GNUC__ too, but doesn't need this workaround). | ||
| 38 | + */ | ||
| 39 | +#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 5) | ||
| 40 | +PRAGMA_IGNORE_UNUSED_LABEL | ||
| 41 | +PRAGMA_WARN_STRICT_PROTOTYPES | ||
| 42 | +#endif | ||
| 43 | + | ||
| 44 | #include "compile.h" | ||
| 45 | |||
| 46 | static PyObject *ssl_verify_cb_func; | ||
| 47 | -- | ||
| 48 | 2.43.0 | ||
| 49 | |||
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.47.0.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.48.0.bb index 0ebe30f81c..a94c3f8d33 100644 --- a/meta-python/recipes-devtools/python/python3-m2crypto_0.47.0.bb +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.48.0.bb | |||
| @@ -4,10 +4,9 @@ HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto" | |||
| 4 | LICENSE = "BSD-2-Clause" | 4 | LICENSE = "BSD-2-Clause" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSES/BSD-2-Clause.txt;md5=8099b0e569f862ece05740aef06c82a2" | 5 | LIC_FILES_CHKSUM = "file://LICENSES/BSD-2-Clause.txt;md5=8099b0e569f862ece05740aef06c82a2" |
| 6 | 6 | ||
| 7 | SRC_URI[sha256sum] = "9256300be1e0412be802aa1f827e0ce7f94deb1099b8ccdcfd9867a7f0f975bf" | 7 | SRC_URI[sha256sum] = "178e290f558ddf0379aaefd34c0a8ddb21f21502594e588f928dda85f1ad202b" |
| 8 | 8 | ||
| 9 | SRC_URI += "file://0001-setup.py-Make-the-cmd-available.patch \ | 9 | SRC_URI += "file://0001-setup.py-Make-the-cmd-available.patch" |
| 10 | file://0001-fix-swig-avoid-clang-GNUC-pragma-block-before-_lib.h.patch" | ||
| 11 | 10 | ||
| 12 | CVE_STATUS[CVE-2009-0127] = "disputed: upstream claims there is no bug" | 11 | CVE_STATUS[CVE-2009-0127] = "disputed: upstream claims there is no bug" |
| 13 | CVE_STATUS[CVE-2020-25657] = "fixed-version: the used version (0.46.2) contains the fix already" | 12 | CVE_STATUS[CVE-2020-25657] = "fixed-version: the used version (0.46.2) contains the fix already" |
