Please find below an update for math/med to version 6.0.1.

Changelog (en français):
https://github.com/chennes/med/blob/main/ChangeLog

Notes about this update:
1. Test results (see comment on diff):
   100% tests passed, 0 tests failed out of 71
2. SHARED_LIBS bumps due to dynamic export addition, removal, addition
   and addition, respectively. Should I just major bump them all
   together for simplicity?
3. Fix build when an older version of math/med is already installed,
   causing the build to pick up installed headers instead of those in
   WRKSRC.
4. Build tested med's only consumer, cad/freecad, without issues. I'll
   bump it accordingly when this update goes in.

Index: math/med/Makefile
===================================================================
RCS file: /cvs/ports/math/med/Makefile,v
diff -u -p -r1.5 Makefile
--- math/med/Makefile   24 Jul 2026 17:11:06 -0000      1.5
+++ math/med/Makefile   7 Nov 2026 23:55:58 -0000
@@ -1,8 +1,7 @@
 COMMENT =              library for reading and writing MED files
 
-V =                    5.0.0
+V =                    6.0.1
 PKGNAME =              med-${V}
-REVISION =             2
 
 # Official sources site seems down:
 # https://files.salome-platform.org/Salome/medfile/med-${V}.tar.bz2
@@ -10,10 +9,10 @@ REVISION =           2
 # https://github.com/chennes/med
 DIST_TUPLE +=          github chennes med v${V} .
 
-SHARED_LIBS +=         med             0.0 # 0.0
-SHARED_LIBS +=         medC            0.0 # 0.0
-SHARED_LIBS +=         medfwrap        0.0 # 0.0
-SHARED_LIBS +=         medimport       0.0 # 0.0
+SHARED_LIBS +=         med             0.1 # 0.0
+SHARED_LIBS +=         medC            1.0 # 0.0
+SHARED_LIBS +=         medfwrap        0.1 # 0.0
+SHARED_LIBS +=         medimport       0.1 # 0.0
 
 CATEGORIES =           math
 HOMEPAGE =             https://www.salome-platform.org/
@@ -22,7 +21,7 @@ MAINTAINER =          Johannes Thyssen Tishman <
 # LGPLv3
 PERMIT_PACKAGE =       Yes
 
-WANTLIB +=             ${COMPILER_LIBCXX} c hdf5 m sz z
+WANTLIB +=             ${COMPILER_LIBCXX} c hdf5 m
 
 COMPILER =             base-clang ports-gcc
 MODULES =              devel/cmake \
@@ -35,10 +34,17 @@ CONFIGURE_ARGS =    -DMEDFILE_BUILD_DOC=OFF
                        -DMEDFILE_BUILD_PYTHON=OFF \
                        -DMEDFILE_BUILD_SHARED_LIBS=ON \
                        -DMEDFILE_BUILD_STATIC_LIBS=OFF \
-                       -DMEDFILE_BUILD_TESTS=ON \
                        -DMEDFILE_INSTALL_DOC=OFF \
                        -DMEDFILE_USE_MPI=OFF \
                        -DMEDFILE_USE_UNICODE=ON
+
+# Running tests with MAKE_JOBS > 1 causes inconsistent results.
+CONFIGURE_ARGS +=      -DMEDFILE_BUILD_TESTS=ON
+
+# Avoid picking up headers from older versions that are already installed by
+# making sure headers in ${WRKSRC}/include are included before
+# ${LOCALBASE}/include.
+CONFIGURE_ARGS +=      -DCMAKE_INCLUDE_DIRECTORIES_BEFORE=ON
 
 SUBST_VARS +=          V
 
