SHA256
7
0
forked from pool/libcmpiutil

24 Commits

Author SHA256 Message Date
5aaee27f8e Accepting request 1221693 from systemsmanagement:wbem
- fix version number in _service
- Update to version v0.5.7+git20200407.cd438a8:
  * github: enable lockdown of issues and merge requests
  * libcmpiutil: Fix endianness issues in embedded object parsing
  * Fix compilation on ARM
  * Release 0.5.7
  * libcmpiutil: add time and thread info in debug log
  * libcmpiutil: fix potential debug print crash
  * Added tag release_0_5_6 for changeset c7ba1bbeba54
  * Bump version to 0.5.6
  * libcmpiutil: Add libtool version info
  * libcmpituil: Proper definition of LEX_OUTPUT_ROOT
- drop 0001-libcmpiutil-Fix-endianness-issues-in-embedded-object.patch
  (upstream)
- rename 0002-fix-ARM-build.patch to 0001-fix-ARM-build.patch
  0003-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch
  to 0002-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch

OBS-URL: https://build.opensuse.org/request/show/1221693
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=26
2024-11-06 15:52:08 +00:00
474dfd2d20 Accepting request 1149157 from systemsmanagement:wbem
- Use %patch -P N instead of deprecated %patchN.

OBS-URL: https://build.opensuse.org/request/show/1149157
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=25
2024-02-22 19:59:57 +00:00
83ff2790b8 - Use %patch -P N instead of deprecated %patchN.
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/libcmpiutil?expand=0&rev=22
2024-02-22 10:10:00 +00:00
65e39ebe1a Accepting request 984727 from systemsmanagement:wbem
- adapt to latest autotools
- rename fix-arm.patch to 0002-fix-ARM-build.patch
- add 0003-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch

OBS-URL: https://build.opensuse.org/request/show/984727
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=24
2022-06-24 06:45:50 +00:00
Klaus Kämpf
6587dbb352 - adapt to latest autotools
- rename fix-arm.patch to 0002-fix-ARM-build.patch
- add 0003-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/libcmpiutil?expand=0&rev=20
2022-06-23 13:56:06 +00:00
e5f374ba03 Accepting request 973112 from systemsmanagement:wbem
OBS-URL: https://build.opensuse.org/request/show/973112
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=23
2022-04-27 19:41:55 +00:00
Klaus Kämpf
64b6ea61f6 Accepting request 973099 from home:jengelh:branches:systemsmanagement:wbem
- Resolve rpmlint report "libcmpiutil.x86_64: E:
  shlib-policy-name-error SONAME: libcmpiutil.so.0, expected
  package suffix: 0"
- Throw out old specfile constructs

OBS-URL: https://build.opensuse.org/request/show/973099
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/libcmpiutil?expand=0&rev=18
2022-04-27 11:44:53 +00:00
a89c73e72a Accepting request 311261 from systemsmanagement:wbem
1

OBS-URL: https://build.opensuse.org/request/show/311261
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=22
2015-06-10 07:15:50 +00:00
Klaus Kämpf
9223ebd6f0 Accepting request 311260 from home:Andreas_Schwab:Factory
- Force gnu89 inline semantics

OBS-URL: https://build.opensuse.org/request/show/311260
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/libcmpiutil?expand=0&rev=16
2015-06-09 09:21:54 +00:00
Stephan Kulow
9e574f180e Accepting request 223695 from systemsmanagement:wbem
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/223695
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=20
2014-02-25 06:32:42 +00:00
Klaus Kämpf
6db8d4dc1f - add upstream patch
0001-libcmpiutil-Fix-endianness-issues-in-embedded-object.patch

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/libcmpiutil?expand=0&rev=14
2014-02-17 12:54:45 +00:00
Stephan Kulow
4bf786dca3 Accepting request 172860 from systemsmanagement:wbem
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/172860
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=18
2013-04-23 09:32:24 +00:00
Klaus Kämpf
4c2aed707b - Update to 0.5.7
* patches about log fix and improvement (Wenchao Xia).

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/libcmpiutil?expand=0&rev=12
2013-04-15 10:43:55 +00:00
Stephan Kulow
720224b534 Accepting request 132469 from systemsmanagement:wbem
- fix arm build (forwarded request 131075 from algraf)

OBS-URL: https://build.opensuse.org/request/show/132469
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=16
2012-09-11 07:09:05 +00:00
Klaus Kämpf
5f4b134b23 Accepting request 131075 from openSUSE:Factory:ARM
- fix arm build

OBS-URL: https://build.opensuse.org/request/show/131075
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/libcmpiutil?expand=0&rev=10
2012-09-04 07:53:13 +00:00
Stephan Kulow
701ac9a87b replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=14
2011-12-06 17:22:56 +00:00
Sascha Peilicke
df233bf40a Autobuild autoformatter for 74435
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=12
2011-06-24 08:15:42 +00:00
Sascha Peilicke
775b481f16 Accepting request 74435 from systemsmanagement:wbem
Update libcmpiutil to 0.5.6, which includes build fixes only and
hardly qualifies for a release.  But I'm updating the virt CIM
stack in SLE11SP2 to latest releases so wanted to push this
update to the package's devel project.

BTW, I forgot that libcmpiutil and libvirt-cim were maintained
in this project.  I've recently sumbitted them to SP2 via
IBS project Devel:Virt:SLE-11-SP2.  I'll need to reconcile some
differences with the systemsmanagement:wbem packages.

- Update to 0.5.6
  * build cleanups (Eduardo Lima) (forwarded request 73895 from jfehlig)

