Commit Graph

110 Commits

Author SHA1 Message Date
kili
7531d4bb00 Don't remove the bin directory when building a bootstrapper.
While here, remove the commands that attempt to rename
*-x86_64-* to *-amd64-*, because it currently doesn't
work anyways (VERSION_DATE is ignored by the bootstrapper
build).
2012-10-11 11:05:02 +00:00
dcoppa
47aa23534d Fix random crashes at runtime when there's heavy use of libgmp.a
(e.g. large Fibonacci numbers): link GHC with its bundled gmp library
that has customized memory allocation functions.

While here, fix two other problems as well:

- undefined references to 'ffi_call_unix64', 'ffi_closure_unix64'
  on amd64

- unknown symbol '__guard_local' (caused by gcc's switch from __guard
  to __guard_local)

Joint work with kili@
OK kili@
2012-10-11 07:51:10 +00:00
kili
36a5835487 Just add a comment that parallel builds should never be enabled
for this port.
2012-10-05 19:28:12 +00:00
ajacoutot
ff52f74e3c docbook-xsl already comes with libxslt. 2012-09-27 17:26:05 +00:00
kili
89af7c25c4 There's no reason to depend on textproc/dblatex (and all the beasts
it depends on) for the no_doc pseudo flavor. textproc/libxslt,
textproc/docbook and textproc/docbook-xsl are still needed (for
creating the man page).
2012-09-25 19:26:36 +00:00
kili
c03859effa Add archivers/gtar to BUILD_DEPENDS, because without it, configure
may detect it but dpb(1) may remove it afterwards, which causes the
build to fail (spotted by naddy).

This *could* be done simpler (by adding TarCmd=/bin/tar to
CONFIGURE_ENV), but this would break the bootstrap target.

Some more dependency odditiies (dblatex, docboo*, libxslt may be
not necessary for the no_doc FLAVOR, also noticed by naddy@) will
be checked and fixed later.
2012-09-23 20:26:57 +00:00
kili
9a64b5e40a Use the new bootstrapper.
i386 bits (bootstrapper build and test) from sthen@, Thanks!
2012-09-20 16:38:16 +00:00
kili
b87b83173a Prepare for a new bootstrapper (now statically linked). 2012-09-18 18:24:26 +00:00
kili
5fa7016113 Add a no_doc pseudo flavor which disables the -doc subpackage and
skips building the documentation.
2012-09-16 08:33:04 +00:00
kili
09098ed653 Blame the memory eater. 2012-09-02 23:01:29 +00:00
kili
96b899408f Remove BROKEN marker. Everything should build and work fine now. 2012-09-02 22:21:51 +00:00
kili
b2e79ee47e Update to ghc-7.4.2, but keep it marked as broken (and not only for amd64).
Most of the -nopie changes are from pascal@ (thanks); I only had to
merge them for ghc-7.4 and tweak configure and mk/config.mk.in.
2012-09-02 19:53:46 +00:00
pascal
fa14b0b8b9 For now, mark GHC broken on amd64. kili@ is sitting on an update at the moment
so it doesn't make sense for him to fix this old version.

ok kili@
2012-08-31 18:10:14 +00:00
pascal
e051391d3c After feedback from kettenis@, we won't be defining -DPIC on PIE archs per
default.  Garbage collect the patches that dealt with these issues, and use
the builtin define __PIC__ to detect if we're PIE/PIC.

ok naddy@
2012-08-20 11:50:59 +00:00
pascal
167aa2e265 For now, disable PIE in GHC. This will be revisited later on by kili@ in the
next update.  And again, calling stuff "PIC" is a bad idea ...

ok kili@
2012-08-12 11:31:33 +00:00
kili
67005b2c07 Use new bootstrappers and bump.
(i386 from sthen@, thanks!)
2012-06-29 05:52:01 +00:00
kili
0b00fbcf29 We need a new Timmy^WBootstrapper!
(It would be nice if someone could build one on a current i386)
2012-06-26 18:17:18 +00:00
kili
1dbbaaa459 Remove pointless test suite patch. It just covered up some fd leak
in the test framework, and the process007 test still failed for the
threaded variants (in the system(3) call).
2012-06-12 20:11:22 +00:00
kili
cf3d6a5d7f Bump. Just to enforce rebuilds of all hs-* packages.
Blame the famous "ghc-builds are not deterministic" bug for this.
2012-05-02 22:58:31 +00:00
kili
24610fc0e9 Set GhcThreaded=NO again.
Bulk builders suffer without this, and we already have a sligt
idea what's going wrong (new thread receives a signal before
__tfork returns and then it fails in sigreturn).

