summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2010-12-04 21:40:09 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2010-12-04 21:40:09 +0000
commitc3b59fd06391e5fb8b8d1402da89299eccffe3f8 (patch)
tree782106a57ed70b79f800e1a840fe3cc0367bc083 /sci-libs/netcdf/files
parentx86 stable wrt bug #343473 (diff)
downloadgentoo-2-c3b59fd06391e5fb8b8d1402da89299eccffe3f8.tar.gz
gentoo-2-c3b59fd06391e5fb8b8d1402da89299eccffe3f8.tar.bz2
gentoo-2-c3b59fd06391e5fb8b8d1402da89299eccffe3f8.zip
Fix parallel build wrt #296174 by MarisN <maris.gis@gmail.com>. Fix implicit function declarations. Drop old.
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/netcdf/files')
-rw-r--r--sci-libs/netcdf/files/netcdf-4.0.1-as-needed.patch20
-rw-r--r--sci-libs/netcdf/files/netcdf-4.0.1-cfortran.patch34
-rw-r--r--sci-libs/netcdf/files/netcdf-4.0.1-pkgconfig.patch45
-rw-r--r--sci-libs/netcdf/files/netcdf-4.1.1-implicits.patch30
-rw-r--r--sci-libs/netcdf/files/netcdf-4.1.1-parallel-build.patch38
5 files changed, 68 insertions, 99 deletions
diff --git a/sci-libs/netcdf/files/netcdf-4.0.1-as-needed.patch b/sci-libs/netcdf/files/netcdf-4.0.1-as-needed.patch
deleted file mode 100644
index b0391c804ec0..000000000000
--- a/sci-libs/netcdf/files/netcdf-4.0.1-as-needed.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- netcdf-4.0.1.orig/libsrc4/Makefile.am 2009-03-26 21:03:16.000000000 +0100
-+++ netcdf-4.0.1/libsrc4/Makefile.am 2009-09-10 22:34:48.245041376 +0200
-@@ -67,6 +67,7 @@
- libnetcdf_la_SOURCES = nc4attr.c nc4internal.c nc4var.c netcdf3.h \
- nc4dim.c nc4internal.h ncfunc.c nc4file.c netcdf.h error.c error.h \
- nc4grp.c nc4type.c nc4hdf.c
-+libnetcdf_la_LIBADD += -lhdf5_hl
-
- # If we are not building separate fortran libraries, then include
- # their functions in the C library.
---- netcdf-4.0.1.orig/cxx4/Makefile.am 2007-08-13 18:05:17.000000000 +0200
-+++ netcdf-4.0.1/cxx4/Makefile.am 2009-09-10 23:45:06.335707145 +0200
-@@ -42,6 +42,7 @@
- # Library source.
- libnetcdf_c__4_la_SOURCES = ncatt.cpp ncdim.cpp ncexception.cpp \
- ncfile.cpp ncgroup.cpp ncvar.cpp ncvalues.cpp ncvalues.h
-+libnetcdf_c__4_la_LIBADD = $(top_builddir)/libsrc4/libnetcdf.la
-
- TESTFILES = tst_suiterunner$(EXEEXT) tst_file$(EXEEXT) tst_filerw$(EXEEXT) tst_simple$(EXEEXT)
- tst_suiterunner_SOURCES = tst_suite.cpp tst_suiterunner.cpp tst_suite.h
diff --git a/sci-libs/netcdf/files/netcdf-4.0.1-cfortran.patch b/sci-libs/netcdf/files/netcdf-4.0.1-cfortran.patch
deleted file mode 100644
index 56b761df1be3..000000000000
--- a/sci-libs/netcdf/files/netcdf-4.0.1-cfortran.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- netcdf-4.0.1.orig/configure.ac 2009-03-26 13:10:02.000000000 +0100
-+++ netcdf-4.0.1/configure.ac 2010-01-28 19:01:47.156238559 +0100
-@@ -801,7 +801,7 @@
- *)
- # If it's a gnu compiler, guess f2c.
- if test "x$ac_cv_fc_compiler_gnu" = xyes; then
-- AC_DEFINE(f2cFortran, [1], [Turned on by netCDF configure.])
-+ AC_DEFINE(gFortran, [1], [Turned on by netCDF configure.])
- fi
- ;;
- esac
-
---- netcdf-4.0.1.orig/fortran/ncfortran.h 2009-02-19 13:50:25.000000000 +0100
-+++ netcdf-4.0.1/fortran/ncfortran.h 2009-09-24 21:10:08.000000000 +0200
-@@ -660,7 +660,7 @@
- * The following is for f2c-support only.
- */
-
--#if defined(f2cFortran) && !defined(pgiFortran)
-+#if defined(f2cFortran) && !defined(pgiFortran) && !defined(gFortran)
-
- /*
- * The f2c(1) utility on BSD/OS and Linux systems adds an additional
---- netcdf-4.0.1.orig/nf_test/fortlib.c 2009-09-24 21:11:12.000000000 +0200
-+++ netcdf-4.0.1/nf_test/fortlib.c 2009-09-24 21:11:36.000000000 +0200
-@@ -14,7 +14,7 @@
- #include "../fortran/ncfortran.h"
-
-
--#if defined(f2cFortran) && !defined(pgiFortran)
-+#if defined(f2cFortran) && !defined(pgiFortran) && !defined(gFortran)
- /*
- * The f2c(1) utility on BSD/OS and Linux systems adds an additional
- * underscore suffix (besides the usual one) to global names that have
diff --git a/sci-libs/netcdf/files/netcdf-4.0.1-pkgconfig.patch b/sci-libs/netcdf/files/netcdf-4.0.1-pkgconfig.patch
deleted file mode 100644
index 4bd940fee82e..000000000000
--- a/sci-libs/netcdf/files/netcdf-4.0.1-pkgconfig.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -Nru netcdf-4.0.1.orig/configure.ac netcdf-4.0.1/configure.ac
---- netcdf-4.0.1.orig/configure.ac 2009-03-26 12:10:02.000000000 +0000
-+++ netcdf-4.0.1/configure.ac 2010-01-28 22:10:56.000000000 +0000
-@@ -1159,11 +1159,11 @@
- fi
- if test "x$enable_netcdf_4" = xyes ; then
- if test "x$HDF5DIR" != x ; then
-- NC_LIBS="$NC_LIBS -L$HDF5DIR"
-+ NC_LIBS="$NC_LIBS -L$HDF5DIR/lib"
- fi
- NC_LIBS="$NC_LIBS -lhdf5_hl -lhdf5 $SZLIB_LIBS"
- if test "x$ZLIBDIR" != x ; then
-- NC_LIBS="$NC_LIBS -L$ZLIBDIR"
-+ NC_LIBS="$NC_LIBS -L$ZLIBDIR/lib"
- fi
- NC_LIBS="$NC_LIBS -lz $LIBS"
- fi
-diff -Nru netcdf-4.0.1.orig/nc-config.in netcdf-4.0.1/nc-config.in
---- netcdf-4.0.1.orig/nc-config.in 2009-03-18 20:28:46.000000000 +0000
-+++ netcdf-4.0.1/nc-config.in 2010-01-28 21:48:02.000000000 +0000
-@@ -4,9 +4,9 @@
- #
-
- prefix=@prefix@
--exec_prefix=${prefix}
--libdir=${exec_prefix}/lib
--includedir=${prefix}/include
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-
- cc="@CC@"
- cxx="@CXX@"
-diff -Nru netcdf-4.0.1.orig/netcdf.pc.in netcdf-4.0.1/netcdf.pc.in
---- netcdf-4.0.1.orig/netcdf.pc.in 2009-03-19 12:22:33.000000000 +0000
-+++ netcdf-4.0.1/netcdf.pc.in 2010-01-28 22:11:32.000000000 +0000
-@@ -6,7 +6,7 @@
- cppcompiler=@CXX@
- fcompiler=@FC@
- fflags=@FFLAGS@ -I${includedir}
--flibs=@FLIBS@ @NC_FLIBS@
-+flibs=@NC_FLIBS@
-
- Name: @PACKAGE@
- Description: NetCDF Client Library
diff --git a/sci-libs/netcdf/files/netcdf-4.1.1-implicits.patch b/sci-libs/netcdf/files/netcdf-4.1.1-implicits.patch
new file mode 100644
index 000000000000..bd2982bf3a74
--- /dev/null
+++ b/sci-libs/netcdf/files/netcdf-4.1.1-implicits.patch
@@ -0,0 +1,30 @@
+Fix implicit function declarations
+
+--- libsrc/nc.c
++++ libsrc/nc.c
+@@ -15,7 +15,7 @@
+ # include <mpp/shmem.h>
+ # include <intrinsics.h>
+ #endif
+-#ifdef HAVE_UNISTD
++#ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
+
+--- fortran/fort-nc4.c
++++ fortran/fort-nc4.c
+@@ -30,6 +30,14 @@
+ /* These are in libsrc4/nc4vars.c... */
+ int nc_inq_var_chunking_ints(int ncid, int varid, int *contiguousp, int *chunksizesp);
+ int nc_def_var_chunking_ints(int ncid, int varid, int contiguous, int *chunksizes);
++int nc_set_var_chunk_cache_ints(int ncid, int varid, int size, int nelems, int preemption);
++int nc_get_var_chunk_cache_ints(int ncid, int varid, int *sizep, int *nelemsp, int *preemptionp);
++
++/* These are in libsrc4/nc4file.c... */
++int nc_set_chunk_cache_ints(int size, int nelems, int preemption);
++int nc_get_chunk_cache_ints(int *sizep, int *nelemsp, int *preemptionp);
++int nc_create_par_fortran(const char *path, int cmode, int comm, int info, int *ncidp);
++int nc_open_par_fortran(const char *path, int mode, int comm, int info, int *ncidp);
+
+ FCALLSCFUN5(NF_INT, nc_create_par_fortran, NF_CREATE_PAR, nf_create_par,
+ STRING, FINT2CINT, FINT2CINT, FINT2CINT, PCINT2FINT)
diff --git a/sci-libs/netcdf/files/netcdf-4.1.1-parallel-build.patch b/sci-libs/netcdf/files/netcdf-4.1.1-parallel-build.patch
new file mode 100644
index 000000000000..d06e94539664
--- /dev/null
+++ b/sci-libs/netcdf/files/netcdf-4.1.1-parallel-build.patch
@@ -0,0 +1,38 @@
+Avoid building fortran modules twice, just install them instead.
+
+https://bugs.gentoo.org/296174
+
+--- netcdf-4.1.1/f90/Makefile.am
++++ netcdf-4.1.1/f90/Makefile.am
+@@ -101,17 +101,23 @@
+ # Some fortran compilers change the file names of .mod files to all
+ # uppercase. Just to be special.
+ if UPPER_CASE_MOD
+-nodist_include_HEADERS = TYPESIZES.mod NETCDF.mod
+-TYPESIZES.mod: typeSizes.o
+-NETCDF.mod: $(NETCDF_O)
+-BUILT_SOURCES = TYPESIZES.mod
++NETCDF_MODULES = TYPESIZES.mod NETCDF.mod
+ else
+-nodist_include_HEADERS = typesizes.mod netcdf.mod
+-typesizes.mod: typeSizes.o
+-netcdf.mod: $(NETCDF_O)
+-BUILT_SOURCES = typesizes.mod
++NETCDF_MODULES = typesizes.mod netcdf.mod
+ endif
+
++install-data-local:
++ test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
++ @list='$(NETCDF_MODULES)'; test -n "$(includedir)" || list=; \
++ for p in $$list; do \
++ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
++ echo "$$d$$p"; \
++ done | $(am__base_list) | \
++ while read files; do \
++ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
++ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
++ done
++
+ # This is what we are building: a convenience library of F90 functions.
+ noinst_LTLIBRARIES = libnetcdff90.la
+