pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/hs-foundation Fix reference to undefined symbol ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/676d90fbb89f
branches: trunk
changeset: 452161:676d90fbb89f
user: pho <pho%pkgsrc.org@localhost>
date: Wed May 05 16:18:07 2021 +0000
description:
Fix reference to undefined symbol "dirfd" on NetBSD
diffstat:
devel/hs-foundation/Makefile | 3 +-
devel/hs-foundation/PLIST.Darwin | 4 +
devel/hs-foundation/PLIST.Linux | 4 +
devel/hs-foundation/distinfo | 3 +-
devel/hs-foundation/patches/patch-Foundation_System_Bindings_Posix.hsc | 22 ++++++++++
5 files changed, 34 insertions(+), 2 deletions(-)
diffs (66 lines):
diff -r baf025ed9a72 -r 676d90fbb89f devel/hs-foundation/Makefile
--- a/devel/hs-foundation/Makefile Wed May 05 16:04:00 2021 +0000
+++ b/devel/hs-foundation/Makefile Wed May 05 16:18:07 2021 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2021/05/05 11:05:56 pho Exp $
+# $NetBSD: Makefile,v 1.2 2021/05/05 16:18:07 pho Exp $
DISTNAME= foundation-0.0.26
+PKGREVISION= 1
CATEGORIES= devel
MAINTAINER= pho%cielonegro.org@localhost
diff -r baf025ed9a72 -r 676d90fbb89f devel/hs-foundation/PLIST.Darwin
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-foundation/PLIST.Darwin Wed May 05 16:18:07 2021 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST.Darwin,v 1.1 2021/05/05 16:18:07 pho Exp $
+lib/${HS_PLATFORM}/${HS_PKGID}/Foundation/System/Bindings/Macos.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Foundation/System/Bindings/Macos.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Foundation/System/Bindings/Macos.p_hi
diff -r baf025ed9a72 -r 676d90fbb89f devel/hs-foundation/PLIST.Linux
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-foundation/PLIST.Linux Wed May 05 16:18:07 2021 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2021/05/05 16:18:07 pho Exp $
+lib/${HS_PLATFORM}/${HS_PKGID}/Foundation/System/Bindings/Linux.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Foundation/System/Bindings/Linux.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Foundation/System/Bindings/Linux.p_hi
diff -r baf025ed9a72 -r 676d90fbb89f devel/hs-foundation/distinfo
--- a/devel/hs-foundation/distinfo Wed May 05 16:04:00 2021 +0000
+++ b/devel/hs-foundation/distinfo Wed May 05 16:18:07 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2021/05/05 11:05:56 pho Exp $
+$NetBSD: distinfo,v 1.2 2021/05/05 16:18:07 pho Exp $
SHA1 (foundation-0.0.26.tar.gz) = f68e1ff42a76270f41ec3db0b69f548d587a706b
RMD160 (foundation-0.0.26.tar.gz) = 3545c9a261e8570b0d41b809a6b4a53afe195382
SHA512 (foundation-0.0.26.tar.gz) = c85b4fc08ee92de8c7bd6e2b469762e7f101c52eebedca17ceb4073048781d309e6e62dff4d248df79f8237e293f5b38c73c94c14635ba2992bda52510e85eac
Size (foundation-0.0.26.tar.gz) = 120483 bytes
+SHA1 (patch-Foundation_System_Bindings_Posix.hsc) = d370ea51bc337f1d9bec4f81ed065fec502eb093
diff -r baf025ed9a72 -r 676d90fbb89f devel/hs-foundation/patches/patch-Foundation_System_Bindings_Posix.hsc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-foundation/patches/patch-Foundation_System_Bindings_Posix.hsc Wed May 05 16:18:07 2021 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-Foundation_System_Bindings_Posix.hsc,v 1.1 2021/05/05 16:18:07 pho Exp $
+
+dirfd(3) is a macro on NetBSD. It doesn't exist as a symbol in libc.
+
+--- Foundation/System/Bindings/Posix.hsc.orig 2021-05-05 16:09:20.261233488 +0000
++++ Foundation/System/Bindings/Posix.hsc
+@@ -27,7 +27,7 @@ import Foundation.System.Bindings.PosixD
+ #include <fcntl.h>
+ #include <errno.h>
+
+-data CDir
++data {-# CTYPE "dirent.h" "DIR" #-} CDir
+ data CDirent
+
+ sysPosix_E2BIG
+@@ -377,5 +377,5 @@ foreign import ccall unsafe "rewinddir"
+ sysPosixRewinddir :: Ptr CDir -> IO ()
+ foreign import ccall unsafe "closedir"
+ sysPosixClosedir :: Ptr CDir -> IO CInt
+-foreign import ccall unsafe "dirfd"
++foreign import capi unsafe "dirent.h dirfd"
+ sysPosixDirfd :: Ptr CDir -> IO CFd
Home |
Main Index |
Thread Index |
Old Index