diff options
author | kristerw <kristerw@pkgsrc.org> | 2008-03-24 22:40:23 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2008-03-24 22:40:23 +0000 |
commit | 2e9dd532364c529d6795ea5f51a72c971a08747f (patch) | |
tree | a97fcb1443a5df4db11ed8131e6d50dd53f35168 /lang/ghc/patches | |
parent | 8529c784ab3173da5dc0902a5d75743e7e416868 (diff) | |
download | pkgsrc-2e9dd532364c529d6795ea5f51a72c971a08747f.tar.gz |
Use the correct renamed symbols for opendir, unsetenv, and times.
Solves PR pkg/38263.
Bump PKGREVISION.
Diffstat (limited to 'lang/ghc/patches')
-rw-r--r-- | lang/ghc/patches/patch-ak | 15 | ||||
-rw-r--r-- | lang/ghc/patches/patch-al | 13 | ||||
-rw-r--r-- | lang/ghc/patches/patch-am | 23 | ||||
-rw-r--r-- | lang/ghc/patches/patch-an | 13 | ||||
-rw-r--r-- | lang/ghc/patches/patch-ao | 13 |
5 files changed, 77 insertions, 0 deletions
diff --git a/lang/ghc/patches/patch-ak b/lang/ghc/patches/patch-ak new file mode 100644 index 00000000000..5d9edbc2b68 --- /dev/null +++ b/lang/ghc/patches/patch-ak @@ -0,0 +1,15 @@ +$NetBSD: patch-ak,v 1.3 2008/03/24 22:40:23 kristerw Exp $ + +--- libraries/base/include/HsBase.h.orig 2008-03-24 13:33:49.000000000 +0100 ++++ libraries/base/include/HsBase.h 2008-03-24 13:38:50.000000000 +0100 +@@ -648,6 +648,10 @@ + #endif + } + ++INLINE DIR* __hscore_opendir (const char *filename) { ++ return opendir(filename); ++} ++ + // These are wrapped because on some OSs (eg. Linux) they are + // macros which redirect to the 64-bit-off_t versions when large file + // support is enabled. diff --git a/lang/ghc/patches/patch-al b/lang/ghc/patches/patch-al new file mode 100644 index 00000000000..ca1cfb7a85d --- /dev/null +++ b/lang/ghc/patches/patch-al @@ -0,0 +1,13 @@ +$NetBSD: patch-al,v 1.3 2008/03/24 22:40:23 kristerw Exp $ + +--- libraries/base/System/Posix/Internals.hs.orig 2008-03-24 13:34:39.000000000 +0100 ++++ libraries/base/System/Posix/Internals.hs 2008-03-24 13:44:11.000000000 +0100 +@@ -354,7 +354,7 @@ + foreign import ccall unsafe "HsBase.h __hscore_open" + c_open :: CString -> CInt -> CMode -> IO CInt + +-foreign import ccall unsafe "HsBase.h opendir" ++foreign import ccall unsafe "HsBase.h __hscore_opendir" + c_opendir :: CString -> IO (Ptr CDir) + + foreign import ccall unsafe "HsBase.h __hscore_mkdir" diff --git a/lang/ghc/patches/patch-am b/lang/ghc/patches/patch-am new file mode 100644 index 00000000000..91495703e66 --- /dev/null +++ b/lang/ghc/patches/patch-am @@ -0,0 +1,23 @@ +$NetBSD: patch-am,v 1.3 2008/03/24 22:40:23 kristerw Exp $ + +--- libraries/unix/include/HsUnix.h.orig 2008-03-24 17:06:03.000000000 +0100 ++++ libraries/unix/include/HsUnix.h 2008-03-24 17:12:35.000000000 +0100 +@@ -140,6 +140,18 @@ + return mknod(pathname,mode,dev); + } + ++#ifdef HAVE_UNSETENV ++INLINE int __hsunix_unsetenv(const char *name) ++{ ++ return unsetenv(name); ++} ++#endif ++ ++INLINE clock_t __hsunix_times(struct tms *tp) ++{ ++ return times(tp); ++} ++ + #ifdef HAVE_PTSNAME + // I cannot figure out how to make the definitions of the following + // functions visible in <stdlib.h> on Linux. But these definitions diff --git a/lang/ghc/patches/patch-an b/lang/ghc/patches/patch-an new file mode 100644 index 00000000000..f1b476ea287 --- /dev/null +++ b/lang/ghc/patches/patch-an @@ -0,0 +1,13 @@ +$NetBSD: patch-an,v 1.3 2008/03/24 22:40:23 kristerw Exp $ + +--- libraries/unix/System/Posix/Env.hsc.orig 2008-03-24 17:09:39.000000000 +0100 ++++ libraries/unix/System/Posix/Env.hsc 2008-03-24 17:10:41.000000000 +0100 +@@ -81,7 +81,7 @@ + + unsetEnv name = withCString name c_unsetenv + +-foreign import ccall unsafe "unsetenv" ++foreign import ccall unsafe "__hsunix_unsetenv" + c_unsetenv :: CString -> IO () + #else + unsetEnv name = putEnv (name ++ "=") diff --git a/lang/ghc/patches/patch-ao b/lang/ghc/patches/patch-ao new file mode 100644 index 00000000000..e5b86248e96 --- /dev/null +++ b/lang/ghc/patches/patch-ao @@ -0,0 +1,13 @@ +$NetBSD: patch-ao,v 1.3 2008/03/24 22:40:23 kristerw Exp $ + +--- libraries/unix/System/Posix/Process.hsc.orig 2008-03-24 17:10:54.000000000 +0100 ++++ libraries/unix/System/Posix/Process.hsc 2008-03-24 17:11:30.000000000 +0100 +@@ -177,7 +177,7 @@ + + type CTms = () + +-foreign import ccall unsafe "times" ++foreign import ccall unsafe "__hsunix_times" + c_times :: Ptr CTms -> IO CClock + + -- ----------------------------------------------------------------------------- |