openbsd-ports/lang/ghc/patches/patch-libraries_unix_cbits_execvpe_c
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

29 lines
695 B
Plaintext

$OpenBSD: patch-libraries_unix_cbits_execvpe_c,v 1.1 2012/03/23 20:17:06 kili Exp $
Don't build the included execvpe().
--- libraries/unix/cbits/execvpe.c.orig Mon Jun 13 19:10:12 2011
+++ libraries/unix/cbits/execvpe.c Fri Mar 23 18:52:49 2012
@@ -9,7 +9,7 @@
#include "Rts.h"
#endif
-#if !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)) /* to the end */
+#if 0
/* Evidently non-Posix. */
/* #include "PosixSource.h" */
@@ -157,6 +157,7 @@ execvpe(char *name, char *const argv[], char **envp)
free(buf);
return (-1);
}
+#endif
/* Copied verbatim from ghc/lib/std/cbits/system.c. */
@@ -167,4 +168,3 @@ void pPrPr_disableITimers (void)
#endif
}
-#endif