<pre style='margin:0'>
Mark Moll (mamoll) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ab245a11a665f368bc728afc534f7ae35cc3def4">https://github.com/macports/macports-ports/commit/ab245a11a665f368bc728afc534f7ae35cc3def4</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new ab245a1 science/hdf5: fix gcc8 compilation error. closes https://trac.macports.org/ticket/56977
</span>ab245a1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ab245a11a665f368bc728afc534f7ae35cc3def4
</span>Author: Mark Moll <mmoll@macports.org>
AuthorDate: Fri Aug 17 20:11:55 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> science/hdf5: fix gcc8 compilation error. closes https://trac.macports.org/ticket/56977
</span>---
science/hdf5/Portfile | 8 +++
science/hdf5/files/patch-src-H5detect.c.diff | 92 ++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/hdf5/Portfile b/science/hdf5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3edc02e..9d47f10 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/hdf5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/hdf5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,6 +47,13 @@ if {[vercmp ${xcodeversion} 4.0] < 0} {
</span> compiler.blacklist-append clang
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[ variant_isset gcc8 ]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://trac.macports.org/ticket/56977 and
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://forum.hdfgroup.org/t/1-10-2-h5detect-compile-error-gcc-8-1-0-on-centos-7-2-solved/4441/3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # This can probably be removed in the next version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-src-H5detect.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Use lib/hdf5 rather than hdf5/lib plugin directory
configure.args --with-zlib=yes \
--enable-build-mode=production --disable-fortran \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -181,6 +188,7 @@ if {[ mpi_variant_isset ]} {
</span> configure.args-append --enable-parallel
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> notes-append {
Mac users may need to set the environment variable "HDF5_USE_FILE_LOCKING"\
to the five-character string "FALSE" when accessing network mounted files. \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/hdf5/files/patch-src-H5detect.c.diff b/science/hdf5/files/patch-src-H5detect.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..adefbfe
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/hdf5/files/patch-src-H5detect.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,92 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/H5detect.c 2018-08-17 19:57:22.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/H5detect.c 2018-08-17 20:00:07.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1361,7 +1361,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_C89_integers(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_C89_integers(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DETECT_BYTE(signed char, SCHAR, d_g[nd_g]); nd_g++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DETECT_BYTE(unsigned char, UCHAR, d_g[nd_g]); nd_g++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1389,7 +1389,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_C89_floats(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_C89_floats(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DETECT_F(float, FLOAT, d_g[nd_g]); nd_g++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DETECT_F(double, DOUBLE, d_g[nd_g]); nd_g++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1411,7 +1411,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_C99_integers8(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_C99_integers8(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if H5_SIZEOF_INT8_T>0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if H5_SIZEOF_INT8_T==1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1473,7 +1473,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_C99_integers16(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_C99_integers16(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if H5_SIZEOF_INT16_T>0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DETECT_I(int16_t, INT16, d_g[nd_g]); nd_g++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1511,7 +1511,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_C99_integers32(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_C99_integers32(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if H5_SIZEOF_INT32_T>0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DETECT_I(int32_t, INT32, d_g[nd_g]); nd_g++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1549,7 +1549,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_C99_integers64(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_C99_integers64(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if H5_SIZEOF_INT64_T>0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DETECT_I(int64_t, INT64, d_g[nd_g]); nd_g++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1600,7 +1600,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_C99_integers(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_C99_integers(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* break it down to more subroutines so that each module subroutine */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* is smaller and takes less time to compile with optimization on. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1626,7 +1626,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_C99_floats(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_C99_floats(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if H5_SIZEOF_DOUBLE == H5_SIZEOF_LONG_DOUBLE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1657,7 +1657,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-detect_alignments(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN detect_alignments(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Detect structure alignment for pointers, hvl_t, hobj_ref_t, hdset_reg_ref_t */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DETECT_M(void *, POINTER, m_g[na_g]); na_g++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1745,7 +1745,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-main(void) HDF_NO_UBSAN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HDF_NO_UBSAN main(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(H5_HAVE_SETSYSINFO) && defined(SSI_NVPAIRS)
</span></pre><pre style='margin:0'>
</pre>