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

16 lines
491 B
Plaintext

$OpenBSD: patch-libraries_unix_include_execvpe_h,v 1.1 2012/03/23 20:17:06 kili Exp $
Don't build the included execvpe().
--- libraries/unix/include/execvpe.h.orig Mon Jun 13 19:10:12 2011
+++ libraries/unix/include/execvpe.h Fri Mar 23 18:52:34 2012
@@ -18,8 +18,5 @@
#include <sys/wait.h>
#endif
-#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_WIN32)
-extern int execvpe(char *name, char *const argv[], char **envp);
extern void pPrPr_disableITimers (void);
-#endif