diff options
| -rw-r--r-- | meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-cmpi-bindings-Fix-build-error-with-gcc14.patch | 46 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb (renamed from meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb) | 5 |
2 files changed, 2 insertions, 49 deletions
diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-cmpi-bindings-Fix-build-error-with-gcc14.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-cmpi-bindings-Fix-build-error-with-gcc14.patch deleted file mode 100644 index 750d10a5f1..0000000000 --- a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-cmpi-bindings-Fix-build-error-with-gcc14.patch +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | From 9e4063a9a3fb2fab69d906902a8432da2544654b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Lei Maohui <leimaohui@fujitsu.com> | ||
| 3 | Date: Tue, 11 Jun 2024 01:38:55 +0000 | ||
| 4 | Subject: [PATCH] cmpi-bindings: Fix build error with gcc14. | ||
| 5 | |||
| 6 | The build error is as the following: | ||
| 7 | |||
| 8 | | build-daily-2/tmp/work/aarch64-ubinux-linux/cmpi-bindings/1.0.4/git/swig/python/../../src/target_python.c:168:21: error: passing argument 1 of 'Py_SetProgramName' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 9 | | 168 | Py_SetProgramName("cmpi_swig"); | ||
| 10 | | | ^~~~~~~~~~~ | ||
| 11 | | | | | ||
| 12 | | | char * | ||
| 13 | | build-daily-2/tmp/work/aarch64-ubinux-linux/cmpi-bindings/1.0.4/recipe-sysroot/usr/include/python3.12/pylifecycle.h:37:56: note: expected 'const wchar_t *' {aka 'const unsigned int *'} but argument is of type 'char *' | ||
| 14 | | 37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *); | ||
| 15 | | | | ||
| 16 | |||
| 17 | Upstream-Status: Submitted | ||
| 18 | Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> | ||
| 19 | --- | ||
| 20 | src/target_python.c | 3 ++- | ||
| 21 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/src/target_python.c b/src/target_python.c | ||
| 24 | index a8dfd30..69a2515 100644 | ||
| 25 | --- a/src/target_python.c | ||
| 26 | +++ b/src/target_python.c | ||
| 27 | @@ -154,6 +154,7 @@ cleanup: | ||
| 28 | static int | ||
| 29 | PyGlobalInitialize(const CMPIBroker* broker, CMPIStatus* st) | ||
| 30 | { | ||
| 31 | + const wchar_t proname[] = L"cmpi_swig"; | ||
| 32 | /* _SBLIM_TRACE(1,("<%d/0x%x> PyGlobalInitialize() called", getpid(), pthread_self())); */ | ||
| 33 | |||
| 34 | if (_TARGET_INIT) | ||
| 35 | @@ -165,7 +166,7 @@ PyGlobalInitialize(const CMPIBroker* broker, CMPIStatus* st) | ||
| 36 | |||
| 37 | _SBLIM_TRACE(1,("<%d/0x%x> Python: Loading", getpid(), pthread_self())); | ||
| 38 | |||
| 39 | - Py_SetProgramName("cmpi_swig"); | ||
| 40 | + Py_SetProgramName(proname); | ||
| 41 | Py_Initialize(); | ||
| 42 | #if PY_MAJOR_VERSION < 3 | ||
| 43 | SWIGEXPORT void SWIG_init(void); | ||
| 44 | -- | ||
| 45 | 2.34.1 | ||
| 46 | |||
diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb index 541a360765..e1f6c558df 100644 --- a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb +++ b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb | |||
| @@ -6,14 +6,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b19ee058d2d5f69af45da98051d91064" | |||
| 6 | SECTION = "Development/Libraries" | 6 | SECTION = "Development/Libraries" |
| 7 | DEPENDS = "swig-native sblim-cmpi-devel python3-setuptools-native" | 7 | DEPENDS = "swig-native sblim-cmpi-devel python3-setuptools-native" |
| 8 | 8 | ||
| 9 | SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=https;branch=master \ | 9 | SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=https;branch=main \ |
| 10 | file://cmpi-bindings-0.4.17-no-ruby-perl.patch \ | 10 | file://cmpi-bindings-0.4.17-no-ruby-perl.patch \ |
| 11 | file://cmpi-bindings-0.4.17-sblim-sigsegv.patch \ | 11 | file://cmpi-bindings-0.4.17-sblim-sigsegv.patch \ |
| 12 | file://0001-Fix-error.patch \ | 12 | file://0001-Fix-error.patch \ |
| 13 | file://0001-cmpi-bindings-Fix-build-error-with-gcc14.patch \ | ||
| 14 | " | 13 | " |
| 15 | 14 | ||
| 16 | SRCREV = "69077ee4d249816ed428155fc933dca424167e77" | 15 | SRCREV = "49d6dcfc71ca421100fcf325e31625817c469fc9" |
| 17 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 18 | 17 | ||
| 19 | inherit cmake python3targetconfig | 18 | inherit cmake python3targetconfig |
