From 67e50c7b3366a0114d563991d3beaa5df6e22bac Mon Sep 17 00:00:00 2001 From: Ed Hill Date: Thu, 21 Feb 2008 03:00:59 +0000 Subject: [PATCH] try to fix GCC 4.3 build --- netcdf.spec | 7 ++++++- netcdf_gcc-3.3_needs_string-h.patch | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 netcdf_gcc-3.3_needs_string-h.patch diff --git a/netcdf.spec b/netcdf.spec index 2669b55..1ca79ba 100644 --- a/netcdf.spec +++ b/netcdf.spec @@ -1,12 +1,13 @@ Name: netcdf Version: 3.6.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Libraries for the Unidata network Common Data Form (NetCDF v3) Group: Applications/Engineering License: NetCDF URL: http://my.unidata.ucar.edu/content/software/netcdf/index.html Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.2.tar.bz2 +Patch0: netcdf_gcc-3.3_needs_string-h.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc-gfortran, gawk @@ -62,6 +63,7 @@ This package contains the netCDF-3 static libs. %prep %setup -q +%patch0 -p1 %build export FC="gfortran" @@ -120,6 +122,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Wed Feb 20 2008 Ed Hill - 3.6.2-6 +- add patch that (hopefully?) allows the GCC 4.3 build to proceed + * Mon Feb 18 2008 Fedora Release Engineering - 3.6.2-5 - Autorebuild for GCC 4.3 diff --git a/netcdf_gcc-3.3_needs_string-h.patch b/netcdf_gcc-3.3_needs_string-h.patch new file mode 100644 index 0000000..a873d01 --- /dev/null +++ b/netcdf_gcc-3.3_needs_string-h.patch @@ -0,0 +1,22 @@ +diff -urN netcdf-3.6.2/cxx/ncvalues.cpp netcdf-3.6.2-NEW/cxx/ncvalues.cpp +--- netcdf-3.6.2/cxx/ncvalues.cpp 2006-12-29 11:38:56.000000000 -0500 ++++ netcdf-3.6.2-NEW/cxx/ncvalues.cpp 2008-02-20 21:28:28.000000000 -0500 +@@ -10,6 +10,7 @@ + #include + #include + #include ++#include + + #include "ncvalues.h" + +diff -urN netcdf-3.6.2/examples/CXX/sfc_pres_temp_rd.cpp netcdf-3.6.2-NEW/examples/CXX/sfc_pres_temp_rd.cpp +--- netcdf-3.6.2/examples/CXX/sfc_pres_temp_rd.cpp 2007-01-19 07:52:13.000000000 -0500 ++++ netcdf-3.6.2-NEW/examples/CXX/sfc_pres_temp_rd.cpp 2008-02-20 21:48:24.000000000 -0500 +@@ -18,6 +18,7 @@ + + #include + #include ++#include + + using namespace std; +