#1540: GHC on Macs
--------------------------+-------------------------------------------------
Reporter: guest | Owner:
Type: task | Status: new
Priority: high | Milestone: 6.8 branch
Component: Build System | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: x86
Os: MacOS X |
--------------------------+-------------------------------------------------
Comment (by chak):
Replying to [comment:20 guest]:
> A couple more comments:
>
> * Please don't use .pkgs such as used to be in the .dmgs. .pkg is a
macOS installer format package, but there is no standard way to remove
such packages! A package without a standard removal mechanism is horrible:
where is the upgrade path?
I agree that is unpleasant that there is no standard removal mechanism.
The alternative is using a '''bundle''', but bundles cannot install
anything outside of the directory in which the bundle is located. This is
a problem for ghc, as we want to put links to executables into
`/usr/local/bin` (or `${HOME}/bin`). So, I think we need to do the same
that, e.g., Xcode does and include an uninstaller script.
> * Not entirely unrelated to this is the issue of distributing a
binary which has been compiled by ghc. This is similar because ghc itself
is a binary compiled with ghc... The problem I observe is that the
binaries I generate are dependent on finding a "macports-style" libgmp.so;
because my GHC is macports-installed. This means that another mac user,
who doesn't use macports, can't use my compiled binaries.
I think I solved that problem (patch is in the HEAD). The solution is to
use the static GMP library included in GHC's distribution these days. You
can benefit from that solution already now by using the GHC 6.8.2 binary
at [http://haskell.org/ghc/download_ghc_682.html#macosxintel].
BTW, producing a proper installer package is my Christmas/New Year
project.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1540#comment:25>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs