summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Torokhov <torokhov-s-a@yandex.ru>2023-10-17 01:29:52 +0300
committerSam James <sam@gentoo.org>2023-10-27 03:30:39 +0100
commit16eaba9bc57ea1d0fd90045de20d4de98ca8a052 (patch)
tree05130bb7891bc8d520fe1820cb0ca2f169af3fbe /sci-libs/cantera/files/cantera-3.0.0_env.patch
parentsci-libs/cantera: v3.0.0 add USE="hdf5" for HDF5 container file support (diff)
downloadgentoo-16eaba9bc57ea1d0fd90045de20d4de98ca8a052.tar.gz
gentoo-16eaba9bc57ea1d0fd90045de20d4de98ca8a052.tar.bz2
gentoo-16eaba9bc57ea1d0fd90045de20d4de98ca8a052.zip
sci-libs/cantera: 3.0, mv libcantera_python3_XY.so to /usr/lib*/cantera
Change installation path of libcantera_python3_XY.so plugin from "/usr/$(get_libdir)" to "/usr/$(get_libdir)/cantera" directory and add new direcotry to RPATH to properly working of dlopen() to load plugin from C++ user's code. Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/32595 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/cantera/files/cantera-3.0.0_env.patch')
-rw-r--r--sci-libs/cantera/files/cantera-3.0.0_env.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sci-libs/cantera/files/cantera-3.0.0_env.patch b/sci-libs/cantera/files/cantera-3.0.0_env.patch
index 786df7140632..cfc2874250e4 100644
--- a/sci-libs/cantera/files/cantera-3.0.0_env.patch
+++ b/sci-libs/cantera/files/cantera-3.0.0_env.patch
@@ -23,3 +23,15 @@ diff -Naur a/SConstruct b/SConstruct
# Print values of all build options:
# the (updated) "cantera.conf" combines all options that were specified by the user
+diff -Naur a/src/SConscript b/src/SConscript
+--- a/src/SConscript
++++ b/src/SConscript
+@@ -89,7 +89,7 @@
+ shim = pyenv.SharedObject("extensions/pythonShim.cpp")
+ pylibname = f"../lib/cantera_python{pyenv['py_version_short'].replace('.', '_')}"
+ lib = build(pyenv.SharedLibrary(pylibname, shim, SPAWN=get_spawn(pyenv)))
+- install("$inst_shlibdir", lib)
++ install("$inst_shlibdir/cantera", lib)
+
+
+ # build the Cantera static library