<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/93c6099490cca310db2042e548e2f8e1afa9aec8">https://github.com/macports/macports-ports/commit/93c6099490cca310db2042e548e2f8e1afa9aec8</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 93c6099490cca310db2042e548e2f8e1afa9aec8
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Thu Apr 14 11:43:58 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> root6: Add work around for missing @rpath entries in some libraries
</span>---
science/root6/Portfile | 5 +++++
1 file changed, 5 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/root6/Portfile b/science/root6/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 48442987cda..74fed2ab4d2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/root6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/root6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -502,6 +502,11 @@ foreach py_ver ${python_versions} {
</span> foreach f [ exec find ${destroot}${install_prefix} -type f -and -name "*.py" ] {
reinplace -q "s|${pystringtoreplace}|${prefix}/bin/python${active_python_version}|g" $f
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Add rpath to all libraries
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://root-forum.cern.ch/t/import-error/49492
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [ exec find ${destroot}${install_prefix}/ -name "*.so" -or -name "*.dylib"] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -add_rpath ${install_prefix}/lib/root ${f} > /dev/null 2>&1 ; true"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# patch the command ROOT assumes to run for juypter
pre-configure {
</pre><pre style='margin:0'>
</pre>