Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libcmpiutil for openSUSE:Factory checked in at 2022-06-24 08:45:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libcmpiutil (Old) and /work/SRC/openSUSE:Factory/.libcmpiutil.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libcmpiutil" Fri Jun 24 08:45:50 2022 rev:24 rq:984727 version:0.5.7 Changes: -------- --- /work/SRC/openSUSE:Factory/libcmpiutil/libcmpiutil.changes 2022-04-27 21:42:07.897070908 +0200 +++ /work/SRC/openSUSE:Factory/.libcmpiutil.new.1548/libcmpiutil.changes 2022-06-24 08:45:50.639175029 +0200 @@ -1,0 +2,7 @@ +Thu Jun 23 12:32:10 UTC 2022 - Klaus K??mpf <[email protected]> + +- adapt to latest autotools +- rename fix-arm.patch to 0002-fix-ARM-build.patch +- add 0003-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch + +------------------------------------------------------------------- Old: ---- fix-arm.patch New: ---- 0002-fix-ARM-build.patch 0003-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libcmpiutil.spec ++++++ --- /var/tmp/diff_new_pack.9uHuY0/_old 2022-06-24 08:45:51.243175705 +0200 +++ /var/tmp/diff_new_pack.9uHuY0/_new 2022-06-24 08:45:51.247175710 +0200 @@ -21,13 +21,18 @@ Release: 0 Summary: Library of utility functions for CMPI providers License: LGPL-2.1-or-later -URL: http://libvirt.org/CIM/ +URL: http://libvirt.org/sources/CIM/ Group: Development/Libraries/C and C++ Source: %{name}-%{version}.tar.bz2 -Patch1: fix-arm.patch -Patch2: 0001-libcmpiutil-Fix-endianness-issues-in-embedded-object.patch +Patch1: 0001-libcmpiutil-Fix-endianness-issues-in-embedded-object.patch +Patch2: 0002-fix-ARM-build.patch +Patch3: 0003-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch +BuildRequires: autoconf +BuildRequires: autoconf-archive +BuildRequires: automake BuildRequires: bison BuildRequires: flex +BuildRequires: libtool BuildRequires: libxml2-devel %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel} BuildRequires: pkgconfig @@ -76,14 +81,19 @@ %prep %setup -q -%ifarch %arm %patch1 -p1 -%endif +%ifarch %arm %patch2 -p1 +%endif +%patch3 -p1 chmod -x *.c *.y *.h *.l %build export CFLAGS="%{optflags} -fgnu89-inline" +rm -f aclocal.m4 configure Makefile.in +touch AUTHORS ChangeLog NEWS +autoupdate acinclude.m4 configure.ac Makefile.am +autoreconf -fi %configure --enable-static=no %if 0%{?make_build:1} %make_build ++++++ 0001-libcmpiutil-Fix-endianness-issues-in-embedded-object.patch ++++++ --- /var/tmp/diff_new_pack.9uHuY0/_old 2022-06-24 08:45:51.271175736 +0200 +++ /var/tmp/diff_new_pack.9uHuY0/_new 2022-06-24 08:45:51.275175741 +0200 @@ -1,7 +1,8 @@ -From 8c25b49b05065ce90c83b2102bd8462a7bb18d69 Mon Sep 17 00:00:00 2001 +From e37b8a2831543a6dc82a771160dd270f1e647266 Mon Sep 17 00:00:00 2001 From: Thilo Boehm <[email protected]> Date: Thu, 8 Aug 2013 15:27:53 +0200 -Subject: [PATCH] libcmpiutil: Fix endianness issues in embedded object parsing +Subject: [PATCH 1/3] libcmpiutil: Fix endianness issues in embedded object + parsing The auxiliary functions _set_int_prop/parse_int_property only worked on little-endian archs as they performed an incorrect @@ -16,7 +17,7 @@ 2 files changed, 61 insertions(+), 23 deletions(-) diff --git a/eo_parser.c b/eo_parser.c -index 36106fddc99d..4c5b0ee229dd 100644 +index 36106fd..4c5b0ee 100644 --- a/eo_parser.c +++ b/eo_parser.c @@ -113,31 +113,40 @@ static int _set_int_prop(CMPISint64 value, @@ -74,7 +75,7 @@ if (s.rc == CMPI_RC_OK) return 1; diff --git a/eo_parser_xml.c b/eo_parser_xml.c -index c8b28cc63289..551a87be8a8d 100644 +index c8b28cc..551a87b 100644 --- a/eo_parser_xml.c +++ b/eo_parser_xml.c @@ -90,11 +90,48 @@ static CMPIType parse_int_property(const char *string, @@ -144,6 +145,6 @@ } -- -1.8.4.5 +2.36.1 ++++++ 0002-fix-ARM-build.patch ++++++ >From a645d7de82aba87205ac849e65978edb6614a1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <[email protected]> Date: Thu, 23 Jun 2022 14:29:39 +0200 Subject: [PATCH 2/3] fix ARM build --- eo_parser_xml.c | 2 +- std_association.c | 4 ++-- std_indication.c | 2 +- std_invokemethod.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/eo_parser_xml.c b/eo_parser_xml.c index 551a87b..4e34db5 100644 --- a/eo_parser_xml.c +++ b/eo_parser_xml.c @@ -298,7 +298,7 @@ static bool parse_array_property(const CMPIBroker *broker, type = parse_array(broker, tstr, val_arr, &array); if (type != CMPI_null) { CU_DEBUG("Setting array property"); - CMSetProperty(inst, name, &array, (CMPI_ARRAY | type)); + CMSetProperty(inst, name, (void*)&array, (CMPI_ARRAY | type)); } } diff --git a/std_association.c b/std_association.c index 9204628..2646722 100644 --- a/std_association.c +++ b/std_association.c @@ -38,9 +38,9 @@ void set_reference(struct std_assoc *assoc, const CMPIObjectPath *target) { CMSetProperty(inst, assoc->source_prop, - (CMPIValue *)&source, CMPI_ref); + (CMPIValue *)(void*)&source, CMPI_ref); CMSetProperty(inst, assoc->target_prop, - (CMPIValue *)&target, CMPI_ref); + (CMPIValue *)(void*)&target, CMPI_ref); } static bool match_op(const CMPIBroker *broker, diff --git a/std_indication.c b/std_indication.c index 21df1f5..eb2771e 100644 --- a/std_indication.c +++ b/std_indication.c @@ -402,7 +402,7 @@ CMPIStatus stdi_raise_indication(const CMPIBroker *broker, if (s.rc != CMPI_RC_OK) return s; - s = CMAddArg(argsin, "TheIndication", &ind, CMPI_instance); + s = CMAddArg(argsin, "TheIndication", (void*)&ind, CMPI_instance); if (s.rc != CMPI_RC_OK) return s; diff --git a/std_invokemethod.c b/std_invokemethod.c index fb40c1d..10a143b 100644 --- a/std_invokemethod.c +++ b/std_invokemethod.c @@ -115,7 +115,7 @@ static int parse_eo_array(CMPIArray *strings_in, } CMSetArrayElementAt(*instances_out, i, - (CMPIValue *)&inst, + (CMPIValue *)(void*)&inst, CMPI_instance); } -- 2.36.1 ++++++ 0003-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch ++++++ >From 2b5f416924309f0e0e2e719c57cf07a8b4570e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <[email protected]> Date: Thu, 23 Jun 2022 15:48:41 +0200 Subject: [PATCH 3/3] drop duplicate definition of _FORTIFY_SOURCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Klaus K??mpf <[email protected]> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8db336e..1dfdd00 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ CC_WARNINGS="\ -Wcast-align \ -Wno-unused-value" -CFLAGS="$CFLAGS $CC_WARNINGS -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE" +CFLAGS="$CFLAGS $CC_WARNINGS -D_GNU_SOURCE" AC_CONFIG_HEADER([config.h]) -- 2.36.1
