lol

Merge pull request #74988 from smaret/sundials-5.0.0

sundials: 4.1.0 -> 5.0.0

authored by

Florian Klink and committed by
GitHub
d3ee140e 5d8bd748

+2 -49
+2 -4
pkgs/development/libraries/sundials/default.nix
··· 12 12 13 13 in stdenv.mkDerivation rec { 14 14 pname = "sundials"; 15 - version = "4.1.0"; 15 + version = "5.0.0"; 16 16 17 17 buildInputs = [ python ] ++ stdenv.lib.optionals (lapackSupport) [ gfortran ]; 18 18 nativeBuildInputs = [ cmake ]; 19 19 20 20 src = fetchurl { 21 21 url = "https://computation.llnl.gov/projects/${pname}/download/${pname}-${version}.tar.gz"; 22 - sha256 = "19ca4nmlf6i9ijqcibyvpprxzsdfnackgjs6dw51fq13gg1f2398"; 22 + sha256 = "1lvx5pddjxgyr8kqlira36kxckz7nxwc8xilzfyx0hf607n42l9l"; 23 23 }; 24 24 25 25 patches = [ ··· 33 33 url = "https://github.com/LLNL/sundials/pull/20/commits/2d951bbe1ff7842fcd0dafa28c61b0aa94015f66.patch"; 34 34 sha256 = "0lcr6m4lk14yqrxah4rdscpczny5l7m1zpfsjh8bgspadfsgk512"; 35 35 }) 36 - # https://github.com/LLNL/sundials/pull/21 37 - ./tests-parallel.patch 38 36 ]; 39 37 40 38 cmakeFlags = [
-45
pkgs/development/libraries/sundials/tests-parallel.patch
··· 1 - diff --git a/config/SundialsAddTest.cmake b/config/SundialsAddTest.cmake 2 - index e965fed..a7fb1d2 100644 3 - --- a/config/SundialsAddTest.cmake 4 - +++ b/config/SundialsAddTest.cmake 5 - @@ -70,7 +70,7 @@ MACRO(SUNDIALS_ADD_TEST NAME EXECUTABLE) 6 - "--verbose" 7 - "--testname=${NAME}" 8 - "--executablename=$<TARGET_FILE:${EXECUTABLE}>" 9 - - "--outputdir=${CMAKE_BINARY_DIR}/Testing/output" 10 - + "--outputdir=${TEST_OUTPUT_DIR}" 11 - ) 12 - 13 - # do not diff the output and answer files 14 - diff --git a/config/SundialsTesting.cmake b/config/SundialsTesting.cmake 15 - index 815576a..d91801a 100644 16 - --- a/config/SundialsTesting.cmake 17 - +++ b/config/SundialsTesting.cmake 18 - @@ -29,6 +29,13 @@ IF(SUNDIALS_DEVTESTS) 19 - ENDIF() 20 - ENDIF() 21 - 22 - + # Directory for test output 23 - + SET(TEST_OUTPUT_DIR ${PROJECT_BINARY_DIR}/Testing/output) 24 - + 25 - + IF(NOT EXISTS ${TEST_OUTPUT_DIR}) 26 - + FILE(MAKE_DIRECTORY ${TEST_OUTPUT_DIR}) 27 - + ENDIF() 28 - + 29 - # look for the testRunner script in the test directory 30 - FIND_PROGRAM(TESTRUNNER testRunner PATHS test) 31 - HIDE_VARIABLE(TESTRUNNER) 32 - diff --git a/test/testRunner b/test/testRunner 33 - index f450ec2..f1c8deb 100755 34 - --- a/test/testRunner 35 - +++ b/test/testRunner 36 - @@ -106,7 +106,8 @@ def main(): 37 - 38 - # create output directory if necessary 39 - if not os.path.exists(outDir): 40 - - os.makedirs(outDir) 41 - + error("Output directory does not exist, it must be created.", outDir) 42 - + sys.exit(1) 43 - elif not os.path.isdir(outDir): 44 - error("Output directory exists but is not a directory, it must be deleted.", outDir) 45 - sys.exit(1)