From bc01487ba13a7ea9a48cee668c76f3e5f9f87b3d Mon Sep 17 00:00:00 2001 From: vcrhonek Date: Wed, 4 Nov 2009 14:14:17 +0000 Subject: [PATCH] Fix conversion between CMPIData and String --- ...el-2.0.0-cmpidata_constructor_4_cmpistring.patch | 13 +++++++++++++ sblim-cmpi-devel.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sblim-cmpi-devel-2.0.0-cmpidata_constructor_4_cmpistring.patch diff --git a/sblim-cmpi-devel-2.0.0-cmpidata_constructor_4_cmpistring.patch b/sblim-cmpi-devel-2.0.0-cmpidata_constructor_4_cmpistring.patch new file mode 100644 index 0000000..8d85269 --- /dev/null +++ b/sblim-cmpi-devel-2.0.0-cmpidata_constructor_4_cmpistring.patch @@ -0,0 +1,13 @@ +--- sblim-cmpi-devel-2.0.0/CmpiImpl.cpp 2009-07-01 20:22:03.000000000 +0530 ++++ sblim-cmpi-devel-2.0.0_new/CmpiImpl.cpp 2009-07-01 20:22:03.000000000 +0530 +@@ -894,8 +894,8 @@ + + CmpiData::CmpiData(const CmpiString& d) { + _data.state=CMPI_goodValue; +- _data.value.chars=(char*)d.charPtr(); +- _data.type=CMPI_chars; ++ _data.value.string=d.getEnc(); ++ _data.type=CMPI_string; + } + + CmpiData::CmpiData(const char* d) { diff --git a/sblim-cmpi-devel.spec b/sblim-cmpi-devel.spec index 1b14c21..daafa8d 100644 --- a/sblim-cmpi-devel.spec +++ b/sblim-cmpi-devel.spec @@ -2,13 +2,14 @@ Name: sblim-cmpi-devel Version: 2.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: SBLIM CMPI Provider Development Support Group: Development/Libraries License: EPL URL: http://sblim.wiki.sourceforge.net/ Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2 +Patch0: sblim-cmpi-devel-2.0.0-cmpidata_constructor_4_cmpistring.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -20,6 +21,7 @@ tog-pegasus-devel installed. %prep %setup -q +%patch0 -p1 -b cmpidata_constructor_4_cmpistring %build %configure --disable-library @@ -38,6 +40,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/cmpi %changelog +* Wed Nov 4 2009 Vitezslav Crhonek - 2.0.0-2 +- Fix conversion between CMPIData and String + * Thu Aug 27 2009 Vitezslav Crhonek - 2.0.0-1 - Update to 2.0.0