diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /sci-libs/cantera/files | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'sci-libs/cantera/files')
-rw-r--r-- | sci-libs/cantera/files/cantera-2.5.1_env.patch | 27 | ||||
-rw-r--r-- | sci-libs/cantera/files/cantera-2.6.0_env.patch | 78 |
2 files changed, 105 insertions, 0 deletions
diff --git a/sci-libs/cantera/files/cantera-2.5.1_env.patch b/sci-libs/cantera/files/cantera-2.5.1_env.patch index 576e2de2d577..77004803b127 100644 --- a/sci-libs/cantera/files/cantera-2.5.1_env.patch +++ b/sci-libs/cantera/files/cantera-2.5.1_env.patch @@ -32,6 +32,33 @@ diff -Naur old/SConstruct new/SConstruct # Print values of all build options: print("Configuration variables read from 'cantera.conf' and command line:") +@@ -1149,10 +1149,24 @@ + if retcode == 0: + config_error("Failed to determine Sundials BLAS/LAPACK.") + env['has_sundials_lapack'] = int(has_sundials_lapack.strip()) +- else: +- # In Sundials 2.6, SUNDIALS_BLAS_LAPACK is either defined or undefined ++ elif sundials_ver < parse_version('5.5'): ++ # In Sundials 2.6-5.5, SUNDIALS_BLAS_LAPACK is either defined or undefined + env['has_sundials_lapack'] = conf.CheckDeclaration('SUNDIALS_BLAS_LAPACK', + '#include "sundials/sundials_config.h"', 'C++') ++ else: ++ # In Sundials 5.5 and higher, two defines are included specific to the ++ # SUNLINSOL packages indicating whether SUNDIALS has been built with LAPACK ++ lapackband = conf.CheckDeclaration( ++ "SUNDIALS_SUNLINSOL_LAPACKBAND", ++ '#include "sundials/sundials_config.h"', ++ "C++", ++ ) ++ lapackdense = conf.CheckDeclaration( ++ "SUNDIALS_SUNLINSOL_LAPACKDENSE", ++ '#include "sundials/sundials_config.h"', ++ "C++", ++ ) ++ env["has_sundials_lapack"] = lapackband and lapackdense + + # In the case where a user is trying to link Cantera to an external BLAS/LAPACK + # library, but Sundials was configured without this support, print a Warning. diff -Naur old/interfaces/cython/SConscript new/interfaces/cython/SConscript --- old/interfaces/cython/SConscript 2021-03-21 01:18:43.000000000 +0300 +++ new/interfaces/cython/SConscript 2021-03-21 01:59:29.000000000 +0300 diff --git a/sci-libs/cantera/files/cantera-2.6.0_env.patch b/sci-libs/cantera/files/cantera-2.6.0_env.patch new file mode 100644 index 000000000000..15a1e65857e4 --- /dev/null +++ b/sci-libs/cantera/files/cantera-2.6.0_env.patch @@ -0,0 +1,78 @@ +diff -Naur old/SConstruct new/SConstruct +--- old/SConstruct ++++ new/SConstruct +@@ -178,6 +178,10 @@ + + config_options = [ + Option( ++ "AR", ++ "The archiver to use.", ++ "${AR}"), ++ Option( + "CXX", + "The C++ compiler to use.", + "${CXX}"), +@@ -740,7 +744,7 @@ + toolchain = ["default"] + + env = Environment(tools=toolchain+["textfile", "subst", "recursiveInstall", "wix", "gch"], +- ENV={"PATH": os.environ["PATH"]}, ++ ENV={'PATH': os.environ['PATH'], 'CCACHE_DIR': os.environ.get('CCACHE_DIR','')}, + toolchain=toolchain, + **extraEnvArgs) + +@@ -775,7 +779,7 @@ + + add_RegressionTest(env) + +-opts.AddVariables(*config.to_scons(["CC", "CXX"], env=env)) ++opts.AddVariables(*config.to_scons(["AR", "CC", "CXX"], env=env)) + opts.Update(env) + + # Check if this is actually Apple's clang on macOS +@@ -861,11 +865,7 @@ + env['cantera_pure_version'] = re.match(r'(\d+\.\d+\.\d+)', env['cantera_version']).group(0) + env['cantera_short_version'] = re.match(r'(\d+\.\d+)', env['cantera_version']).group(0) + +-try: +- env["git_commit"] = get_command_output("git", "rev-parse", "--short", "HEAD") +- logger.info(f"Building Cantera from git commit '{env['git_commit']}'") +-except (subprocess.CalledProcessError, FileNotFoundError): +- env["git_commit"] = "unknown" ++env["git_commit"] = "unknown" + + # Print values of all build options: + # the (updated) "cantera.conf" combines all options that were specified by the user +diff -Naur old/interfaces/cython/SConscript new/interfaces/cython/SConscript +--- old/interfaces/cython/SConscript ++++ new/interfaces/cython/SConscript +@@ -107,7 +107,7 @@ + obj, LIBPREFIX="", SHLIBSUFFIX=module_ext, + SHLIBPREFIX="", LIBSUFFIXES=[module_ext]) + +-build_cmd = ("$python_cmd_esc -m pip wheel -v --no-build-isolation --use-feature=in-tree-build --no-deps " ++build_cmd = ("$python_cmd_esc -m pip wheel -v --no-build-isolation --no-deps " + "--wheel-dir=build/python/dist build/python") + plat = info['plat'].replace('-', '_').replace('.', '_') + wheel_name = (f"Cantera-{env['cantera_version']}-cp{py_version_nodot}" +@@ -172,7 +172,7 @@ + + install_cmd.append(f"--root={stage_dir.resolve()}") + +-install_cmd.extend(("--no-build-isolation", "--use-feature=in-tree-build", "--no-deps", "-v", "--force-reinstall", ++install_cmd.extend(("--no-build-isolation", "--no-deps", "-v", "--force-reinstall", + "build/python")) + if localenv['PYTHON_INSTALLER'] == 'direct': + mod_inst = install(localenv.Command, 'dummy', mod, +diff -Naur old/test_problems/SConscript new/test_problems/SConscript +--- old/test_problems/SConscript ++++ new/test_problems/SConscript +@@ -233,7 +233,7 @@ + artifacts=['vcs_equilibrate_res.csv']) + + CompileAndTest('clib', 'clib_test', 'clib_test', +- extensions=['^clib_test.c'], libs=localenv['cantera_shared_libs']) ++ extensions=['^clib_test.c']) + + # C++ Samples + Test('cxx-bvp', 'cxx_samples', '#build/samples/cxx/bvp/blasius', None, |