[MacPorts] #62578: py-scipy dynamic libs have incorrect @rpath/libmkl_rt.dylib object references
MacPorts
noreply at macports.org
Sun Mar 28 14:59:25 UTC 2021
#62578: py-scipy dynamic libs have incorrect @rpath/libmkl_rt.dylib object
references
-----------------------+----------------------
Reporter: essandess | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: | Port: py-scipy
-----------------------+----------------------
{{{
$ python3 -c 'from scipy import special'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scipy/special/__init__.py", line 633, in <module>
from . import _ufuncs
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scipy/special/_ufuncs.cpython-39-darwin.so, 2): Library not
loaded: @rpath/libmkl_rt.dylib
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scipy/special/_ufuncs.cpython-39-darwin.so
Reason: image not found
}}}
{{{
$ find
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scipy -type f -name '*.so' -exec fgrep -l '@rpath' {} ';' |
xargs otool -L | fgrep '@rpath'
@rpath/libmkl_rt.dylib (compatibility version 0.0.0, current
version 0.0.0)
@rpath/libmkl_rt.dylib (compatibility version 0.0.0, current
version 0.0.0)
…
@rpath/libmkl_rt.dylib (compatibility version 0.0.0, current
version 0.0.0)
}}}
Is there a Portfile one-liner to fix this, or is it necessary to search
the build exhaustively for all the {{{.so}}}'s and
{{{install_name_tool}}}-correct them?
--
Ticket URL: <https://trac.macports.org/ticket/62578>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list