On Mon, Feb 07, 2022 at 09:23:26AM +0000, [email protected] wrote:
> >
> > Good diff. Thank you. HDF5 updates need thorough checking. Here is my
> > remaining TODO list for a similiar diff:
> >
> > - at least compile check on more GCC49_ARCHS (sparc64, arm64 ..)
> > geo/gdal
> > geo/gdal,-main
> > geo/gdal,python3
> > geo/gdal,python3,-main
> > math/armadillo
> > math/matio
> > math/netcdf
> > math/octave
> > math/py-h5py,python
> > - bin/mirror_server* in PLIST?
> > - Fortran: maybe it is time to set
> > MODFORTRAN_COMPILER to egfortran? Three
> > ports
> > in-tree, three differente variants:
> > symbolic link (devel/meson), FC (openmpi),
> > COMPILER_LINKS (gcc8+11)
>
> - I only have an amd64 platform but if you need help testing/compiling
> stuff on amd64 to make this hdf5 update, I'm willing to help.
>
> - I haven't looked into / used the bin/mirror_*
> stuff but it got added when
> I installed 1.12.1 and all tests passed
> (pre&post install) so I just put it in PLIST.
>
> - Are there any gfortran left in the OpenBSD
> world? Or has everybody moved to
> egfortran?
Here is the diff I am currently testing on sparc64/arm64. More tests welcome,
even on amd64.
VFD support is disabled, I don't know why the mirror server is built. It does
not work with VFD disabled so I prefer not to package it.
In OpenBSD, egfortran is gfortran from g95. But handling the compiler link is
not standardized.
I've also shuffled MASTER_SITES so that it works with portroach. HDF still
points to 1.10.5 as current release.
Index: Makefile
===================================================================
RCS file: /cvs/ports/math/hdf5/Makefile,v
retrieving revision 1.23
diff -u -p -u -p -r1.23 Makefile
--- Makefile 28 Oct 2021 14:46:11 -0000 1.23
+++ Makefile 7 Feb 2022 08:04:09 -0000
@@ -5,15 +5,15 @@ ONLY_FOR_ARCHS = ${GCC49_ARCHS}
COMMENT = Hierarchical Data Format 5 Technology suite
-V = 1.12.0
+V = 1.12.1
DISTNAME = hdf5-${V}
-SHARED_LIBS += hdf5 3.0 # 200.0
-SHARED_LIBS += hdf5_cpp 7.0 # 200.0
-SHARED_LIBS += hdf5_hl 3.0 # 200.0
-SHARED_LIBS += hdf5_hl_cpp 4.0 # 200.0
-SHARED_LIBS += hdf5_fortran 0.0 # 200.0
-SHARED_LIBS += hdf5hl_fortran 0.0 # 200.0
+SHARED_LIBS += hdf5 4.0 # 201.0
+SHARED_LIBS += hdf5_cpp 8.0 # 201.0
+SHARED_LIBS += hdf5_hl 3.1 # 200.1
+SHARED_LIBS += hdf5_hl_cpp 4.1 # 200.1
+SHARED_LIBS += hdf5_fortran 1.0 # 201.0
+SHARED_LIBS += hdf5hl_fortran 0.1 # 200.1
CATEGORIES = math
@@ -28,14 +28,15 @@ WANTLIB += c m ${COMPILER_LIBCXX} z
COMPILER = base-clang ports-gcc base-gcc
-MASTER_SITES = https://support.hdfgroup.org/ftp/HDF5/current/src/ \
-
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-${V}/src/
+MASTER_SITES =
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-${V}/src/ \
+ https://support.hdfgroup.org/ftp/HDF5/current/src/
MODULES = fortran
SEPARATE_BUILD = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --enable-cxx \
--enable-fortran \
+ FC=egfortran \
--with-examplesdir=${PREFIX}/share/examples/hdf5
post-install:
Index: distinfo
===================================================================
RCS file: /cvs/ports/math/hdf5/distinfo,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 distinfo
--- distinfo 2 Dec 2020 13:27:54 -0000 1.11
+++ distinfo 7 Feb 2022 08:04:09 -0000
@@ -1,2 +1,2 @@
-SHA256 (hdf5-1.12.0.tar.gz) = pi3LJ2ZYy3jmeV3Sm/km7XqbxO3253AlzSxomo+XwXo=
-SIZE (hdf5-1.12.0.tar.gz) = 12580850
+SHA256 (hdf5-1.12.1.tar.gz) = ecZv9n5mZmU2k5bpyQsy4jjlAfNFr9IjQYa/uDMQgco=
+SIZE (hdf5-1.12.1.tar.gz) = 13534796
Index: patches/patch-c++_examples_Makefile_in
===================================================================
RCS file: patches/patch-c++_examples_Makefile_in
diff -N patches/patch-c++_examples_Makefile_in
--- patches/patch-c++_examples_Makefile_in 2 Dec 2020 13:27:54 -0000
1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-c++_examples_Makefile_in,v 1.1 2020/12/02 13:27:54 martin Exp $
-
-Index: c++/examples/Makefile.in
---- c++/examples/Makefile.in.orig
-+++ c++/examples/Makefile.in
-@@ -709,8 +709,8 @@ CXX_API = yes
-
- # Where to install examples
- # Note: no '/' after DESTDIR. Explanation in commence.am
--EXAMPLEDIR = $(examplesdir)/c++
--EXAMPLETOPDIR = $(examplesdir)
-+EXAMPLEDIR = ${DESTDIR}$(examplesdir)/c++
-+EXAMPLETOPDIR = ${DESTDIR}$(examplesdir)
-
- # Assume that all tests in this directory are examples, and tell
- # conclude.am when to build them.
Index: patches/patch-examples_Makefile_in
===================================================================
RCS file: patches/patch-examples_Makefile_in
diff -N patches/patch-examples_Makefile_in
--- patches/patch-examples_Makefile_in 2 Dec 2020 13:27:54 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-examples_Makefile_in,v 1.1 2020/12/02 13:27:54 martin Exp $
-
-Index: examples/Makefile.in
---- examples/Makefile.in.orig
-+++ examples/Makefile.in
-@@ -725,8 +725,8 @@ EXTLINK_DIRS = red blue u2w
-
- # Example directory
- # Note: no '/' after DESTDIR. Explanation in commence.am
--EXAMPLEDIR = $(examplesdir)/c
--EXAMPLETOPDIR = $(examplesdir)
-+EXAMPLEDIR = ${DESTDIR}$(examplesdir)/c
-+EXAMPLETOPDIR = ${DESTDIR}$(examplesdir)
- @BUILD_SHARED_SZIP_CONDITIONAL_TRUE@LD_LIBRARY_PATH = $(LL_PATH)
-
- # Assume that all tests in this directory are examples, and tell
Index: patches/patch-fortran_examples_Makefile_in
===================================================================
RCS file: patches/patch-fortran_examples_Makefile_in
diff -N patches/patch-fortran_examples_Makefile_in
--- patches/patch-fortran_examples_Makefile_in 2 Dec 2020 13:27:54 -0000
1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-fortran_examples_Makefile_in,v 1.1 2020/12/02 13:27:54 martin
Exp $
-
-Index: fortran/examples/Makefile.in
---- fortran/examples/Makefile.in.orig
-+++ fortran/examples/Makefile.in
-@@ -722,8 +722,8 @@ FORTRAN_API = yes
-
- # Tell automake how to install examples
- # Note: no '/' after DESTDIR. Explanation in commence.am
--EXAMPLEDIR = $(examplesdir)/fortran
--EXAMPLETOPDIR = $(examplesdir)
-+EXAMPLEDIR = ${DESTDIR}$(examplesdir)/fortran
-+EXAMPLETOPDIR = ${DESTDIR}$(examplesdir)
-
- # Assume that all tests in this directory are examples, and tell
- # conclude.am when to build them.
Index: patches/patch-hl_c++_examples_Makefile_in
===================================================================
RCS file: patches/patch-hl_c++_examples_Makefile_in
diff -N patches/patch-hl_c++_examples_Makefile_in
--- patches/patch-hl_c++_examples_Makefile_in 2 Dec 2020 13:27:54 -0000
1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-hl_c++_examples_Makefile_in,v 1.1 2020/12/02 13:27:54 martin
Exp $
-
-Index: hl/c++/examples/Makefile.in
---- hl/c++/examples/Makefile.in.orig
-+++ hl/c++/examples/Makefile.in
-@@ -698,8 +698,8 @@ CXX_API = yes
-
- # Where to install examples
- # Note: no '/' after DESTDIR. Explanation in commence.am
--EXAMPLEDIR = $(examplesdir)/hl/c++
--EXAMPLETOPDIR = $(examplesdir)/hl
-+EXAMPLEDIR = ${DESTDIR}$(examplesdir)/hl/c++
-+EXAMPLETOPDIR = ${DESTDIR}$(examplesdir)/hl
-
- # Assume that all tests in this directory are examples, and tell
- # conclude.am when to build them.
Index: patches/patch-hl_examples_Makefile_in
===================================================================
RCS file: patches/patch-hl_examples_Makefile_in
diff -N patches/patch-hl_examples_Makefile_in
--- patches/patch-hl_examples_Makefile_in 2 Dec 2020 13:27:54 -0000
1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-hl_examples_Makefile_in,v 1.1 2020/12/02 13:27:54 martin Exp $
-
-Index: hl/examples/Makefile.in
---- hl/examples/Makefile.in.orig
-+++ hl/examples/Makefile.in
-@@ -687,8 +687,8 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.clog2 *.
-
- # Example directory
- # Note: no '/' after DESTDIR. Explanation in commence.am
--EXAMPLEDIR = $(examplesdir)/hl/c
--EXAMPLETOPDIR = $(examplesdir)/hl
-+EXAMPLEDIR = ${DESTDIR}$(examplesdir)/hl/c
-+EXAMPLETOPDIR = ${DESTDIR}$(examplesdir)/hl
- INSTALL_SCRIPT_FILES = run-hlc-ex.sh
- INSTALL_TOP_SCRIPT_FILES = run-hl-ex.sh
-
Index: patches/patch-hl_fortran_examples_Makefile_in
===================================================================
RCS file: patches/patch-hl_fortran_examples_Makefile_in
diff -N patches/patch-hl_fortran_examples_Makefile_in
--- patches/patch-hl_fortran_examples_Makefile_in 2 Dec 2020 13:27:54
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-hl_fortran_examples_Makefile_in,v 1.1 2020/12/02 13:27:54
martin Exp $
-
-Index: hl/fortran/examples/Makefile.in
---- hl/fortran/examples/Makefile.in.orig
-+++ hl/fortran/examples/Makefile.in
-@@ -711,8 +711,8 @@ FORTRAN_API = yes
-
- # Tell automake how to install examples
- # Note: no '/' after DESTDIR. Explanation in commence.am
--EXAMPLEDIR = $(examplesdir)/hl/fortran
--EXAMPLETOPDIR = $(examplesdir)/hl
-+EXAMPLEDIR = ${DESTDIR}$(examplesdir)/hl/fortran
-+EXAMPLETOPDIR = ${DESTDIR}$(examplesdir)/hl
-
- # Assume that all tests in this directory are examples, and tell
- # conclude.am when to build them.
Index: patches/patch-m4_aclocal_fc_f90
===================================================================
RCS file: patches/patch-m4_aclocal_fc_f90
diff -N patches/patch-m4_aclocal_fc_f90
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-m4_aclocal_fc_f90 7 Feb 2022 08:04:09 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+
+Index: m4/aclocal_fc.f90
+--- m4/aclocal_fc.f90.orig
++++ m4/aclocal_fc.f90
+@@ -151,6 +151,7 @@ PROGRAM FC_AVAIL_KINDS
+ WRITE(8,'(I0)') max_decimal_prec
+ WRITE(8,'(I0)') num_ikinds
+ WRITE(8,'(I0)') num_rkinds
++ CLOSE(8)
+ END PROGRAM FC_AVAIL_KINDS
+ !---- END ----- Determine the available KINDs for REALs and INTEGERs
+
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/math/hdf5/pkg/PLIST,v
retrieving revision 1.8
diff -u -p -u -p -r1.8 PLIST
--- pkg/PLIST 2 Dec 2020 13:27:55 -0000 1.8
+++ pkg/PLIST 7 Feb 2022 08:04:09 -0000
@@ -21,6 +21,8 @@ bin/h5redeploy
@bin bin/h5stat
@bin bin/h5unjam
@bin bin/h5watch
+@comment bin/mirror_server
+@comment bin/mirror_server_stop
include/H5ACpublic.h
include/H5AbstractDs.h
include/H5Apublic.h
@@ -52,12 +54,14 @@ include/H5FDdirect.h
include/H5FDfamily.h
include/H5FDhdfs.h
include/H5FDlog.h
+include/H5FDmirror.h
include/H5FDmpi.h
include/H5FDmpio.h
include/H5FDmulti.h
include/H5FDpublic.h
include/H5FDros3.h
include/H5FDsec2.h
+include/H5FDsplitter.h
include/H5FDstdio.h
include/H5FDwindows.h
include/H5FaccProp.h
@@ -190,6 +194,7 @@ share/examples/hdf5/c/h5_crtdat.c
share/examples/hdf5/c/h5_crtgrp.c
share/examples/hdf5/c/h5_crtgrpar.c
share/examples/hdf5/c/h5_crtgrpd.c
+share/examples/hdf5/c/h5_debug_trace.c
share/examples/hdf5/c/h5_drivers.c
share/examples/hdf5/c/h5_elink_unix2win.c
share/examples/hdf5/c/h5_extend.c