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@
This commit is contained in:
kili 2011-07-25 21:45:15 +00:00
parent 4d3df43a86
commit af5b2adfde

View File

@ -1,4 +1,4 @@
# $OpenBSD: ghc.port.mk,v 1.23 2011/06/30 21:26:15 kili Exp $
# $OpenBSD: ghc.port.mk,v 1.24 2011/07/25 21:45:15 kili Exp $
# Module for Glasgow Haskell Compiler
# Not yet ported to other architectures
@ -69,10 +69,8 @@ MODCABAL_configure = \
cd ${WRKSRC} && \
for s in ${MODGHC_SETUP_SCRIPT}; do \
test -f "$$s" && \
printf '\#!/bin/sh\nexec %s %s "$$@"\n' \
${LOCALBASE}/bin/runghc \
$$s > ${MODGHC_SETUP_PROG} && \
chmod +x ${MODGHC_SETUP_PROG} && \
${MODGHC_BIN} --make \
-o ${MODGHC_SETUP_PROG} "$$s" && \
break; \
done && \
cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${MODGHC_SETUP_CONF_ENV} \