diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-07 22:48:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-07 22:48:01 +0000 |
commit | c3bc61051d7f12b4c682efa7a5460bbc8815649e (patch) | |
tree | b6d19e96ba3c397fb8278eeb9b68170db92630ba /sci-libs/silo | |
parent | 3517852e3b8a68d1e997770fc0650c5053bafc6c (diff) |
gentoo resync : 07.01.2022
Diffstat (limited to 'sci-libs/silo')
-rw-r--r-- | sci-libs/silo/Manifest | 15 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.10.2-mpiposix.patch | 53 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.10.2-qt5.patch | 44 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.10.2-qtlibs.patch | 78 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.10.2-tests.patch | 11 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.11-autoreconf.patch | 35 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.11-hdf5.patch | 46 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.11-test-disable-largefile.patch | 23 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.11-tests.patch | 26 | ||||
-rw-r--r-- | sci-libs/silo/files/silo-4.11-testsuite-python-write.patch | 27 | ||||
-rw-r--r-- | sci-libs/silo/metadata.xml | 1 | ||||
-rw-r--r-- | sci-libs/silo/silo-4.10.2-r1.ebuild | 41 | ||||
-rw-r--r-- | sci-libs/silo/silo-4.11.ebuild | 47 |
13 files changed, 213 insertions, 234 deletions
diff --git a/sci-libs/silo/Manifest b/sci-libs/silo/Manifest index 0c5d9506b287..d1ce7850acbe 100644 --- a/sci-libs/silo/Manifest +++ b/sci-libs/silo/Manifest @@ -1,7 +1,8 @@ -AUX silo-4.10.2-mpiposix.patch 1902 BLAKE2B c26f6681bbab0065f046414c406bcfac3cc1a993729bb67e1178e67261201afbaad3f0469b8859d5c34261ea00f4be4f131a9db9f981dbbe18f137b53dc9a435 SHA512 626a7b8084a936b667f704a1a35edb8f6ce9ab42b58857024b87f280364d99b452e3f149b577e45898eb08523f0741eecc1c4ad20a46018dae377ca17adcf97a -AUX silo-4.10.2-qt5.patch 1414 BLAKE2B 3b33d1228f9b26340d851a97dfcdde38b1ab66632a05ef0a3a5d7b9cec2c9c7186c922d0630bf6600830c53263218b90fe66ab0156cdf143a4df5577b200f5ab SHA512 a6a22b7ef04179b8d101d38b72244be6c59d4d23bb8dd0855ba5f3267a181e2b175806dbfa6c1184bd5f3542e842701f096a389e6cae6df5d26209319d96316f -AUX silo-4.10.2-qtlibs.patch 4320 BLAKE2B 34fbff942d4caa73bf18302873ba4dc63de063eec84b3e0cd3bf3b24a5aeb44d40b74567f8001c3d14e19dabdb5133ea4ca32af067b16398a6aaaaac664209c5 SHA512 3f2e63ee943463fc23d7ba3542c756bd158c8b8f8280ec87eef53e30add0b335edfd202c592885e2f4002c7f975324ca7e96351c1d9c25ffb1adf2b67cd034d9 -AUX silo-4.10.2-tests.patch 562 BLAKE2B 27a15c9b6561101610774fd5f69b3bde7c0bca13943f37792562a0af66924566852ff67d5eee208bfcf1dd7790be602809c552a3f5a3b98cfc971aa1e90fd560 SHA512 c54c9cd7934f94e572302c8afabf20b4bfe84c34e602afe37fde2c0953598c5c91cb5a9351669da2dd44226cf269a4d762a38af5a23896677d8260cfcff032f3 -DIST silo-4.10.2.tar.gz 13135900 BLAKE2B 6326a42df43c4bb6936522d1730db8ce45c6b74779cf37b7a5a0b7a72def9e9a4f174b68392adbda59936113ccac4ae5e7bf7266effb364eac7e5d0cff8bb37c SHA512 8cd1340ed641c8be77f310b286da344e2fed7ae469ed7bebf5deebaa1a369ca91c283b38eae2c57b7ad046f65343cfaa56a1c07b6c8b07b79aad69c4e5617f6e -EBUILD silo-4.10.2-r1.ebuild 1204 BLAKE2B cd8fff90a101fc3888af7918ded496abc0c205c9e2e4434fec166b03713ccc9ffc598641377979be7ed42cc80058e17616193ad18646c462dc204e9200e14c1c SHA512 02d1c29c400ed9624a6d7714ac2cc53e503f43516f61f25380dfd3de604fe6398402ee1c0f94c5dd18f75e85ee1d5528f9a321f81fb6ff4f0d35c6b7436a8ee5 -MISC metadata.xml 674 BLAKE2B 3689c25bc7a4803dc6aee8c93d494cea99ba3a2f42a5f41a693e40cce0bd1daa8dd33fc4074d44a3eac756084893076ee3525deea0ef27363ab6311d1e475775 SHA512 33e3f253ef4e7488ad861a514cdd26069cbb51546f5ccaffedd73b3338ae55b462127dcef24c3481d77b27526f53cd779065d5fdb950a4715218a992314c8500 +AUX silo-4.11-autoreconf.patch 1692 BLAKE2B 23d9ef8806f655874bedb3a0bf3d839e61e4da06a95457bdacb6ddf54da46ceeb563b8bb623b8c6edd9c13eb110ffab07c146e1e04f4ac537a3eac0952942e44 SHA512 0c1eb37267c116180ce6f54dfdb998eceaf865bd4a544da01e29a56cd1cf0846af14518780888c029ea5fc37b02e07b146ec7dcb8bea759869aa1235fbd79a22 +AUX silo-4.11-hdf5.patch 1927 BLAKE2B 7c712cf43f4f8b1b4ac502afbde68de105e5cba34767f9faa523d9fdfa185b8eb6675cfb5c678d0dd9c27a12a5693b9ca6c2d3ee6d3af146db3d2039479ffe8b SHA512 7c34856634daade9976a71cb70286cc735a29a6082f67efcbf61ffcab4f8620a447daace8ae49eb7b6100b8d8c7ed482a3aafa4269a29b70c8da8829815bcbb4 +AUX silo-4.11-test-disable-largefile.patch 913 BLAKE2B b8c244bbe4df98e8a90af306894290c3103d9763610bf720c77fd22ff8ca9f1cdfc8d69176a9d330552e690ba38af72cd32f46bf4047351704d57644a24e3a03 SHA512 320cc6a110a0c1a641aa053ef642cfacafa0e22e76373d10bc214f7cc716619a2229062ee5dffd92ebb16bd02b3c0d5a6137380be5e88bcfd2fef45284436455 +AUX silo-4.11-tests.patch 909 BLAKE2B 0472a4ea51ca60285415b4da0cdfb5cd0cc8b75289abdf6040640d39dd5f528797ec8a36cc1681785c0945f379cfe2ce3ef0d1b9998b36cf38f797f7c0cd173a SHA512 d29efc8b0edfb996e3a1d7a7dbab6f15a60d3481135625852084d30c2f89f5a9a7bcd937619f01c31a301bca3250e4632e87ea5056f54be5613ad6ead008c8eb +AUX silo-4.11-testsuite-python-write.patch 827 BLAKE2B a2cfc512ff5aaffec6af29a5de16c9c827d7488dcaae8e808ead2a8d9d6dc5f0fddea821d9b6cd170d2657d98a13d9b79faa8bad0fbb11150099a1b7b489beb3 SHA512 6ff64305f7c72be9683494c8095fe192273d06bafe027d18ca0a71fcd1579af71100e31381b65d2f9d6b805bcb95a6a9b85aeec5e99bc4d2dac93b828977f98e +DIST silo-4.11-bsd.tgz 13298515 BLAKE2B fcf2e7912381e57d1a64644d3cee4dea50302c12704eaf0ee9e2569b7bc29b1d5c9df66878744ffc2cc04e16834fdf1cd4d677983af36005e4ecf0918c6283d5 SHA512 f642dd21dacffa147aea54d6f8669c704772d5640d6eb7eeff1d7e5e5d37ddbde250d78bad30e9478dcfec63a86863243d7a56cd9b692eaefdd7a89b34df35d0 +EBUILD silo-4.11.ebuild 1098 BLAKE2B 817d224691f2087511604b2d061a72a684ca09baca3d5b463fb9e275267484798eb0d47a989f8502d431111a1834b41b342d98350d4587557f13693b17d44ed7 SHA512 8da126e5136ff7dc4587ab2f815d3eb046ca69882023595a7d9407e602c4d90538146b542a886dfe77138cc3e5a9209b26cce35bdec2087811db8bd17eccb9be +MISC metadata.xml 729 BLAKE2B 0bab9cb0101f967456a70472cb819b0eb43eb8444ae5260d33c3dc3f8f49480594609698110155dc6a12ef93ff6acf539b02f2cbfebc496fa0b641ed36738715 SHA512 3131fb65d7c9048d5a3b49ca9ce1ce790ca4b34c588b8bd72fc48a9facc995b1da1a8ac7ae4601db1c6cd14313f6d32084eaf101e95f2279df8e3316c3467514 diff --git a/sci-libs/silo/files/silo-4.10.2-mpiposix.patch b/sci-libs/silo/files/silo-4.10.2-mpiposix.patch deleted file mode 100644 index 30a3f910b196..000000000000 --- a/sci-libs/silo/files/silo-4.10.2-mpiposix.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- src/hdf5_drv/silo_hdf5.c.orig 2017-07-28 08:52:09.026638768 +0200 -+++ src/hdf5_drv/silo_hdf5.c 2017-07-28 09:00:12.306635882 +0200 -@@ -4752,18 +4752,19 @@ - } - - /* default HDF5 mpi drivers */ -- case DB_FILE_OPTS_H5_DEFAULT_MPIP: -- { --#ifdef H5_HAVE_PARALLEL -- h5status |= H5Pset_fapl_mpiposix(retval, MPI_COMM_SELF, TRUE); --#else -- H5Pclose(retval); -- return db_perror("HDF5 MPI VFD", E_NOTENABLEDINBUILD, me); --#endif -- break; -- } -+// case DB_FILE_OPTS_H5_DEFAULT_MPIP: -+// { -+//#ifdef H5_HAVE_PARALLEL -+// h5status |= H5Pset_fapl_mpiposix(retval, MPI_COMM_SELF, TRUE); -+//#else -+// H5Pclose(retval); -+// return db_perror("HDF5 MPI VFD", E_NOTENABLEDINBUILD, me); -+//#endif -+// break; -+// } - - case DB_FILE_OPTS_H5_DEFAULT_MPIO: -+ case DB_FILE_OPTS_H5_DEFAULT_MPIP: - { - #ifdef H5_HAVE_PARALLEL - MPI_Info info; -@@ -5069,15 +5070,15 @@ - if ((p = DBGetOption(opts, DBOPT_H5_MPIP_NO_GPFS_HINTS))) - use_gpfs_hints = FALSE; - -- if (vfd == DB_H5VFD_MPIO) -+// if (vfd == DB_H5VFD_MPIO) - { - h5status |= H5Pset_fapl_mpio(retval, mpi_comm, mpi_info); - if (created_info) MPI_Info_free(&mpi_info); - } -- else -- { -- h5status |= H5Pset_fapl_mpiposix(retval, mpi_comm, use_gpfs_hints); -- } -+// else -+// { -+// h5status |= H5Pset_fapl_mpiposix(retval, mpi_comm, use_gpfs_hints); -+// } - #else - H5Pclose(retval); - return db_perror("HDF5 MPI VFD", E_NOTENABLEDINBUILD, me); diff --git a/sci-libs/silo/files/silo-4.10.2-qt5.patch b/sci-libs/silo/files/silo-4.10.2-qt5.patch deleted file mode 100644 index 1e1fe8803a37..000000000000 --- a/sci-libs/silo/files/silo-4.10.2-qt5.patch +++ /dev/null @@ -1,44 +0,0 @@ ---- tools/silex/SiloFile.h.orig 2018-01-24 11:01:23.354705068 +0100 -+++ tools/silex/SiloFile.h 2018-01-24 11:01:34.843705761 +0100 -@@ -61,6 +61,8 @@ - #include <vector> - using std::vector; - -+#define toAscii toLatin1 -+ - // **************************************************************************** - // Class: SiloDir - // ---- tools/silex/main.cpp.orig 2018-01-24 11:02:21.201708556 +0100 -+++ tools/silex/main.cpp 2018-01-24 11:02:34.146709336 +0100 -@@ -58,7 +58,7 @@ - #include <cstdlib> - - #ifndef Q_WS_MACX --#include "qwindowsstyle.h" -+//#include "qwindowsstyle.h" - #endif - #include "qfiledialog.h" - #include "qstring.h" -@@ -91,7 +91,7 @@ - QApplication::setColorSpec(QApplication::ManyColor); - QApplication a(argc, argv); - #ifndef Q_WS_MACX -- a.setStyle(new QWindowsStyle); -+// a.setStyle(new QWindowsStyle); - #endif - Explorer *w = 0; - if (argc > 1) ---- tools/silex/SiloView.cpp.orig 2018-01-24 11:03:13.775711725 +0100 -+++ tools/silex/SiloView.cpp 2018-01-24 11:03:30.032712706 +0100 -@@ -109,8 +109,8 @@ - dirTreeView->OpenRootDir(); - dirView->Set(silo->root); - -- dirTreeView->header()->setResizeMode(QHeaderView::Interactive); -- dirView->header()->setResizeMode(QHeaderView::Interactive); -+ dirTreeView->header()->setSectionResizeMode(QHeaderView::Interactive); -+ dirView->header()->setSectionResizeMode(QHeaderView::Interactive); - } - } - diff --git a/sci-libs/silo/files/silo-4.10.2-qtlibs.patch b/sci-libs/silo/files/silo-4.10.2-qtlibs.patch deleted file mode 100644 index ecd5297c281f..000000000000 --- a/sci-libs/silo/files/silo-4.10.2-qtlibs.patch +++ /dev/null @@ -1,78 +0,0 @@ ---- configure.orig 2018-01-24 10:50:10.458664501 +0100 -+++ configure 2018-01-24 10:50:42.967666461 +0100 -@@ -27541,7 +27541,7 @@ - ax_qt_lib="`ls $ax_qt_lib_dir/libQt* | sed -n 1p | - sed s@$ax_qt_lib_dir/lib@@ | sed s@[.].*@@`" - fi -- ax_qt_LIBS="-L$ax_qt_lib_dir -l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" -+ ax_qt_LIBS="-L$ax_qt_lib_dir -l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lQt5Core -lQt5Gui -lQt5Widgets -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - else - # Use cached value or do search, starting with suggestions from - # the command line -@@ -27615,7 +27615,7 @@ - ax_qt_lib="`ls $ax_qt_lib_dir/libQt* | sed -n 1p | - sed s@$ax_qt_lib_dir/lib@@ | sed s@[.].*@@`" - fi -- ax_qt_LIBS="-L$ax_qt_lib_dir -l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" -+ ax_qt_LIBS="-L$ax_qt_lib_dir -l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lQt5Core -lQt5Gui -lQt5Widgets -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - else - # There is no valid definition for $QTDIR as Trolltech likes to see it - ax_qt_dir= -@@ -27627,7 +27627,7 @@ - ax_qt_lib="`ls $ax_qt_lib_dir/libQt* | sed -n 1p | - sed s@$ax_qt_lib_dir/lib@@ | sed s@[.].*@@`" - fi -- ax_qt_LIBS="-L$ax_qt_lib_dir -l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" -+ ax_qt_LIBS="-L$ax_qt_lib_dir -l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lQt5Core -lQt5Gui -lQt5Widgets -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - else - # Normally, when there is no traditional Trolltech installation, - # the library is installed in a place where the linker finds it -@@ -27645,10 +27645,10 @@ - # See if we find the library without any special options. - # Don't add top $LIBS permanently yet - ax_save_LIBS="$LIBS" -- LIBS="-l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" -+ LIBS="-l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lQt5Core -lQt5Gui -lQt5Widgets -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - ax_qt_LIBS="$LIBS" - ax_save_CXXFLAGS="$CXXFLAGS" -- CXXFLAGS="-I$ax_qt_include_dir -I$ax_qt_include_dir/Qt -I$ax_qt_include_dir/QtCore -I$ax_qt_include_dir/QtGui" -+ CXXFLAGS="-I$ax_qt_include_dir -I$ax_qt_include_dir/Qt -I$ax_qt_include_dir/QtCore -I$ax_qt_include_dir/QtGui -I$ax_qt_include_dir/QtWidgets -fPIC" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -27706,7 +27706,7 @@ - # That did not work. Try the multi-threaded version - echo "Non-critical error, please neglect the above." >&5 - ax_qt_lib=qt-mt -- LIBS="-l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" -+ LIBS="-l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lQt5Core -lQt5Gui -lQt5Widgets -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -27764,7 +27764,7 @@ - # That did not work. Try the OpenGL version - echo "Non-critical error, please neglect the above." >&5 - ax_qt_lib=qt-gl -- LIBS="-l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" -+ LIBS="-l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lQt5Core -lQt5Gui -lQt5Widgets -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -27847,7 +27847,7 @@ - fi - done - # Try with that one -- LIBS="-l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" -+ LIBS="-l$ax_qt_lib $X_PRE_LIBS $X_LIBS -lQt5Core -lQt5Gui -lQt5Widgets -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -27955,7 +27955,7 @@ - fi # all $ax_qt_* are set - fi # $have_qt reflects the system status - if test x"$have_qt" = xyes; then -- QT_CXXFLAGS="-I$ax_qt_include_dir -I$ax_qt_include_dir/Qt -I$ax_qt_include_dir/QtCore -I$ax_qt_include_dir/QtGui" -+ QT_CXXFLAGS="-I$ax_qt_include_dir -I$ax_qt_include_dir/Qt -I$ax_qt_include_dir/QtCore -I$ax_qt_include_dir/QtGui -I$ax_qt_include_dir/QtWidgets -fPIC" - if test x"$ax_qt_lib" = xqt-mt; then - QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT" - fi diff --git a/sci-libs/silo/files/silo-4.10.2-tests.patch b/sci-libs/silo/files/silo-4.10.2-tests.patch deleted file mode 100644 index 2e0a52191d0e..000000000000 --- a/sci-libs/silo/files/silo-4.10.2-tests.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- tests/Makefile.in.old 2014-07-24 07:25:53.464381420 +0200 -+++ tests/Makefile.in 2014-07-24 07:26:14.951048323 +0200 -@@ -169,7 +169,7 @@ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(ioperf_stdio_la_LDFLAGS) $(LDFLAGS) -o $@ - rocket_silo_la_LIBADD = --am_rocket_silo_la_OBJECTS = rocket_silo.lo -+am_rocket_silo_la_OBJECTS = rocket_silo.lo ../src/.libs/libsilo.la - rocket_silo_la_OBJECTS = $(am_rocket_silo_la_OBJECTS) - rocket_silo_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ diff --git a/sci-libs/silo/files/silo-4.11-autoreconf.patch b/sci-libs/silo/files/silo-4.11-autoreconf.patch new file mode 100644 index 000000000000..371b346e921c --- /dev/null +++ b/sci-libs/silo/files/silo-4.11-autoreconf.patch @@ -0,0 +1,35 @@ +Author: Alastair McKinstry <mckinstry@debian.org> +Description: Fixes needed for autoreconf to work on Debian + When autoreconf is run, VL_LIB_READLINE is lost from aclocal, so included in config/ + Also include AX_CHECK_COMPLER_FLAG() which is not in autoconf (just autoconf-archive) + AX_CHECK_COMPILER_FLAGS() is obsolete +Last-Updated: 2021-01-14 +Forwarded: no +Link: https://sources.debian.org/patches/silo-llnl/4.11-2/autoreconf.patch/ + +--- a/configure.ac ++++ b/configure.ac +@@ -195,6 +195,8 @@ + dnl This allows multiple src-dir builds within one host. + AC_PREFIX_DEFAULT("SILO_TOP_SRC_DIR") + ++AC_PROG_F77 ++ + dnl + dnl Handle the python module right away to determine if we need shared libs. + dnl Ordinarily, we default to static libs +@@ -618,10 +620,10 @@ + # it is an argument to the -D argument. So, I think this is + # just totally bogus! + # Default to large file support +-AX_CHECK_COMPILER_FLAGS("-D_LARGEFILE_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE";) +-AX_CHECK_COMPILER_FLAGS("-D_LARGEFILE64_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE";) +-AX_CHECK_COMPILER_FLAGS("-D_FILE_OFFSET_BITS=64",CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64";) +-AX_CHECK_COMPILER_FLAGS("-Wdeclaration-after-statement",CFLAGS="$CFLAGS -Wdeclaration-after-statement";) ++AX_CHECK_COMPILE_FLAG("-D_LARGEFILE_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE";) ++AX_CHECK_COMPILE_FLAG("-D_LARGEFILE64_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE";) ++AX_CHECK_COMPILE_FLAG("-D_FILE_OFFSET_BITS=64",CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64";) ++AX_CHECK_COMPILE_FLAG("-Wdeclaration-after-statement",CFLAGS="$CFLAGS -Wdeclaration-after-statement";) + + # + # Note: regardless of what the stuff above regarding large file support diff --git a/sci-libs/silo/files/silo-4.11-hdf5.patch b/sci-libs/silo/files/silo-4.11-hdf5.patch new file mode 100644 index 000000000000..6791a44aa2b1 --- /dev/null +++ b/sci-libs/silo/files/silo-4.11-hdf5.patch @@ -0,0 +1,46 @@ +Link: https://aur.archlinux.org/cgit/aur.git/tree/hdf5.patch?h=silo + +--- a/src/hdf5_drv/H5FDsilo.c 2021-09-11 01:22:52.000000000 +0300 ++++ b/src/hdf5_drv/H5FDsilo.c 2021-11-25 00:37:06.685422949 +0200 +@@ -252,13 +252,13 @@ + snprintf(msg, sizeof(msg), Msg "(errno=%d, \"%s\")", \ + Errno, strerror(Errno)); \ + ret_value = Ret; \ +- H5Epush_ret(Func, Cls, Maj, Min, msg, Ret) \ ++ H5Epush_ret(Func, Cls, Maj, Min, msg, Ret); \ + } + #else + #define H5E_PUSH_HELPER(Func,Cls,Maj,Min,Msg,Ret,Errno) \ + { \ + ret_value = Ret; \ +- H5Epush_ret(Func, Cls, Maj, Min, Msg, Ret) \ ++ H5Epush_ret(Func, Cls, Maj, Min, Msg, Ret); \ + } + #endif + +@@ -1355,7 +1355,7 @@ + assert(sizeof(hsize_t)<=8); + memcpy(p, &file->block_size, sizeof(hsize_t)); + if (H5Tconvert(H5T_NATIVE_HSIZE, H5T_STD_U64LE, 1, buf+8, NULL, H5P_DEFAULT)<0) +- H5Epush_ret(func, H5E_ERR_CLS, H5E_DATATYPE, H5E_CANTCONVERT, "can't convert superblock info", -1) ++ H5Epush_ret(func, H5E_ERR_CLS, H5E_DATATYPE, H5E_CANTCONVERT, "can't convert superblock info", -1); + + return 0; + } +@@ -1383,14 +1383,14 @@ + + /* Make sure the name/version number is correct */ + if (strcmp(name, "LLNLsilo")) +- H5Epush_ret(func, H5E_ERR_CLS, H5E_FILE, H5E_BADVALUE, "invalid silo superblock", -1) ++ H5Epush_ret(func, H5E_ERR_CLS, H5E_FILE, H5E_BADVALUE, "invalid silo superblock", -1); + + buf += 8; + /* Decode block size */ + assert(sizeof(hsize_t)<=8); + memcpy(x, buf, 8); + if (H5Tconvert(H5T_STD_U64LE, H5T_NATIVE_HSIZE, 1, x, NULL, H5P_DEFAULT)<0) +- H5Epush_ret(func, H5E_ERR_CLS, H5E_DATATYPE, H5E_CANTCONVERT, "can't convert superblock info", -1) ++ H5Epush_ret(func, H5E_ERR_CLS, H5E_DATATYPE, H5E_CANTCONVERT, "can't convert superblock info", -1); + ap = (hsize_t*)x; + /*file->block_size = *ap; ignore stored value for now */ + diff --git a/sci-libs/silo/files/silo-4.11-test-disable-largefile.patch b/sci-libs/silo/files/silo-4.11-test-disable-largefile.patch new file mode 100644 index 000000000000..953453e12fe0 --- /dev/null +++ b/sci-libs/silo/files/silo-4.11-test-disable-largefile.patch @@ -0,0 +1,23 @@ +Author: Alastair McKinstry <mckinstry@debian.org> +Description: Disable largefile test. Seems to fail on rounding error +Forwarded: yes +Last-Updated: 2011-06-09 +Link: https://sources.debian.org/patches/silo-llnl/4.11-2/test-disable-largefile.patch/ + +--- a/tests/testsuite.at ++++ b/tests/testsuite.at +@@ -324,10 +324,10 @@ + AT_SETUP(xversion) + AT_CHECK(test -z "$BROWSER" -o "$STARGS" != DB_HDF5 && exit 77 || $VALGRIND testxvers `pwd`,,ignore,ignore) + AT_CLEANUP +-AT_SETUP(largefile) +-AT_KEYWORDS(large) +-AT_CHECK(test "$STARGS" != DB_HDF5 && exit 77 || $VALGRIND largefile,,ignore,ignore) +-AT_CLEANUP ++#AT_SETUP(largefile) ++#AT_KEYWORDS(large) ++#AT_CHECK(test "$STARGS" != DB_HDF5 && exit 77 || $VALGRIND largefile,,ignore,ignore) ++#AT_CLEANUP + #AT_SETUP(memfile_simple) + #AT_CHECK(testall -small $STARGS,,ignore) + #AT_CHECK(test "$STARGS" != DB_HDF5 && exit 77 || $VALGRIND memfile_simple $STARGS,,ignore,ignore) diff --git a/sci-libs/silo/files/silo-4.11-tests.patch b/sci-libs/silo/files/silo-4.11-tests.patch new file mode 100644 index 000000000000..a093d318ded6 --- /dev/null +++ b/sci-libs/silo/files/silo-4.11-tests.patch @@ -0,0 +1,26 @@ +--- a/tests/Makefile.in ++++ b/tests/Makefile.in +@@ -169,7 +169,7 @@ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(ioperf_stdio_la_LDFLAGS) $(LDFLAGS) -o $@ + rocket_silo_la_LIBADD = +-am_rocket_silo_la_OBJECTS = rocket_silo.lo ++am_rocket_silo_la_OBJECTS = rocket_silo.lo ../src/.libs/libsiloh5.la + rocket_silo_la_OBJECTS = $(am_rocket_silo_la_OBJECTS) + rocket_silo_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + +Author: Alastair McKinstry <mckinstry@debian.org> +Description: bash is needed to execute this testscript for test 62. +Last-Updated: 2011-04-11 +Forwarded: no +Link: https://sources.debian.org/patches/silo-llnl/4.11-2/testsuite-fix.patch/ + +--- a/tests/testdtypes ++++ b/tests/testdtypes +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/bin/bash + + # Copyright (C) 1994-2016 Lawrence Livermore National Security, LLC. + # LLNL-CODE-425250. diff --git a/sci-libs/silo/files/silo-4.11-testsuite-python-write.patch b/sci-libs/silo/files/silo-4.11-testsuite-python-write.patch new file mode 100644 index 000000000000..ac0bc859068a --- /dev/null +++ b/sci-libs/silo/files/silo-4.11-testsuite-python-write.patch @@ -0,0 +1,27 @@ +Author: Alastair McKinstry <mckinstry@debian.org> +Description: Python code seems to be broken. Disable test and inform upstream. +Last-Updated: 2011-06-09 +Forwarded: yes +Link: https://sources.debian.org/patches/silo-llnl/4.11-2/testsuite-python-write.patch/ + +--- a/tests/test_write.py ++++ b/tests/test_write.py +@@ -52,11 +52,13 @@ + db = Silo.Create("foo.silo", "test file") + db.Write("t1", 12) + db.Write("t2", "hello") +-db.Write("t3", (13,)) +-db.Write("t4", 14.5) +-db.Write("t5", (1.2, 10)) +-db.Write("t6", (1.2, 10.2)) +-db.Write("t7", (10, 1.2)) ++# Disable writes with floating point. Seem to break on python2.7 ++# --amck, 2011-06-09 ++#db.Write("t3", (13,)) ++#db.Write("t4", 14.5) ++#db.Write("t5", (1.2, 10)) ++#db.Write("t6", (1.2, 10.2)) ++#db.Write("t7", (10, 1.2)) + db.Write("t8", "a") + db.MkDir("a") + db.Write("a/t8", "x2") diff --git a/sci-libs/silo/metadata.xml b/sci-libs/silo/metadata.xml index 042cd6fc239a..ebaabb67af86 100644 --- a/sci-libs/silo/metadata.xml +++ b/sci-libs/silo/metadata.xml @@ -9,6 +9,7 @@ computing platforms. </longdescription> <use> + <flag name="browser">Enable browser support</flag> <flag name="silex">Build silex data browser</flag> </use> <maintainer type="project"> diff --git a/sci-libs/silo/silo-4.10.2-r1.ebuild b/sci-libs/silo/silo-4.10.2-r1.ebuild deleted file mode 100644 index 65c67760377f..000000000000 --- a/sci-libs/silo/silo-4.10.2-r1.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit epatch fortran-2 - -DESCRIPTION="A mesh and field I/O library and scientific database" -HOMEPAGE="https://wci.llnl.gov/simulation/computer-codes/silo" -SRC_URI="https://wci.llnl.gov/content/assets/docs/simulation/computer-codes/${PN}/${P}/${P}.tar.gz" -SLOT="0" -LICENSE="BSD" -KEYWORDS="~amd64 ~x86" -IUSE="hdf5 +silex static-libs +qt5 test" -RESTRICT="!test? ( test )" - -REQUIRED_USE="silex? ( qt5 )" - -RDEPEND=" - hdf5? ( sci-libs/hdf5 ) - qt5? ( dev-qt/qtgui:5 )" -DEPEND="${RDEPEND}" - -src_prepare() { - epatch "${FILESDIR}/${P}-qtlibs.patch" - epatch "${FILESDIR}/${P}-qt5.patch" - epatch "${FILESDIR}/${P}-tests.patch" - epatch "${FILESDIR}/${P}-mpiposix.patch" -} - -src_configure() { - econf \ - --enable-install-lite-headers \ - --enable-shared \ - $(use_enable silex silex ) \ - $(use_enable static-libs static ) \ - $(use_with qt5 Qt-lib-dir "${EPREFIX}"/usr/$(get_libdir) ) \ - $(use_with qt5 Qt-include-dir "${EPREFIX}"/usr/include/qt5 ) \ - $(use_with qt5 Qt-bin-dir "${EPREFIX}"/usr/$(get_libdir)/qt5/bin ) \ - $(use_with hdf5 hdf5 ${EPREFIX}"/usr/include,${EPREFIX}"/usr/$(get_libdir) ) -} diff --git a/sci-libs/silo/silo-4.11.ebuild b/sci-libs/silo/silo-4.11.ebuild new file mode 100644 index 000000000000..e7a7f142d2aa --- /dev/null +++ b/sci-libs/silo/silo-4.11.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fortran-2 + +DESCRIPTION="A mesh and field I/O library and scientific database" +HOMEPAGE="https://wci.llnl.gov/simulation/computer-codes/silo" +SRC_URI="https://wci.llnl.gov/sites/wci/files/2021-09/${P}-bsd.tgz" +S="${WORKDIR}/${P}-bsd" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="browser +hdf5 +silex" +# Waiting for fix/answer upstream +# See https://github.com/LLNL/Silo/issues/234 +RESTRICT="test" + +RDEPEND=" + dev-qt/qtgui:5 + virtual/szip + hdf5? ( sci-libs/hdf5 ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-autoreconf.patch + "${FILESDIR}"/${P}-hdf5.patch + "${FILESDIR}"/${P}-test-disable-largefile.patch + "${FILESDIR}"/${P}-tests.patch + "${FILESDIR}"/${P}-testsuite-python-write.patch +) + +src_configure() { + econf \ + --enable-install-lite-headers \ + --enable-shared \ + $(use_enable silex silex ) \ + $(use_enable browser browser ) \ + $(use_with hdf5 hdf5 "${EPREFIX}"/usr/include,"${EPREFIX}"/usr/$(get_libdir) ) +} + +# src_test() { +# emake -C tests check +# } |