1 |
commit: 3cecce2cc54b02e18fc5c282a78f544829619945 |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jan 29 09:12:24 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 20:09:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cecce2c |
7 |
|
8 |
sci-libs/netcdf: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/3709 |
11 |
|
12 |
sci-libs/netcdf/files/netcdf-4.1.1-fortran.patch | 15 ---- |
13 |
sci-libs/netcdf/files/netcdf-4.1.1-implicits.patch | 80 ---------------------- |
14 |
sci-libs/netcdf/files/netcdf-4.1.1-mpi-fix.patch | 32 --------- |
15 |
.../netcdf/files/netcdf-4.1.1-parallel-build.patch | 40 ----------- |
16 |
4 files changed, 167 deletions(-) |
17 |
|
18 |
diff --git a/sci-libs/netcdf/files/netcdf-4.1.1-fortran.patch b/sci-libs/netcdf/files/netcdf-4.1.1-fortran.patch |
19 |
deleted file mode 100644 |
20 |
index 825fd3b..00000000 |
21 |
--- a/sci-libs/netcdf/files/netcdf-4.1.1-fortran.patch |
22 |
+++ /dev/null |
23 |
@@ -1,15 +0,0 @@ |
24 |
-Default to gfortran if cannot figure out F77 compiler |
25 |
- |
26 |
-https://bugs.gentoo.org/show_bug.cgi?id=348922 |
27 |
- |
28 |
---- netcdf-4.1.1/configure.ac |
29 |
-+++ netcdf-4.1.1/configure.ac |
30 |
-@@ -973,7 +973,7 @@ |
31 |
- *) |
32 |
- # If it's a gnu compiler, guess f2c. |
33 |
- if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
34 |
-- AC_DEFINE(f2cFortran, [1], [Turned on by netCDF configure.]) |
35 |
-+ AC_DEFINE(gFortran, [1], [Turned on by netCDF configure.]) |
36 |
- fi |
37 |
- ;; |
38 |
- esac |
39 |
|
40 |
diff --git a/sci-libs/netcdf/files/netcdf-4.1.1-implicits.patch b/sci-libs/netcdf/files/netcdf-4.1.1-implicits.patch |
41 |
deleted file mode 100644 |
42 |
index a30aafc..00000000 |
43 |
--- a/sci-libs/netcdf/files/netcdf-4.1.1-implicits.patch |
44 |
+++ /dev/null |
45 |
@@ -1,80 +0,0 @@ |
46 |
-Fix implicit function declarations |
47 |
- |
48 |
---- libsrc/nc.c |
49 |
-+++ libsrc/nc.c |
50 |
-@@ -15,7 +15,7 @@ |
51 |
- # include <mpp/shmem.h> |
52 |
- # include <intrinsics.h> |
53 |
- #endif |
54 |
--#ifdef HAVE_UNISTD |
55 |
-+#ifdef HAVE_UNISTD_H |
56 |
- #include <unistd.h> |
57 |
- #endif |
58 |
- |
59 |
---- fortran/fort-nc4.c |
60 |
-+++ fortran/fort-nc4.c |
61 |
-@@ -30,6 +30,14 @@ |
62 |
- /* These are in libsrc4/nc4vars.c... */ |
63 |
- int nc_inq_var_chunking_ints(int ncid, int varid, int *contiguousp, int *chunksizesp); |
64 |
- int nc_def_var_chunking_ints(int ncid, int varid, int contiguous, int *chunksizes); |
65 |
-+int nc_set_var_chunk_cache_ints(int ncid, int varid, int size, int nelems, int preemption); |
66 |
-+int nc_get_var_chunk_cache_ints(int ncid, int varid, int *sizep, int *nelemsp, int *preemptionp); |
67 |
-+ |
68 |
-+/* These are in libsrc4/nc4file.c... */ |
69 |
-+int nc_set_chunk_cache_ints(int size, int nelems, int preemption); |
70 |
-+int nc_get_chunk_cache_ints(int *sizep, int *nelemsp, int *preemptionp); |
71 |
-+int nc_create_par_fortran(const char *path, int cmode, int comm, int info, int *ncidp); |
72 |
-+int nc_open_par_fortran(const char *path, int mode, int comm, int info, int *ncidp); |
73 |
- |
74 |
- FCALLSCFUN5(NF_INT, nc_create_par_fortran, NF_CREATE_PAR, nf_create_par, |
75 |
- STRING, FINT2CINT, FINT2CINT, FINT2CINT, PCINT2FINT) |
76 |
---- libncdap3/oc/daplex.c |
77 |
-+++ libncdap3/oc/daplex.c |
78 |
-@@ -86,6 +86,8 @@ |
79 |
- SCAN_PROG |
80 |
- }; |
81 |
- |
82 |
-+int daperror(DAPparsestate* state, const char* msg); |
83 |
-+ |
84 |
- /**************************************************/ |
85 |
- |
86 |
- int |
87 |
---- libncdap3/oc/ocinternal.c |
88 |
-+++ libncdap3/oc/ocinternal.c |
89 |
-@@ -37,6 +37,8 @@ |
90 |
- #endif |
91 |
- |
92 |
- extern OCnode* makeunlimiteddimension(void); |
93 |
-+int occurlopen(CURL** curlp); |
94 |
-+void occurlclose(CURL* curl); |
95 |
- |
96 |
- #ifdef WIN32 |
97 |
- #include <fcntl.h> |
98 |
---- libncdap3/oc/dapparse.c |
99 |
-+++ libncdap3/oc/dapparse.c |
100 |
-@@ -11,6 +11,7 @@ |
101 |
- static OCtype octypefor(Object etype); |
102 |
- static char* scopeduplicates(OClist* list); |
103 |
- static int check_int32(char* val, long* value); |
104 |
-+void setwordchars(DAPlexstate* lexstate, int kind); |
105 |
- |
106 |
- /****************************************************/ |
107 |
- |
108 |
---- libncdap3/ncdap3.c |
109 |
-+++ libncdap3/ncdap3.c |
110 |
-@@ -4,6 +4,7 @@ |
111 |
- * $Id$ |
112 |
- *********************************************************************/ |
113 |
- #include "config.h" |
114 |
-+#include "netcdf3.h" |
115 |
- #include "ncdap3.h" |
116 |
- #include "dispatch3.h" |
117 |
- #include "dapdispatch3.h" |
118 |
---- libncdap3/oc/dapparselex.h |
119 |
-+++ libncdap3/oc/dapparselex.h |
120 |
-@@ -88,4 +88,5 @@ |
121 |
- extern void daplexinit(char* input, DAPlexstate** lexstatep); |
122 |
- extern void daplexcleanup(DAPlexstate** lexstatep); |
123 |
- |
124 |
-+void dassetup(DAPparsestate* state); |
125 |
- #endif /*DAPPARSELEX_H*/ |
126 |
|
127 |
diff --git a/sci-libs/netcdf/files/netcdf-4.1.1-mpi-fix.patch b/sci-libs/netcdf/files/netcdf-4.1.1-mpi-fix.patch |
128 |
deleted file mode 100644 |
129 |
index 4656ef1..00000000 |
130 |
--- a/sci-libs/netcdf/files/netcdf-4.1.1-mpi-fix.patch |
131 |
+++ /dev/null |
132 |
@@ -1,32 +0,0 @@ |
133 |
-Ensure hdf5.h is included before netcdf.h to avoid build error with openmpi >= 1.4.1 |
134 |
- |
135 |
---- libsrc4/nc4internal.h |
136 |
-+++ libsrc4/nc4internal.h |
137 |
-@@ -8,13 +8,13 @@ |
138 |
- |
139 |
- #include <config.h> |
140 |
- #include <stdio.h> |
141 |
-+#include <hdf5.h> |
142 |
- #include "error.h" |
143 |
- #include <stdlib.h> |
144 |
- #include <ctype.h> |
145 |
- #include <stdarg.h> |
146 |
- #include <string.h> |
147 |
- #include "netcdf3.h" |
148 |
--#include <hdf5.h> |
149 |
- #include <netcdf.h> |
150 |
- |
151 |
- #ifdef USE_PARALLEL |
152 |
---- libncdap4/ncdap4.h |
153 |
-+++ libncdap4/ncdap4.h |
154 |
-@@ -12,9 +12,9 @@ |
155 |
- #include <stdio.h> |
156 |
- |
157 |
- #include "config.h" |
158 |
-+#include "nc4internal.h" |
159 |
- #include "netcdf.h" |
160 |
- #include "nc.h" |
161 |
--#include "nc4internal.h" |
162 |
- #include "ncdap.h" |
163 |
- #include "getvara.h" |
164 |
- #include "constraints3.h" |
165 |
|
166 |
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 |
167 |
deleted file mode 100644 |
168 |
index 22708e2..00000000 |
169 |
--- a/sci-libs/netcdf/files/netcdf-4.1.1-parallel-build.patch |
170 |
+++ /dev/null |
171 |
@@ -1,40 +0,0 @@ |
172 |
-Avoid building fortran modules twice, just install them instead. |
173 |
- |
174 |
-https://bugs.gentoo.org/296174 |
175 |
- |
176 |
---- netcdf-4.1.1/f90/Makefile.am |
177 |
-+++ netcdf-4.1.1/f90/Makefile.am |
178 |
-@@ -101,17 +101,25 @@ |
179 |
- # Some fortran compilers change the file names of .mod files to all |
180 |
- # uppercase. Just to be special. |
181 |
- if UPPER_CASE_MOD |
182 |
--nodist_include_HEADERS = TYPESIZES.mod NETCDF.mod |
183 |
--TYPESIZES.mod: typeSizes.o |
184 |
--NETCDF.mod: $(NETCDF_O) |
185 |
--BUILT_SOURCES = TYPESIZES.mod |
186 |
-+NETCDF_MODULES = TYPESIZES.mod NETCDF.mod |
187 |
- else |
188 |
--nodist_include_HEADERS = typesizes.mod netcdf.mod |
189 |
--typesizes.mod: typeSizes.o |
190 |
--netcdf.mod: $(NETCDF_O) |
191 |
--BUILT_SOURCES = typesizes.mod |
192 |
-+NETCDF_MODULES = typesizes.mod netcdf.mod |
193 |
- endif |
194 |
- |
195 |
-+NETCDF_LO := $(NETCDF_O:.o=.lo) |
196 |
-+$(NETCDF_LO): typeSizes.o |
197 |
-+install-data-local: |
198 |
-+ test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" |
199 |
-+ @list='$(NETCDF_MODULES)'; test -n "$(includedir)" || list=; \ |
200 |
-+ for p in $$list; do \ |
201 |
-+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
202 |
-+ echo "$$d$$p"; \ |
203 |
-+ done | $(am__base_list) | \ |
204 |
-+ while read files; do \ |
205 |
-+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ |
206 |
-+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ |
207 |
-+ done |
208 |
-+ |
209 |
- # This is what we are building: a convenience library of F90 functions. |
210 |
- noinst_LTLIBRARIES = libnetcdff90.la |
211 |
- |