Commit Graph

24 Commits

Author SHA1 Message Date
kili
af5b2adfde Switch back to compiling Setup.l?hs and running the resulting program
instead of using runghc (the interpreter).

This is a *workaround* for the following two symptoms:

- Setup.hs: waitForProcess: resource exhausted (Resource temporarily
  unavailable)

- Setup.hs: fd:15: hGetContents: illegal operation (Inappropriate
  ioctl for device)

Note that this is not a *fix*. I'm sure there's some misbehaving
signal handler, either in runghc/ghci or in the ghc runtime library.

(No, it's *not* rts/posix/Signals.c:generic_handler(); I patched
it to preserve errno, but it didn't help)

Until I find the bug, it's better to let bulk builds pass without
(or with less) errors.

ok (with the workaround) espie@
2011-07-25 21:45:15 +00:00
kili
f08f365520 Update to ghc-7.0.4.
i386 tests done by Jona Joachim (thanks!).
2011-06-30 21:26:15 +00:00
kili
71daab7260 Move almost all Haskell distfiles fetched from hackage.haskell.org
into a common subdirectory `ghc', and also move the ghc distfiles
there (from ghc-${MODGHC_VER}).

This will avoid potential conflicts of hs-* ports distfiles coming
from hackage.haskell.org with distfiles used by other ports.

Based on an idea from dcoppa@ for databases/hs-redis.

ok dcoppa@

If you want to save some bandwdith and disk space, see my mail to
ports@, which contains a shell script that can move distfiles around
under your DISTDIR.
2011-04-23 20:16:38 +00:00
jeremy
4694195495 Use new style depends in comment.
OK jasper@
2011-04-20 18:17:27 +00:00
kili
a9bd7fa59f For cabalized haskell ports, let Setup configure and Setup build
be a little bit more verbose. It's annoying if you don't see what's
going on during configure and which options are passed to ghc during
build.
2011-04-13 15:20:15 +00:00
kili
cdffd322bb Update to 7.0.3.
ok jasper@ (who also gave an ok to all the depending updates).
2011-04-11 14:30:32 +00:00
ajacoutot
7df3db803b avialable -> available 2010-12-15 13:59:54 +00:00
espie
06ad2fd17f use =${VERSION} dialect 2010-11-26 17:27:38 +00:00
espie
88d20077a4 new depends 2010-11-17 08:05:12 +00:00
kili
5d2959114a Add a `pkgpath' field to installed GHC libraries. Only applies to
libraries not coming together with ghc. This allows for looking up
a library's PKGPATH by running

        ghc-pkg field $pkgname pkgpath

where $pkgname is the GHC library name without the `hs-' prefix,
for example `ghc-paths'.

looks good to jasper@
2010-11-03 21:32:08 +00:00
jasper
16d19cb348 Move things around a little bit for Haskell libraries (built with
cabal and without nort), to avoid collisions with other (non-Haskell)
ports;

- Documentation is installed as ${PREFIX}/share/doc/hs-$foo instead of
  ${PREFIX}/share/doc/$foo.

- The library itself (and its interface files) is installed as
  ${PREFIX}/lib/ghc/$foo instead of ${PREFIX}/lib/$foo.

- Additional files will be installed in ${PREFIX}/share/hs-$foo instead
  of ${PREFIX}/share/foo.

from kili@

depending port's plists will be adjusted in a few
2010-10-28 13:49:09 +00:00
jasper
681dbc4afb - fix URL 2010-09-23 12:26:37 +00:00
jasper
fbe696e789 - append lang/ghc to CATEGORIES iff !nort
ok kili@
2010-09-22 22:09:53 +00:00
jasper
b63b6c45f4 - fix a variable name in comment
ok kili@
2010-09-22 22:02:38 +00:00
kili
1e375f016d Require ghc-doc to get all links enabled for ports that use haddock.
This needs a bump to all ports with MODGHC_BUILD=haddock, but there
are some more changes pending, so I'll not du the bumps now.
2010-06-18 21:37:16 +00:00
kili
7d63ac0258 Update to ghc-6.12.3 (bugfix release), plus some minor changes:
- Use integer-gmp again.

- Cleanout the extracted bootstrap directory right after installing it
  to save some disk space.

- Use ${MAKE_ENV} instead ${MODGHC_SETUP_CONF_ENV} in ghc.port.mk (in
  do-configure, use both).

- Don't compile Setup.l?hs, just use the interpreter (runghc) in
  ghc.port.mk. This speeds up the build of most ports depending on
  ghc and using a cabal-style build.

Necessary bumps and WANTLIB changes in ports using ghc will follow
later this evening.
2010-06-15 15:34:03 +00:00
kili
d124326763 Change ghc.port.mk to allow addition of flags to MODGHC_SETUP_PROG by
just setting MODGHC_SETUP_CONF_ARGS (which is now empty by default).

Add dblatex-created documentation.

While here, use our INSTALL* macros where possible to get correct
permissions (noticed by dcoppa@). This does *not* fix the permissions
of libraries and interface files installed by Cabal-based tools,
because the permissions are hard-coded in Cabal, and I'm not going
to touch and fix Cabal ever, because IMHO it's completely broken
by design. (If you want to read some of this madness, have a look
at libraries/Cabal/Distribution/Compat/CopyFile.hs or even
libraries/Cabal/Distribution/Simple/Install.hs)

Expect some breakage of depending ports (at least of devel/darcs) and
some necessary WANTLIB changes, which will be fixed soonish.
2010-05-06 20:00:19 +00:00
kili
a2d22041b4 Update to 6.12.2.
Many thanks to Darrin Chandler and dcoppa@ for testing, reporting about
broken stuff, missing dependencies here and in ports depending on ghc.

Notes and rants:

- Bootstrapping is done using precompiled binaries, since .hc
  bootstrapping still doesn't work. I really hate this.

  THIS MEANS THAT GHC IS NOW AND WILL STAY LEGACY-ONLY (i386 and amd64)

  At least until someone fixes it. I tried for more than two year
  (well, only in my spare time and during my vacations) and failed.

- libgmp is currently disabled, because I didn't yet hack the GHC build
  system to use the system libgmp instead of the patched one included
  in GHC.

- The haddock ncluded in the ghc distfile is replaced by the version
  of haddock found in devel/haddock. Haddock itself is @commented
  in the ghc PLIST. Unfortunately, this needs an ugly hack that
  introduces an otherwise useless pseudo flavor `no_deps' in
  devel/haddock.

- CLDouble has been removed from GHC some time ago, because it was
  an alias for double (AFAIK there's now support for long double
  in GHC). As this isn't a really big problem, it currently breaks
  c2hs, which I'll mark broken temporarily before committing the
  ghc update.

- The external codeset defaults to latin1 (suggested by Simon Marlow)
  and can be overridden by setting the HS_ENCODING to any codeset
  supported by libiconv.

- ghc.port.mk still needs some love, especially for letting a port add
  additional parameters to certain invocations of ${MODGHC_SETUP_PROG}.
2010-04-22 21:49:37 +00:00
kili
87a3f71582 Update to 6.6.1. With helpful hints from Don Stewart and espie@.
Thanks to all the testers and to steven@, who was so kind to
build the HC files for bootstrapping on amd64.
2007-07-21 17:14:57 +00:00
espie
b75dec414c fix a few obviously wrong dependencies, and remove extra shells in ghc. 2006-11-20 13:07:19 +00:00
alek
da0914ecfa Add MODGHC_RUNTIME to add/remove runtime dependency on lang/ghc.
From Jon Olsson <jon@vexed.se>
2006-07-30 13:21:38 +00:00
dons
d1837aebea Port ghc-6.2.2 to amd64.
ok pvalchev@
2005-02-19 03:42:11 +00:00
dons
cd5fda6e80 Update ghc to 6.2.2.
Adds support for ghci. More stable foreign function interface.

Just i386 at the moment.

ok sturm@ pvalchev@
2005-02-14 01:26:56 +00:00
xsa
9d761fa2f0 prepare for new-style MODULES; ok dons@. 2004-08-10 08:14:34 +00:00