From 940727319b30349df553ab44100e006904ecc3a9 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 24 Mar 2014 13:46:49 -0600 Subject: [PATCH] Add patch to add ppc64le to config.guess (bug #1080122) --- hdf5-ppc64le.patch | 13 +++++++++++++ hdf5.spec | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 hdf5-ppc64le.patch diff --git a/hdf5-ppc64le.patch b/hdf5-ppc64le.patch new file mode 100644 index 0000000..159ea1b --- /dev/null +++ b/hdf5-ppc64le.patch @@ -0,0 +1,13 @@ +diff -up hdf5-1.8.12/bin/config.guess.ppc64le hdf5-1.8.12/bin/config.guess +--- hdf5-1.8.12/bin/config.guess.ppc64le 2014-03-24 13:44:18.943650766 -0600 ++++ hdf5-1.8.12/bin/config.guess 2014-03-24 13:45:13.279420241 -0600 +@@ -974,6 +974,9 @@ EOF + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; ++ ppc64le:Linux:*:*) ++ echo powerpc64le-unknown-linux-gnu ++ exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; diff --git a/hdf5.spec b/hdf5.spec index d1005d9..b9bbbe6 100644 --- a/hdf5.spec +++ b/hdf5.spec @@ -7,7 +7,7 @@ # You need to recompile all users of HDF5 for each version change Name: hdf5 Version: 1.8.12 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A general purpose library and file format for storing scientific data License: BSD Group: System Environment/Libraries @@ -24,6 +24,8 @@ Patch2: hdf5-aarch64.patch # Fix long double conversions on ppc64le # https://bugzilla.redhat.com/show_bug.cgi?id=1078173 Patch3: hdf5-ldouble-ppc64le.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1080122 +Patch4: hdf5-ppc64le.patch BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran, time # For patches/rpath @@ -159,6 +161,7 @@ HDF5 parallel openmpi static libraries %endif %patch2 -p1 -b .aarch64 %patch3 -p1 -b .ldouble-ppc64le +%patch4 -p1 -b .ppc64le #This should be fixed in 1.8.7 find \( -name '*.[ch]*' -o -name '*.f90' -o -name '*.txt' \) -exec chmod -x {} + autoreconf -f -i @@ -413,6 +416,9 @@ done %changelog +* Mon Mar 24 2014 Orion Poplawski - 1.8.12-6 +- Add patch to add ppc64le to config.guess (bug #1080122) + * Wed Mar 19 2014 Orion Poplawski - 1.8.12-5 - Add patch to fix long double conversions on ppc64le (bug #1078173) - Run autoreconf for patches and to remove rpaths