From af5b2adfdea4e88542c4b64a1618c3f1ca520f8f Mon Sep 17 00:00:00 2001 From: kili Date: Mon, 25 Jul 2011 21:45:15 +0000 Subject: [PATCH] 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@ --- lang/ghc/ghc.port.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lang/ghc/ghc.port.mk b/lang/ghc/ghc.port.mk index 03e7be6f06d..ed878ea39b4 100644 --- a/lang/ghc/ghc.port.mk +++ b/lang/ghc/ghc.port.mk @@ -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} \