Index: math/med/distinfo
===================================================================
RCS file: /cvs/ports/math/med/distinfo,v
diff -u -p -r1.1.1.1 distinfo
--- math/med/distinfo   15 Dec 2024 15:25:48 -0000      1.1.1.1
+++ math/med/distinfo   7 Nov 2026 23:55:58 -0000
@@ -1,2 +1,2 @@
-SHA256 (chennes-med-v5.0.0.tar.gz) = 
hwHxQgh7h+i3SVj9BDJJjq3ygBGyCtBc9Wv5Eb4IGIg=
-SIZE (chennes-med-v5.0.0.tar.gz) = 47357864
+SHA256 (chennes-med-v6.0.1.tar.gz) = 
YvFjgS5N8Jwj6T1CNChWptpDjL+Y2d/gNgznsUqSsDU=
+SIZE (chennes-med-v6.0.1.tar.gz) = 50306385
Index: math/med/patches/patch-config_cmake_files_medMacros_cmake
===================================================================
RCS file: /cvs/ports/math/med/patches/patch-config_cmake_files_medMacros_cmake,v
diff -u -p -r1.1.1.1 patch-config_cmake_files_medMacros_cmake
--- math/med/patches/patch-config_cmake_files_medMacros_cmake   15 Dec 2024 
15:25:48 -0000      1.1.1.1
+++ math/med/patches/patch-config_cmake_files_medMacros_cmake   7 Nov 2026 
23:55:58 -0000
@@ -1,21 +1,12 @@
-Allow HDF5 versions greater than 1.12
-
 Index: config/cmake_files/medMacros.cmake
 --- config/cmake_files/medMacros.cmake.orig
 +++ config/cmake_files/medMacros.cmake
-@@ -447,13 +447,13 @@ MACRO(MED_FIND_HDF5)
+@@ -447,7 +447,7 @@ MACRO(MED_FIND_HDF5)
      ##
-     ## Requires 1.12.x version
+     ## Requires 1.14.0 version
      ##
