summaryrefslogtreecommitdiff
path: root/sci-libs/cantera/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-28 17:40:55 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-28 17:40:55 +0000
commit8294b197c0de9084d8ac8510382353ea4c177b87 (patch)
tree588533368704fdb760c55c9d15e246a827bc3e3d /sci-libs/cantera/files
parent73c06e01ebc820f47f0140310b8a096e9d20877b (diff)
gentoo auto-resync : 28:02:2024 - 17:40:54
Diffstat (limited to 'sci-libs/cantera/files')
-rw-r--r--sci-libs/cantera/files/cantera-2.6.0_drop_deprecated_open_U_option.patch49
-rw-r--r--sci-libs/cantera/files/cantera-2.6.0_env.patch78
2 files changed, 0 insertions, 127 deletions
diff --git a/sci-libs/cantera/files/cantera-2.6.0_drop_deprecated_open_U_option.patch b/sci-libs/cantera/files/cantera-2.6.0_drop_deprecated_open_U_option.patch
deleted file mode 100644
index 41243da82f68..000000000000
--- a/sci-libs/cantera/files/cantera-2.6.0_drop_deprecated_open_U_option.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 0b407e11fe0bae4707286ab3cbf6a7a72a906817 Mon Sep 17 00:00:00 2001
-From: "Mark E. Fuller" <mark.e.fuller@gmx.de>
-Date: Thu, 23 Jun 2022 00:04:22 +0300
-Subject: [PATCH] drop deprecated 'U' open option
-
----
- site_scons/site_tools/subst.py | 15 +++------------
- 1 file changed, 3 insertions(+), 12 deletions(-)
-
-diff --git a/site_scons/site_tools/subst.py b/site_scons/site_tools/subst.py
-index 3a1c4f6fb8..05d520491b 100644
---- a/site_scons/site_tools/subst.py
-+++ b/site_scons/site_tools/subst.py
-@@ -12,7 +12,7 @@
-
- from SCons.Script import *
- import SCons.Errors
--
-+from pathlib import Path
-
- # Helper/core functions
- ##############################################################################
-@@ -20,12 +20,7 @@
- # Do the substitution
- def _subst_file(target, source, env, pattern, replace):
- # Read file
-- #print 'CALLING SUBST_FILE'
-- f = open(source, "rU")
-- try:
-- contents = f.read()
-- finally:
-- f.close()
-+ contents = Path(source).read_text()
-
- # Substitute, make sure result is a string
- def subfn(mo):
-@@ -46,11 +41,7 @@ def subfn(mo):
- # Determine which keys are used
- def _subst_keys(source, pattern):
- # Read file
-- f = open(source, "rU")
-- try:
-- contents = f.read()
-- finally:
-- f.close()
-+ contents = Path(source).read_text()
-
- # Determine keys
- keys = []
diff --git a/sci-libs/cantera/files/cantera-2.6.0_env.patch b/sci-libs/cantera/files/cantera-2.6.0_env.patch
deleted file mode 100644
index 15a1e65857e4..000000000000
--- a/sci-libs/cantera/files/cantera-2.6.0_env.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-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,