[MacPorts] #57821: libiconv breaks compatibility with OS-provided
MacPorts
noreply at macports.org
Sat Dec 29 23:11:23 UTC 2018
#57821: libiconv breaks compatibility with OS-provided
-------------------------+------------------------
Reporter: mouse07410 | Owner: ryandesign
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: invalid | Keywords:
Port: libiconv |
-------------------------+------------------------
Comment (by mouse07410):
I've applied your recommendation, and, while more tests are needed, it
looks like it works.
In summary, the workaround that you proposed and I tested is:
- create a new directory and put the offending library in it;
- list that directory first in the "extra-lib-dirs:" parameter for Haskell
utilities Cabal and Stack.
Figuring the correct format for the above was a greater pain than
everything else together.
For Stack (in {{{~/.stack/config.yaml}}}) include this (I list all the
directories I need - libiconv is in /opt/local/lib/liconv, new OpenSSL in
/opt/local/lib, etc):
{{{
extra-lib-dirs: [ /opt/local/lib/liconv, /opt/local/lib, /usr/local/lib ]
}}}
For Cabal (in {{{~/.cabal/config}}}) include this:
{{{
library-vanilla: False
executable-dynamic: True
extra-lib-dirs: /opt/local/lib/liconv
extra-lib-dirs: /opt/local/lib
extra-lib-dirs: /usr/local/lib
}}}
Thank you for your help!
P.S. I still think that having a {{{no-name-mangling}}} variant of the
{{{libiconv}}} port would be a good thing.
--
Ticket URL: <https://trac.macports.org/ticket/57821#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list