From 4a8a1b17e2ed07e23eb1b3814fd176bf8b62c8c4 Mon Sep 17 00:00:00 2001 From: sagitter Date: Sun, 2 Feb 2020 18:58:21 +0100 Subject: [PATCH] Temporary workaround for compiling with GCC-10 --- hdf.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hdf.spec b/hdf.spec index 7f9133d..da34d55 100644 --- a/hdf.spec +++ b/hdf.spec @@ -4,7 +4,7 @@ Name: hdf Version: 4.2.14 -Release: 7%{?dist} +Release: 8%{?dist} Summary: A general purpose library and file format for storing scientific data License: BSD URL: https://portal.hdfgroup.org/ @@ -135,8 +135,10 @@ touch -c -r ./hdf/src/hdfi.h.ppc ./hdf/src/hdfi.h # For destdir/examplesdir patches autoreconf -vif + # avoid upstream compiler flags settings rm config/*linux-gnu + # TODO: upstream fix # libmfhdf.so is link to libdf.so export CFLAGS="%{optflags} -I%{_includedir}/tirpc" @@ -154,6 +156,11 @@ cd - mkdir build-static cd build-static # Java requires shared libraries, fortran requires static + +# Temporary workaround for compiling on GCC-10 +%if 0%{?fedora} && 0%{?fedora} > 31 +export FCFLAGS="%{build_fflags} -fallow-argument-mismatch" +%endif %configure --disable-production --disable-java --disable-netcdf \ --enable-shared=no --enable-static=yes --enable-fortran %{!?el6:--with-szlib} \ --includedir=%{_includedir}/%{name} @@ -252,6 +259,9 @@ make -j1 -C build-static check %changelog +* Sun Feb 02 2020 Antonio Trande 4.2.14-8 +- Temporary workaround for compiling with GCC-10 + * Wed Jan 29 2020 Fedora Release Engineering - 4.2.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild