Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/netcdf/files/
Date: Sat, 27 Feb 2021 15:38:12
Message-Id: 1614440178.6552a105bd9efbcd159a05f851a8417ee69a8646.conikost@gentoo
1 commit: 6552a105bd9efbcd159a05f851a8417ee69a8646
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Fri Feb 26 16:52:32 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 15:36:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6552a105
7
8 sci-libs/netcdf: remove unused patch
9
10 Closes: https://github.com/gentoo/gentoo/pull/19672
11 Package-Manager: Portage-3.0.14, Repoman-3.0.2
12 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 .../files/netcdf-4.3.2-HDF5-1.8.13+-compat.patch | 145 ---------------------
16 1 file changed, 145 deletions(-)
17
18 diff --git a/sci-libs/netcdf/files/netcdf-4.3.2-HDF5-1.8.13+-compat.patch b/sci-libs/netcdf/files/netcdf-4.3.2-HDF5-1.8.13+-compat.patch
19 deleted file mode 100644
20 index 783a5b06e99..00000000000
21 --- a/sci-libs/netcdf/files/netcdf-4.3.2-HDF5-1.8.13+-compat.patch
22 +++ /dev/null
23 @@ -1,145 +0,0 @@
24 -From 435d8a03ed28bb5ad63aff12cbc6ab91531b6bc8 Mon Sep 17 00:00:00 2001
25 -From: Quincey Koziol <quincey@××××××.cc>
26 -Date: Wed, 7 May 2014 08:45:15 -0500
27 -Subject: [PATCH] Account for the HDF5 library not having the MPI-POSIX VFD
28 - configured in.
29 -
30 ----
31 - RELEASE_NOTES.md | 2 ++
32 - libsrc4/nc4file.c | 40 ++++++++++++++++++++++++++++++++++++++++
33 - nc_test4/tst_nc4perf.c | 5 +++++
34 - nc_test4/tst_parallel3.c | 5 +++++
35 - 4 files changed, 52 insertions(+)
36 -
37 -diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
38 -index 27f228c..1a69d17 100644
39 ---- a/RELEASE_NOTES.md
40 -+++ b/RELEASE_NOTES.md
41 -@@ -9,6 +9,8 @@ This file contains a high-level description of this package's evolution. Release
42 -
43 - ### 4.3.3-rc1 Released TBD
44 -
45 -+* When the NC_MPIPOSIX flag is given for parallel I/O access and the HDF5 library does not have the MPI-POSIX VFD configured in, the NC_MPIPOSIX flag is transparently aliased to the NC_MPIIO flag within the netCDF-4 library.
46 -+
47 - ## 4.3.2 Released 2014-04-23
48 -
49 - * As part of an ongoing project, the Doxygen-generated netcdf documentation has been reorganized. The goal is to make the documentation easier to parse, and to eliminate redundant material. This project is ongoing.
50 -diff --git a/libsrc4/nc4file.c b/libsrc4/nc4file.c
51 -index ec3bb0c..5c957be 100644
52 ---- a/libsrc4/nc4file.c
53 -+++ b/libsrc4/nc4file.c
54 -@@ -308,12 +308,21 @@ nc4_create_file(const char *path, int cmode, MPI_Comm comm, MPI_Info info,
55 - if (H5Pset_fapl_mpio(fapl_id, comm, info) < 0)
56 - BAIL(NC_EPARINIT);
57 - }
58 -+#ifdef USE_PARALLEL_POSIX
59 - else /* MPI/POSIX */
60 - {
61 - LOG((4, "creating parallel file with MPI/posix"));
62 - if (H5Pset_fapl_mpiposix(fapl_id, comm, 0) < 0)
63 - BAIL(NC_EPARINIT);
64 - }
65 -+#else /* USE_PARALLEL_POSIX */
66 -+ /* Should not happen! Code in NC4_create/NC4_open should alias the
67 -+ * NC_MPIPOSIX flag to NC_MPIIO, if the MPI-POSIX VFD is not
68 -+ * available in HDF5. -QAK
69 -+ */
70 -+ else /* MPI/POSIX */
71 -+ BAIL(NC_EPARINIT);
72 -+#endif /* USE_PARALLEL_POSIX */
73 -
74 - /* Keep copies of the MPI Comm & Info objects */
75 - if (MPI_SUCCESS != MPI_Comm_dup(comm, &nc4_info->comm))
76 -@@ -465,6 +474,17 @@ NC4_create(const char* path, int cmode, size_t initialsz, int basepe,
77 - )
78 - return NC_EINVAL;
79 -
80 -+#ifndef USE_PARALLEL_POSIX
81 -+/* If the HDF5 library has been compiled without the MPI-POSIX VFD, alias
82 -+ * the NC_MPIPOSIX flag to NC_MPIIO. -QAK
83 -+ */
84 -+ if(cmode & NC_MPIPOSIX)
85 -+ {
86 -+ cmode &= ~NC_MPIPOSIX;
87 -+ cmode |= NC_MPIIO;
88 -+ }
89 -+#endif /* USE_PARALLEL_POSIX */
90 -+
91 - cmode |= NC_NETCDF4;
92 -
93 - /* Apply default create format. */
94 -@@ -2168,12 +2188,21 @@ nc4_open_file(const char *path, int mode, MPI_Comm comm,
95 - if (H5Pset_fapl_mpio(fapl_id, comm, info) < 0)
96 - BAIL(NC_EPARINIT);
97 - }
98 -+#ifdef USE_PARALLEL_POSIX
99 - else /* MPI/POSIX */
100 - {
101 - LOG((4, "opening parallel file with MPI/posix"));
102 - if (H5Pset_fapl_mpiposix(fapl_id, comm, 0) < 0)
103 - BAIL(NC_EPARINIT);
104 - }
105 -+#else /* USE_PARALLEL_POSIX */
106 -+ /* Should not happen! Code in NC4_create/NC4_open should alias the
107 -+ * NC_MPIPOSIX flag to NC_MPIIO, if the MPI-POSIX VFD is not
108 -+ * available in HDF5. -QAK
109 -+ */
110 -+ else /* MPI/POSIX */
111 -+ BAIL(NC_EPARINIT);
112 -+#endif /* USE_PARALLEL_POSIX */
113 -
114 - /* Keep copies of the MPI Comm & Info objects */
115 - if (MPI_SUCCESS != MPI_Comm_dup(comm, &nc4_info->comm))
116 -@@ -2640,6 +2669,17 @@ NC4_open(const char *path, int mode, int basepe, size_t *chunksizehintp,
117 - (mode & NC_MPIIO && mode & NC_MPIPOSIX))
118 - return NC_EINVAL;
119 -
120 -+#ifndef USE_PARALLEL_POSIX
121 -+/* If the HDF5 library has been compiled without the MPI-POSIX VFD, alias
122 -+ * the NC_MPIPOSIX flag to NC_MPIIO. -QAK
123 -+ */
124 -+ if(mode & NC_MPIPOSIX)
125 -+ {
126 -+ mode &= ~NC_MPIPOSIX;
127 -+ mode |= NC_MPIIO;
128 -+ }
129 -+#endif /* USE_PARALLEL_POSIX */
130 -+
131 -
132 - /* Depending on the type of file, open it. */
133 -
134 -diff --git a/nc_test4/tst_nc4perf.c b/nc_test4/tst_nc4perf.c
135 -index 47af70e..3528b82 100644
136 ---- a/nc_test4/tst_nc4perf.c
137 -+++ b/nc_test4/tst_nc4perf.c
138 -@@ -244,6 +244,11 @@ int test_pio_4d(size_t cache_size, int facc_type, int access_flag, MPI_Comm comm
139 - return 0;
140 - }
141 -
142 -+/* Note: When the MPI-POSIX VFD is not compiled in to HDF5, the NC_MPIPOSIX
143 -+ * flag will be aliased to the NC_MPIIO flag within the library, and
144 -+ * therefore this test will exercise the aliasing, with the MPI-IO VFD,
145 -+ * under that configuration. -QAK
146 -+ */
147 - #define NUM_MODES 2
148 - #define NUM_FACC 2
149 - #define NUM_CHUNK_COMBOS_2D 3
150 -diff --git a/nc_test4/tst_parallel3.c b/nc_test4/tst_parallel3.c
151 -index 27f9c98..9fa534f 100644
152 ---- a/nc_test4/tst_parallel3.c
153 -+++ b/nc_test4/tst_parallel3.c
154 -@@ -129,6 +129,11 @@ int main(int argc, char **argv)
155 - if (mpi_rank == 0)
156 - SUMMARIZE_ERR;
157 -
158 -+/* Note: When the MPI-POSIX VFD is not compiled in to HDF5, the NC_MPIPOSIX
159 -+ * flag will be aliased to the NC_MPIIO flag within the library, and
160 -+ * therefore this test will exercise the aliasing, with the MPI-IO VFD,
161 -+ * under that configuration. -QAK
162 -+ */
163 - if (mpi_rank == 0)
164 - printf("*** Testing parallel IO for raw-data with MPIPOSIX-IO (driver)...");
165 - facc_type = NC_NETCDF4|NC_MPIPOSIX;
166 ---
167 -2.0.3
168 -