Commit Graph

97 Commits

Author SHA1 Message Date
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
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
espie
88dd25abf4 USE_GROFF=Yes 2010-10-18 19:20:41 +00:00
kili
6d90113c52 New bootstrapping compiler (after libc update). 2010-10-04 09:37:25 +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
d8feb52c42 New bootstrapping tarballs after ncurses update.
Adjust WANTLIB and bump.
2010-09-10 18:10:00 +00:00
kili
651399efe9 Bump for real. 2010-09-05 10:54:02 +00:00
sthen
b02db8276f bumps for python 2010-08-30 21:56:33 +00:00
kili
b0e9093dcc Use a new bootstrapping compiler for ghc, linked against a current
libc. While here, switch to new REVISION/WANTLIB scheme.

Problem noticed by ajacoutot@

ok espie@ sthen@

Please note that any Haskell library depending on ghc-6.12.3
(cabal-wise) needs to be rebuilt. This affects devel/haddock
and devel/hs-QuickCheck, which will be bumped in a minute, but
if you've some libraries not contained in the ports tree, be
sure to double-check with ghc-pkg check.
2010-08-02 21:15:23 +00:00
kili
ca3835edeb Threading support should work now (with a patch from Simon Marlow). 2010-06-28 21:27:36 +00:00
kili
b5b698c4cd Unscrew. Noticed by jasper@
I fetched my distfile from the old place, before switching
MASTER_SITES to the new one (darcs.haskell.org). Same content,
but different size and checksums (because the files have been
created on different dates).
2010-06-23 08:37:18 +00:00