OBS-URL: https://build.opensuse.org/request/show/74435
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=11
2011-06-24 08:15:32 +00:00
OBS User autobuild
ad5579ea9f OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=7 2010-03-18 15:02:07 +00:00
OBS User autobuild
49d83605f0 Accepting request 17365 from systemmanagement
Copy from systemmanagement/libcmpiutil based on submit request 17365 from user jfehlig

OBS-URL: https://build.opensuse.org/request/show/17365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=5
2009-08-11 15:38:10 +00:00
OBS User unknown
fbf4f5dc68 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=4 2008-10-24 13:16:25 +00:00
OBS User unknown
fdd67fb32b OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=3 2008-08-06 23:26:45 +00:00
OBS User unknown
237f3606fd OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=2 2008-07-18 21:29:24 +00:00
OBS User unknown
f270da3593 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcmpiutil?expand=0&rev=1 2008-05-20 02:42:30 +00:00
4 changed files with 0 additions and 251 deletions

View File

@@ -1,149 +0,0 @@
From e37b8a2831543a6dc82a771160dd270f1e647266 Mon Sep 17 00:00:00 2001
From: Thilo Boehm <tboehm@linux.vnet.ibm.com>
Date: Thu, 8 Aug 2013 15:27:53 +0200
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
reinterpretation of 64bit integers. Fixed by using the proper
CMPIValue union fields.
Signed-off-by: Thilo Boehm <tboehm@linux.vnet.ibm.com>
Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
---
eo_parser.c | 35 ++++++++++++++++++++++-------------
eo_parser_xml.c | 49 +++++++++++++++++++++++++++++++++++++++----------
2 files changed, 61 insertions(+), 23 deletions(-)
diff --git a/eo_parser.c b/eo_parser.c
index 36106fd..4c5b0ee 100644
--- a/eo_parser.c
+++ b/eo_parser.c
@@ -113,31 +113,40 @@ static int _set_int_prop(CMPISint64 value,
CMPIInstance *inst)
{
CMPIStatus s;
- uint64_t unsigned_val = 0;
- int64_t signed_val = 0;
+ CMPIValue val;
- switch(type) {
+ switch (type) {
case CMPI_uint64:
+ val.uint64 = (uint64_t) value;
+ break;
case CMPI_uint32:
+ val.uint32 = (uint32_t) value;
+ break;
case CMPI_uint16:
+ val.uint16 = (uint16_t) value;
+ break;
case CMPI_uint8:
- unsigned_val = (uint64_t) value;
- s = CMSetProperty(inst,
- prop,
- (CMPIValue *) &(unsigned_val),
- type);
+ val.uint8 = (uint8_t) value;
break;
case CMPI_sint64:
+ val.sint64 = (int64_t) value;
+ break;
case CMPI_sint32:
+ val.sint32 = (int32_t) value;
+ break;
case CMPI_sint16:
+ val.sint16 = (int16_t) value;
+ break;
case CMPI_sint8:
+ val.sint8 = (int8_t) value;
+ break;
default:
- signed_val = (int64_t) value;
- s = CMSetProperty(inst,
- prop,
- (CMPIValue *) &(signed_val),
- type);
+ return 0;
}
+ s = CMSetProperty(inst,
+ prop,
+ &val,
+ type);
if (s.rc == CMPI_RC_OK)
return 1;
diff --git a/eo_parser_xml.c b/eo_parser_xml.c
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,
if (sign) {
int64_t _val;
ret = sscanf(string, "%" SCNi64, &_val);
- val->sint64 = _val;
+ switch (size) {
+ case 8:
+ t = CMPI_sint8;
+ val->sint8 = (int8_t) _val;
+ break;
+ case 16:
+ t = CMPI_sint16;
+ val->sint16 = (int16_t) _val;
+ break;
+ case 32:
+ t = CMPI_sint32;
+ val->sint32 = (int32_t) _val;
+ break;
+ default:
+ case 64:
+ t = CMPI_sint64;
+ val->sint64 = (int64_t) _val;
+ break;
+ };
} else {
uint64_t _val;
ret = sscanf(string, "%" SCNu64, &_val);
- val->uint64 = _val;
+ switch (size) {
+ case 8:
+ t = CMPI_uint8;
+ val->uint8 = (uint8_t) _val;
+ break;
+ case 16:
+ t = CMPI_uint16;
+ val->uint16 = (uint16_t) _val;
+ break;
+ case 32:
+ t = CMPI_uint32;
+ val->uint32 = (uint32_t) _val;
+ break;
+ default:
+ case 64:
+ t = CMPI_uint64;
+ val->uint64 = (uint64_t) _val;
+ break;
+
+ };
}
if (ret != 1) {
@@ -102,14 +139,6 @@ static CMPIType parse_int_property(const char *string,
return CMPI_null;
}
- switch (size) {
- case 8: t = sign ? CMPI_sint8 : CMPI_uint8; break;
- case 16: t = sign ? CMPI_sint16 : CMPI_uint16; break;
- case 32: t = sign ? CMPI_sint32 : CMPI_uint32; break;
- default:
- case 64: t = sign ? CMPI_sint64 : CMPI_uint64; break;
- };
-
return t;
}
--
2.36.1

View File

@@ -1,70 +0,0 @@
From a645d7de82aba87205ac849e65978edb6614a1d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
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

View File

@@ -1,29 +0,0 @@
From 2b5f416924309f0e0e2e719c57cf07a8b4570e2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
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 <kkaempf@suse.de>
---
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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd0d15817f0e09a588276a1892a900d967fd1c0f5bcf1ee3c7be2e41b54fda15
size 314691