--    IF (NOT HDF_VERSION_MAJOR_REF EQUAL 1 OR NOT HDF_VERSION_MINOR_REF EQUAL 
12 OR NOT HDF_VERSION_RELEASE_REF GREATER 0)
-+    IF(HDF5_VERSION VERSION_LESS 1.12.0)
-         MESSAGE(FATAL_ERROR "HDF5 version is ${HDF_VERSION_REF}. Only 
versions >= 1.12.1 are supported.")
+-    IF (NOT HDF_VERSION_MAJOR_REF EQUAL 1 OR NOT HDF_VERSION_MINOR_REF EQUAL 
14 OR NOT HDF_VERSION_RELEASE_REF GREATER_EQUAL 0)
++    IF (HDF_VERSION_REF VERSION_LESS 1.14.0)
+         MESSAGE(FATAL_ERROR "HDF5 version is ${HDF_VERSION_REF}. Only 
versions >= 1.14.0 are supported.")
      ENDIF()
      ##
-     ##
- 
--    ADD_DEFINITIONS(-DH5_USE_16_API -DH5Oget_info_by_name_vers=1 
-DH5O_info_t_vers=1)  
-+    ADD_DEFINITIONS(-DH5_USE_18_API -DH5_USE_16_API 
-DH5Oget_info_by_name_vers=1 -DH5O_info_t_vers=1)  
-     IF(WIN32 AND MEDFILE_BUILD_SHARED_LIBS)
-       ADD_DEFINITIONS(-D_HDF5USEDLL_ -DH5_BUILT_AS_DYNAMIC_LIB=1)   
-     ENDIF()
Index: math/med/patches/patch-include_med_outils_h
===================================================================
RCS file: /cvs/ports/math/med/patches/patch-include_med_outils_h,v
diff -u -p -r1.1.1.1 patch-include_med_outils_h
--- math/med/patches/patch-include_med_outils_h 15 Dec 2024 15:25:48 -0000      
1.1.1.1
+++ math/med/patches/patch-include_med_outils_h 7 Nov 2026 23:55:58 -0000
@@ -1,7 +1,7 @@
 Index: include/med_outils.h
 --- include/med_outils.h.orig
 +++ include/med_outils.h
-@@ -256,7 +256,7 @@
+@@ -289,7 +289,7 @@
  #define MED_INFOS "/INFOS_GENERALES/"
  
  /*Pour eviter le bug solaris*/
Index: math/med/patches/patch-src_ci_MEDfileCompatibility_c
===================================================================
RCS file: math/med/patches/patch-src_ci_MEDfileCompatibility_c
diff -N math/med/patches/patch-src_ci_MEDfileCompatibility_c
--- math/med/patches/patch-src_ci_MEDfileCompatibility_c        15 Dec 2024 
15:25:48 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-Allow HDF5 versions greater than 1.12
-
-Index: src/ci/MEDfileCompatibility.c
---- src/ci/MEDfileCompatibility.c.orig
-+++ src/ci/MEDfileCompatibility.c
-@@ -116,7 +116,7 @@ MEDfileCompatibility(const char* const filename,
- #if MED_NUM_MAJEUR != 5
- #error "Don't forget to update the test version here when you change the 
major version of the library !"
- #endif
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to check the compatibility version of the library, 
depending on the internal hdf model choice !"
- #error "Cf. _MEDfileCreate ..."
- #endif
Index: math/med/patches/patch-src_hdfi__MEDfileCreate_c
===================================================================
RCS file: math/med/patches/patch-src_hdfi__MEDfileCreate_c
diff -N math/med/patches/patch-src_hdfi__MEDfileCreate_c
--- math/med/patches/patch-src_hdfi__MEDfileCreate_c    15 Dec 2024 15:25:48 
-0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-Allow HDF5 versions greater than 1.12
-
-Index: src/hdfi/_MEDfileCreate.c
---- src/hdfi/_MEDfileCreate.c.orig
-+++ src/hdfi/_MEDfileCreate.c
-@@ -189,7 +189,7 @@ med_idt _MEDfileCreate(const char * const filename, co
-    * Cette ligne est censée obliger HDF à ne pas utiliser un modèle interne 
différent de 1.10.z
-    * Un test autoconf permet de fixer un intervalle de version HDF à MED.
-    */
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to change the compatibility version of the library !"
- #endif
-    
Index: math/med/patches/patch-src_hdfi__MEDfileOpenForImport_c
===================================================================
RCS file: math/med/patches/patch-src_hdfi__MEDfileOpenForImport_c
diff -N math/med/patches/patch-src_hdfi__MEDfileOpenForImport_c
--- math/med/patches/patch-src_hdfi__MEDfileOpenForImport_c     15 Dec 2024 
15:25:48 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-Allow HDF5 versions greater than 1.12
-
-Index: src/hdfi/_MEDfileOpenForImport.c
---- src/hdfi/_MEDfileOpenForImport.c.orig
-+++ src/hdfi/_MEDfileOpenForImport.c
-@@ -53,7 +53,7 @@ med_idt  _MEDfileOpenForImport(const char * const file
-   }
- 
- 
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to change the compatibility version of the library !"
- #endif
- /* L'avantage de bloquer le modèle interne HDF5
Index: math/med/patches/patch-src_hdfi__MEDfileOpen_c
===================================================================
RCS file: math/med/patches/patch-src_hdfi__MEDfileOpen_c
diff -N math/med/patches/patch-src_hdfi__MEDfileOpen_c
--- math/med/patches/patch-src_hdfi__MEDfileOpen_c      15 Dec 2024 15:25:48 
-0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-Allow HDF5 versions greater than 1.12
-
-Index: src/hdfi/_MEDfileOpen.c
---- src/hdfi/_MEDfileOpen.c.orig
-+++ src/hdfi/_MEDfileOpen.c
-@@ -113,7 +113,7 @@ med_idt _MEDfileOpen(const char * const filename,const
-        has been set in the group creation property list (see 
H5Pset_link_creation_order).
-   */
- 
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to change the compatibility version of the library !"
- #endif
- /* L'avantage de bloquer le modèle interne HDF5
Index: math/med/patches/patch-src_hdfi__MEDmemFileOpen_c
===================================================================
RCS file: math/med/patches/patch-src_hdfi__MEDmemFileOpen_c
diff -N math/med/patches/patch-src_hdfi__MEDmemFileOpen_c
--- math/med/patches/patch-src_hdfi__MEDmemFileOpen_c   15 Dec 2024 15:25:48 
-0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,23 +0,0 @@
-Allow HDF5 versions greater than 1.12
-
-Index: src/hdfi/_MEDmemFileOpen.c
---- src/hdfi/_MEDmemFileOpen.c.orig
-+++ src/hdfi/_MEDmemFileOpen.c
-@@ -439,7 +439,7 @@ med_idt _MEDmemFileOpen(const char * const filename, m
-     goto ERROR;
-   }
- 
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to change the compatibility version of the library !"
- #endif
-   if ( H5Pset_libver_bounds( _fapl, H5F_LIBVER_V112, H5F_LIBVER_V112 ) ) {
-@@ -506,7 +506,7 @@ med_idt _MEDmemFileOpen(const char * const filename, m
-       goto ERROR;
-       }
-       _fversionMM = 100*_fmajor+10*_fminor;
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to change the compatibility version of the library !"
- #endif
-       if ( _fversionMM < 500 ) { /*100*MED_NUM_MAJEUR+10*MED_NUM_MINEUR*/
Index: math/med/patches/patch-src_hdfi__MEDparFileCreate_c
===================================================================
RCS file: math/med/patches/patch-src_hdfi__MEDparFileCreate_c
diff -N math/med/patches/patch-src_hdfi__MEDparFileCreate_c
--- math/med/patches/patch-src_hdfi__MEDparFileCreate_c 15 Dec 2024 15:25:48 
-0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-Allow HDF5 versions greater than 1.12
-
-Index: src/hdfi/_MEDparFileCreate.c
---- src/hdfi/_MEDparFileCreate.c.orig
-+++ src/hdfi/_MEDparFileCreate.c
-@@ -64,7 +64,7 @@ med_idt _MEDparFileCreate(const char * const filename,
-    * En HDF5-1.10.0p1 cela n'a aucun effet ! 
-    * Un test autoconf permet de fixer un intervalle de version HDF à MED.
-    */
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to change the compatibility version of the library !"
- #endif
-    
Index: math/med/patches/patch-src_hdfi__MEDparFileOpen_c
===================================================================
RCS file: math/med/patches/patch-src_hdfi__MEDparFileOpen_c
diff -N math/med/patches/patch-src_hdfi__MEDparFileOpen_c
--- math/med/patches/patch-src_hdfi__MEDparFileOpen_c   15 Dec 2024 15:25:48 
-0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-Allow HDF5 versions greater than 1.12
-
-Index: src/hdfi/_MEDparFileOpen.c
---- src/hdfi/_MEDparFileOpen.c.orig
-+++ src/hdfi/_MEDparFileOpen.c
-@@ -86,7 +86,7 @@ med_idt _MEDparFileOpen(const char * const filename,co
-   }
-   _fversionMM = 100*_fmajor+10*_fminor;
- 
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to change the compatibility version of the library !"
- #endif 
-   if ( _fversionMM < 500 ) { /*100*MED_NUM_MAJEUR+10*MED_NUM_MINEUR*/
Index: math/med/patches/patch-src_misc_MEDversionedApi3C_c
===================================================================
RCS file: math/med/patches/patch-src_misc_MEDversionedApi3C_c
diff -N math/med/patches/patch-src_misc_MEDversionedApi3C_c
--- math/med/patches/patch-src_misc_MEDversionedApi3C_c 15 Dec 2024 15:25:48 
-0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-Allow HDF5 versions greater than 1.12
-
-Index: src/misc/MEDversionedApi3C.c
---- src/misc/MEDversionedApi3C.c.orig
-+++ src/misc/MEDversionedApi3C.c
-@@ -114,7 +114,7 @@ MedFuncType _MEDversionedApi3( const char * const key,
-   /*      (_fversionMM <= (100*MED_NUM_MAJEUR+10*MED_NUM_MINEUR) ) */
-   /*      ) { */
- 
--#if H5_VERS_MINOR > 12
-+#if H5_VERS_MINOR > 14
- #error "Don't forget to change the compatibility version of the library !"
- #endif
-   

Reply via email to