From 609272dcb892e281795addad34d5830ef9c1cbd9 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 5 Feb 2008 22:29:04 +0000 Subject: [PATCH] - Add patch to fix calling free() in H5PropList.cpp --- hdf5-1.6.6-free.patch | 19 +++++++++++++++++++ hdf5.spec | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 hdf5-1.6.6-free.patch diff --git a/hdf5-1.6.6-free.patch b/hdf5-1.6.6-free.patch new file mode 100644 index 0000000..6e44cb2 --- /dev/null +++ b/hdf5-1.6.6-free.patch @@ -0,0 +1,19 @@ +--- hdf5-1.6.6/c++/src/H5PropList.cpp.free 2007-08-16 10:12:26.000000000 -0600 ++++ hdf5-1.6.6/c++/src/H5PropList.cpp 2008-02-05 15:14:51.000000000 -0700 +@@ -24,6 +24,7 @@ + #include "H5Exception.h" + #include "H5IdComponent.h" + #include "H5PropList.h" ++#include "H5private.h" + + #ifndef H5_NO_NAMESPACE + namespace H5 { +@@ -425,7 +426,7 @@ + if (temp_str != NULL) + { + H5std_string class_name = H5std_string(temp_str); +- free(temp_str); ++ HDfree(temp_str); + return(class_name); + } + else diff --git a/hdf5.spec b/hdf5.spec index 1679988..83ba0db 100644 --- a/hdf5.spec +++ b/hdf5.spec @@ -1,6 +1,6 @@ Name: hdf5 Version: 1.6.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A general purpose library and file format for storing scientific data License: BSD Group: System Environment/Libraries @@ -17,6 +17,7 @@ Patch8: hdf5-1.6.5-sort.patch Patch10: hdf5-1.6.5-open.patch Patch11: hdf5-1.6.6-alpha.patch Patch12: hdf5-1.6.6-s390.patch +Patch13: hdf5-1.6.6-free.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran, time @@ -50,6 +51,7 @@ HDF5 development headers and libraries. %patch10 -p1 -b .open %patch11 -p1 -b .alpha %patch12 -p1 -b .s390 +%patch13 -p1 -b .free %build @@ -113,6 +115,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Feb 5 2008 Orion Poplawski 1.6.6-6 +- Add patch to fix calling free() in H5PropList.cpp + * Tue Feb 5 2008 Orion Poplawski 1.6.6-5 - Add patch to support s390 (bug #431510)