From 6278daf509f5e5108ba8261be5707bd18bf26046 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 23 Jun 2010 19:44:23 +0000 Subject: [PATCH] Re-add longdouble patch on ppc64 for EPEL builds --- hdf5-1.8.0-longdouble.patch | 28 ++++++++++++++++++++++++++++ hdf5.spec | 9 ++++++++- import.log | 1 + 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 hdf5-1.8.0-longdouble.patch create mode 100644 import.log diff --git a/hdf5-1.8.0-longdouble.patch b/hdf5-1.8.0-longdouble.patch new file mode 100644 index 0000000..c996c9b --- /dev/null +++ b/hdf5-1.8.0-longdouble.patch @@ -0,0 +1,28 @@ +--- hdf5-1.8.0-snap6/test/dt_arith.c.longdouble 2008-05-05 16:13:15.000000000 -0600 ++++ hdf5-1.8.0-snap6/test/dt_arith.c 2008-05-13 09:47:36.000000000 -0600 +@@ -4929,10 +4929,12 @@ + nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_USHORT, H5T_NATIVE_LDOUBLE); + nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_INT, H5T_NATIVE_LDOUBLE); + nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_UINT, H5T_NATIVE_LDOUBLE); ++/* Fails on ppc64 + #if H5_SIZEOF_LONG!=H5_SIZEOF_INT + nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_LONG, H5T_NATIVE_LDOUBLE); + nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_ULONG, H5T_NATIVE_LDOUBLE); + #endif ++*/ + #if H5_SIZEOF_LONG_LONG!=H5_SIZEOF_LONG + #if H5_LLONG_TO_LDOUBLE_CORRECT + nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_LLONG, H5T_NATIVE_LDOUBLE); +@@ -5115,10 +5117,12 @@ + #endif + } + #endif /*H5_LDOUBLE_TO_UINT_ACCURATE*/ ++/* Fails on ppc64 + #if H5_SIZEOF_LONG!=H5_SIZEOF_INT && H5_SIZEOF_LONG_DOUBLE!=0 + nerrors += test_conv_int_fp(name, test_values, H5T_NATIVE_LDOUBLE, H5T_NATIVE_LONG); + nerrors += test_conv_int_fp(name, test_values, H5T_NATIVE_LDOUBLE, H5T_NATIVE_ULONG); + #endif ++*/ + + #if H5_SIZEOF_LONG_LONG!=H5_SIZEOF_LONG && H5_SIZEOF_LONG_DOUBLE!=0 + #ifdef H5_LDOUBLE_TO_LLONG_ACCURATE diff --git a/hdf5.spec b/hdf5.spec index 33b77ef..29464b6 100644 --- a/hdf5.spec +++ b/hdf5.spec @@ -1,7 +1,7 @@ %define snaprel %{nil} Name: hdf5 Version: 1.8.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A general purpose library and file format for storing scientific data License: BSD Group: System Environment/Libraries @@ -9,6 +9,7 @@ URL: http://www.hdfgroup.org/HDF5/ #Source0: ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-%{version}.tar.gz Source0: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-%{version}%{?snaprel}.tar.bz2 Source1: h5comp +Patch1: hdf5-1.8.0-longdouble.patch Patch3: hdf5-1.8.0-multiarch.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran, time @@ -43,6 +44,9 @@ HDF5 static libraries. %prep %setup -q -n %{name}-%{version}%{?snaprel} +%ifarch ppc64 +%patch1 -p1 -b .longdouble +%endif %patch3 -p1 -b .multiarch find -name '*.[ch]' -o -name '*.f90' -exec chmod -x {} + @@ -156,6 +160,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Jun 23 2010 Orion Poplawski 1.8.5-2 +- Re-add longdouble patch on ppc64 for EPEL builds + * Mon Jun 21 2010 Orion Poplawski 1.8.5-1 - Update to 1.8.5 - Drop patches fixed upstream diff --git a/import.log b/import.log new file mode 100644 index 0000000..61ede37 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +hdf5-1_8_5-2_el6:HEAD:hdf5-1.8.5-2.el6.src.rpm:1277322248