forked from conda-forge/hdf5-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I'm tying to revert the changes done in conda-forge#231 while keeping it updated with some recent improvements Please discuss in conda-forge#240 - [ ] Build number maintained
- Loading branch information
Showing
8 changed files
with
164 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
--- hdf5-1.14.4-3.orig/configure.ac 2024-09-04 11:40:42.165782724 +0200 | ||
+++ hdf5-1.14.4-3/configure.ac 2024-09-04 11:49:55.287694807 +0200 | ||
@@ -138,6 +138,9 @@ | ||
From abfc19a7732d6e72ff738a4c2ff6f205677c9fa2 Mon Sep 17 00:00:00 2001 | ||
From: Min RK <[email protected]> | ||
Date: Wed, 14 Jun 2023 16:20:49 +0200 | ||
Subject: [PATCH 1/2] avoid test execution when cross-compiling | ||
|
||
--- | ||
configure.ac | 25 +++++++++++++++++++++++-- | ||
1 file changed, 23 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/configure.ac b/configure.ac | ||
index 2c3b041677..830dd176da 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -138,6 +138,9 @@ AC_SUBST([CPPFLAGS]) | ||
AC_SUBST([JNIFLAGS]) | ||
AC_SUBST([AR_FLAGS]) | ||
|
||
|
@@ -10,7 +21,7 @@ | |
## H5_CFLAGS (and company) are for CFLAGS that should be used on HDF5, but | ||
## not exported to h5cc (or h5fc, etc.) | ||
## | ||
@@ -801,19 +804,21 @@ | ||
@@ -575,19 +578,21 @@ if test "X$HDF_FORTRAN" = "Xyes"; then | ||
FLT128_DIG=0 | ||
LDBL_DIG=0 | ||
|
||
|
@@ -34,10 +45,11 @@ | |
AC_DEFINE_UNQUOTED([PAC_C_MAX_REAL_PRECISION], $PAC_C_MAX_REAL_PRECISION, [Determine the maximum decimal precision in C]) | ||
AC_MSG_RESULT([$PAC_C_MAX_REAL_PRECISION]) | ||
|
||
@@ -921,6 +926,14 @@ | ||
fi | ||
fi | ||
@@ -679,6 +684,15 @@ if test "X$HDF_FORTRAN" = "Xyes"; then | ||
|
||
## See if the fortran compiler supports the intrinsic module "ISO_FORTRAN_ENV" | ||
PAC_PROG_FC_ISO_FORTRAN_ENV | ||
+ | ||
+ if test "$cross_compiling" = yes; then | ||
+ ## defines from aclocal_fc.m4, but require execution | ||
+ AC_DEFINE_UNQUOTED([PAC_FC_MAX_REAL_PRECISION], $PAC_FC_MAX_REAL_PRECISION, [Define Fortran Maximum Real Decimal Precision]) | ||
|
@@ -49,15 +61,15 @@ | |
## Check KIND and size of native integer | ||
PAC_FC_NATIVE_INTEGER | ||
|
||
@@ -934,6 +947,7 @@ | ||
## Find all SIZEOFs for available KINDs | ||
@@ -687,6 +701,7 @@ if test "X$HDF_FORTRAN" = "Xyes"; then | ||
## Find all sizeofs for available KINDs | ||
PAC_FC_SIZEOF_INT_KINDS | ||
PAC_FC_SIZEOF_REAL_KINDS | ||
+ fi | ||
|
||
AC_SUBST([PAC_FC_ALL_REAL_KINDS]) | ||
AC_SUBST([PAC_FC_MAX_REAL_PRECISION]) | ||
@@ -1045,9 +1059,15 @@ | ||
@@ -782,9 +797,15 @@ if test "X$HDF_FORTRAN" = "Xyes"; then | ||
AC_MSG_RESULT([$PAC_FC_ALL_REAL_KINDS]) | ||
|
||
dnl count the number of real kinds | ||
|
@@ -73,3 +85,6 @@ | |
|
||
AC_DEFINE_UNQUOTED([H5CONFIG_F_NUM_RKIND], $H5CONFIG_F_NUM_RKIND, [Define number of valid Fortran REAL KINDs]) | ||
AC_DEFINE_UNQUOTED([H5CONFIG_F_RKIND], $H5CONFIG_F_RKIND, [Define valid Fortran REAL KINDs]) | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
--- hdf5-1.14.4-3.orig/configure.ac 2024-09-04 11:52:50.297783584 +0200 | ||
+++ hdf5-1.14.4-3/configure.ac 2024-09-04 11:54:32.681536979 +0200 | ||
@@ -140,6 +140,14 @@ | ||
From c3b21fe8632a8d03525b07ea671ebdb44aeb5cbd Mon Sep 17 00:00:00 2001 | ||
From: Min RK <[email protected]> | ||
Date: Thu, 15 Jun 2023 00:06:44 +0200 | ||
Subject: [PATCH 2/2] run host H5detect when cross-compiling | ||
|
||
Edit: Mark Harfouche: H5detect was removed in 1.14.3 but we still need | ||
this to run some Fortran tests. | ||
|
||
--- | ||
configure.ac | 8 ++++++++ | ||
fortran/src/Makefile.am | 4 ++-- | ||
hl/fortran/src/Makefile.am | 2 +- | ||
3 files changed, 11 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/configure.ac b/configure.ac | ||
index 830dd176da..a1fe555a21 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -140,6 +140,14 @@ AC_SUBST([AR_FLAGS]) | ||
|
||
AC_SUBST([cross_compiling]) | ||
|
||
|
@@ -15,32 +31,39 @@ | |
|
||
## H5_CFLAGS (and company) are for CFLAGS that should be used on HDF5, but | ||
## not exported to h5cc (or h5fc, etc.) | ||
--- hdf5-1.14.4-3.orig/fortran/src/Makefile.am 2024-09-04 11:52:50.403781047 +0200 | ||
+++ hdf5-1.14.4-3/fortran/src/Makefile.am 2024-09-04 11:54:32.681536979 +0200 | ||
@@ -121,13 +121,13 @@ | ||
diff --git a/fortran/src/Makefile.am b/fortran/src/Makefile.am | ||
index d42a41d2c9..a83df060cd 100644 | ||
--- a/fortran/src/Makefile.am | ||
+++ b/fortran/src/Makefile.am | ||
@@ -119,13 +119,13 @@ BUILT_SOURCES = H5f90i_gen.h | ||
# header, then H5match_types which includes that header, then | ||
# it needs to run H5match_types. | ||
H5fortran_types.F90 H5f90i_gen.h: H5match_types$(EXEEXT) | ||
+ $(RUNSERIAL) $(src_run)H5match_types$(EXEEXT) | ||
- $(RUNSERIAL) ./H5match_types$(EXEEXT) | ||
+ $(RUNSERIAL) $(src_run)H5match_types$(EXEEXT) | ||
|
||
# H5_buildiface.F90 generates all the APIs that have a KIND type associated | ||
# with them. | ||
|
||
H5_gen.F90: H5_buildiface$(EXEEXT) | ||
+ $(RUNSERIAL) $(src_run)H5_buildiface$(EXEEXT) | ||
- $(RUNSERIAL) ./H5_buildiface$(EXEEXT) | ||
+ $(RUNSERIAL) $(src_run)H5_buildiface$(EXEEXT) | ||
|
||
# H5_buildiface.F90 is included in the distribution, and Automake knows | ||
# how to compile a fortran program given its sources. | ||
--- hdf5-1.14.4-3.orig/hl/fortran/src/Makefile.am 2024-09-04 11:52:50.480779204 +0200 | ||
+++ hdf5-1.14.4-3/hl/fortran/src/Makefile.am 2024-09-04 11:54:32.681536979 +0200 | ||
@@ -95,7 +95,7 @@ | ||
diff --git a/hl/fortran/src/Makefile.am b/hl/fortran/src/Makefile.am | ||
index 5834c9932d..98f8888f96 100644 | ||
--- a/hl/fortran/src/Makefile.am | ||
+++ b/hl/fortran/src/Makefile.am | ||
@@ -95,7 +95,7 @@ noinst_PROGRAMS = H5HL_buildiface | ||
# with them. | ||
|
||
H5LTff_gen.F90: H5HL_buildiface$(EXEEXT) | ||
+ $(RUNSERIAL) $(src_run)H5HL_buildiface$(EXEEXT) | ||
- $(RUNSERIAL) ./H5HL_buildiface$(EXEEXT) | ||
+ $(RUNSERIAL) $(src_run)H5HL_buildiface$(EXEEXT) | ||
|
||
H5TBff_gen.F90: H5HL_buildiface$(EXEEXT) | ||
|
||
-- | ||
2.34.1 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
--- hdf5-1.14.4-3.orig/tools/test/h5diff/testh5diff.sh.in 2024-09-04 11:37:38.397521167 +0200 | ||
+++ hdf5-1.14.4-3/tools/test/h5diff/testh5diff.sh.in 2024-09-04 11:39:19.843948177 +0200 | ||
@@ -714,7 +714,7 @@ | ||
--- a/tools/test/h5diff/testh5diff.sh.in | ||
+++ b/tools/test/h5diff/testh5diff.sh.in | ||
@@ -709,7 +709,7 @@ | ||
TOOLTEST h5diff_58.txt -v2 h5diff_dset1.h5 h5diff_dset2.h5 refreg | ||
TOOLTEST h5diff_58_ref.txt -v2 h5diff_dset1.h5 h5diff_dset2.h5 /g1/reference2D | ||
# STD_REF_OBJ | ||
+# TOOLTEST h5diff_reg.txt -v2 trefer_attr.h5 trefer_ext2.h5 Dataset3 Dataset3 | ||
-TOOLTEST h5diff_reg.txt -v2 trefer_attr.h5 trefer_ext2.h5 Dataset3 Dataset3 | ||
+# TOOLTEST h5diff_reg.txt -v2 trefer_attr.h5 trefer_ext2.h5 Dataset3 Dataset3 | ||
|
||
# test for both dset and attr with same type but with different size | ||
# ( HDDFV-7942 ) | ||
@@ -733,7 +733,7 @@ | ||
@@ -728,7 +728,7 @@ | ||
|
||
|
||
# 6.0: Check if the command line number of arguments is less than 3 | ||
+# TOOLTEST h5diff_600.txt h5diff_basic1.h5 | ||
-TOOLTEST h5diff_600.txt h5diff_basic1.h5 | ||
+# TOOLTEST h5diff_600.txt h5diff_basic1.h5 | ||
|
||
# 6.1: Check if non-exist object name is specified | ||
TOOLTEST h5diff_601.txt h5diff_basic1.h5 h5diff_basic1.h5 nono_obj | ||
@@ -1169,7 +1169,7 @@ | ||
@@ -1161,7 +1161,7 @@ | ||
# test to verify HDFFV-8625 | ||
TOOLTEST h5diff_8625.txt -v --enable-error-stack h5diff_comp_vl_strs.h5 h5diff_comp_vl_strs.h5 /group/Compound_dset1 /group_copy/Compound_dset3 | ||
# test to verify HDFFV-8639 | ||
+# TOOLTEST h5diff_8639.txt -v h5diff_attr3.h5 h5diff_attr2.h5 /g1 | ||
-TOOLTEST h5diff_8639.txt -v h5diff_attr3.h5 h5diff_attr2.h5 /g1 | ||
+# TOOLTEST h5diff_8639.txt -v h5diff_attr3.h5 h5diff_attr2.h5 /g1 | ||
TOOLTEST h5diff_vlstr.txt -v tvlstr.h5 tvlstr2.h5 | ||
|
||
# ############################################################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
--- hdf5-1.14.4-3.orig/testpar/testpflush.sh.in 2024-05-22 20:43:17.000000000 +0200 | ||
+++ hdf5-1.14.4-3/testpar/testpflush.sh.in 2024-09-04 11:34:34.999254199 +0200 | ||
@@ -49,7 +49,7 @@ | ||
--- hdf5-1.12.0.orig/testpar/testpflush.sh.in 2020-07-18 17:38:20.176820078 -0500 | ||
+++ hdf5-1.12.0/testpar/testpflush.sh.in 2020-07-19 08:43:07.332270170 -0500 | ||
@@ -52,7 +52,7 @@ | ||
echo "called MPI_Finalize(). This is an intended characteristic of the" | ||
echo "test and should not be considered an error." | ||
echo "test and should not be considered an error." | ||
echo "********************************************************************" | ||
+#eval ${RUNPARALLELSCRIPT} ./t_pflush1 | ||
-eval ${RUNPARALLELSCRIPT} ./t_pflush1 | ||
+#eval ${RUNPARALLELSCRIPT} ./t_pflush1 | ||
|
||
|
||
# =========================================== | ||
@@ -57,5 +57,5 @@ | ||
@@ -60,5 +60,5 @@ | ||
# The return code of this call is the return | ||
# code of the script. | ||
# =========================================== | ||
+#eval ${RUNPARALLELSCRIPT} ./t_pflush2 | ||
+exit 0 | ||
-eval ${RUNPARALLELSCRIPT} ./t_pflush2 | ||
- | ||
+#eval ${RUNPARALLELSCRIPT} ./t_pflush2 | ||
+exit 0 |