I hope to find some time to work on a regression test for this
problem (which isn't related at all to ghc).
2012-04-25 22:50:37 +00:00
kili
c88b795280 - Don't build/use the execvpe() bundled with libraries/unix.
Unfortunately, we can't completely remove or skip include/execvpe.h
  and cbits/execvpe.c, because they also contain pPrPr_disableITimers(),
  which is called from the Haskell code.

- Switch back to GhcThreaded=YES (default). It's stupid, it's not
  required by GHC (IIRC it was required a long time ago back when
  ghci used libreadline), but it may help finding rthread bugs.
  Until now, I did run four complete builds of GHC and all Haskell
  ports with dpb without any problems.
2012-03-23 20:17:06 +00:00
kili
44c76e349a Something is wrong with the threaded rts and rthreads, so build ghc
itself using the non-threaded rts. This doesn't fix the real problem,
but it makes it possible to build hs-* ports without filling up
dpb's build slots with stuck ghc processes.

ok naddy@ espie@

Note: I'll re-run the testsuite with this diff and hope to get some
reasonable results that may help us to identify the real problem.
2012-02-19 20:38:53 +00:00
kili
e519b1cfb2 Replace the bundled xhtml-3000.2.0.1 by a newer version
matching the requirements of haskell-platform-2011.4.0.0.

Moving the xhtml library back to a separate port (www/hs-xhtml)
would be nice but it causes too much headache (like dependency
cycles with devel/haddock).
2012-01-12 20:13:17 +00:00
kili
c1cbe21efb Simplify the SIGTSTP handler to let it work with uthreads.
Suspending multithreaded programs built with ghc (including ghc
itself) should just work[tm] now. (Except for the bootstrapping
compiler which of course still uses the old code)
2011-12-27 20:53:01 +00:00
kili
9396828adf Use the new bootstrappers (thanks to sthen@ for doing the i386
bootstrapper).

Bump, because some of the `library hashes' changed.

Unfortunately, this also affects a couple of other haskell ports,
which get different `library hashes' now and will be reported as
broken by ghc-pkg check.

People using snapshot packages should get seamless updates when the
next set of snapshots is available. People building from ports and
*not* using dpb should use the out-of-date-script to get a subdirlist
of haskell ports which should be rebuilt.

I could also bump the affected ports, but I'm not sure wether it's
worth the trouble.
2011-10-26 19:34:08 +00:00
kili
d9bd2f6535 Prepare for a new bootstrapper.
Abort the bootstrapper build if gtar isn't installed (found
the hard way by sthen@ when trying to build a boostrapper
for i386).
2011-10-25 19:23:09 +00:00
kili
a522a3d346 Workaround for failing test case process007: use bash (yuck!) 2011-09-16 21:17:41 +00:00
kili
20f0ceada9 Fix the ghcpkg01 test case. 2011-09-15 17:23:29 +00:00
kili
7ad4c00448 Add a special (and ugly) target to build a new bootstrapper.
ok jasper@, sthen@
2011-08-24 18:31:39 +00:00
kili
ca8bd7b3a9 Some bindist tweaks. No change for regular builds, but necessary
for the bootstrap target i'm curremtly working on.
2011-08-21 21:38:04 +00:00
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
497ff3c94f Fix totally stupid error message hiding fuckup in cabal. 2011-07-23 16:38:54 +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
8f1fe8440c Using vfork(2) is evil, but adding a line like
#define fork vfork

and then apparently call fork (in cbits/runProcess.c, IIRC) is
even worse.

This patch appears to `fix' (or hide?) the ENODEV errors spotted
by landry@ during bulk builds.

A complete GHC update will follow soon, so there's no reason for a bump.
2011-06-30 21:25:17 +00:00
kili
684b72c0fd Bye bye haskeline,
mtl and terminfo don't really rhyme.

yes | sed 's/./I shall not touch INTREE_ONLY_PACKAGES in ghc.mk./;100q'

But keep utf8-string and xhtml for now.
2011-04-25 22:06:43 +00:00
kili
7c696eb115 Update distinfo here, too. 2011-04-23 20:52:00 +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
kili
806bf57ddd Moving around the alex- and happy-generated files is now done by
the haddock port.
2011-04-23 12:52:36 +00:00
kili
9e7bda54a3 Adjust comment about mtl-1 included in the ghc package; there's
only one port left that doesn't work with mtl-2.
2011-04-23 08:40:41 +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
kili
77f8d99f9f Set PORTHOME. Needed for the texlive 2010 update (two fonts are
rendered with mktexpk).
2010-11-27 22:34:47 +00:00
espie
06ad2fd17f use =${VERSION} dialect 2010-11-26 17:27:38 +00:00
kili
6eb5ff46e6 New bootstrapper.
Thanks to armani and jasper for building the i386 version (even if
armanis i7 didn't win the race ;-))
2010-11-21 19:43:31 +00:00
espie
88d20077a4 new depends 2010-11-17 08:05:12 +00:00
kili
54d54ba1f1 Fill in the `pkgpath' field of the libraries contained in ghc.
You'll now get sane output for all Haskell libraries. For example:

$ ghc-pkg field mtl pkgpath
pkgpath: lang/ghc
2010-11-06 19:11:43 +00:00
espie
dcdfee948c convert libiconv to new wantlib 2010-11-06 10:18:38 +00:00
kili
b87a6b50bf Tweak the pkgpath hack so it doesn't change the Cabal API. Unbreaks
hs-glib (and probably other stuff that uses the Cabal library).

Bump both -main and -doc (yes, really, -doc, too).

I hereby nominate myself for the HSMAUS (Homer Simpson Memorial
Award of Unlimited Stupidity).
2010-11-05 21:23:46 +00:00