pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/hs-foundation



Module Name:    pkgsrc
Committed By:   pho
Date:           Wed May  5 16:18:07 UTC 2021

Modified Files:
        pkgsrc/devel/hs-foundation: Makefile distinfo
Added Files:
        pkgsrc/devel/hs-foundation: PLIST.Darwin PLIST.Linux
        pkgsrc/devel/hs-foundation/patches:
            patch-Foundation_System_Bindings_Posix.hsc

Log Message:
Fix reference to undefined symbol "dirfd" on NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/hs-foundation/Makefile \
    pkgsrc/devel/hs-foundation/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-foundation/PLIST.Darwin \
    pkgsrc/devel/hs-foundation/PLIST.Linux
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/hs-foundation/patches/patch-Foundation_System_Bindings_Posix.hsc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/hs-foundation/Makefile
diff -u pkgsrc/devel/hs-foundation/Makefile:1.1 pkgsrc/devel/hs-foundation/Makefile:1.2
--- pkgsrc/devel/hs-foundation/Makefile:1.1     Wed May  5 11:05:56 2021
+++ pkgsrc/devel/hs-foundation/Makefile Wed May  5 16:18:07 2021
@@ -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
Index: pkgsrc/devel/hs-foundation/distinfo
diff -u pkgsrc/devel/hs-foundation/distinfo:1.1 pkgsrc/devel/hs-foundation/distinfo:1.2
--- pkgsrc/devel/hs-foundation/distinfo:1.1     Wed May  5 11:05:56 2021
+++ pkgsrc/devel/hs-foundation/distinfo Wed May  5 16:18:07 2021
@@ -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

Added files:

Index: pkgsrc/devel/hs-foundation/PLIST.Darwin
diff -u /dev/null pkgsrc/devel/hs-foundation/PLIST.Darwin:1.1
--- /dev/null   Wed May  5 16:18:07 2021
+++ pkgsrc/devel/hs-foundation/PLIST.Darwin     Wed May  5 16:18:07 2021
@@ -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
Index: pkgsrc/devel/hs-foundation/PLIST.Linux
diff -u /dev/null pkgsrc/devel/hs-foundation/PLIST.Linux:1.1
--- /dev/null   Wed May  5 16:18:07 2021
+++ pkgsrc/devel/hs-foundation/PLIST.Linux      Wed May  5 16:18:07 2021
@@ -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

Index: pkgsrc/devel/hs-foundation/patches/patch-Foundation_System_Bindings_Posix.hsc
diff -u /dev/null pkgsrc/devel/hs-foundation/patches/patch-Foundation_System_Bindings_Posix.hsc:1.1
--- /dev/null   Wed May  5 16:18:07 2021
+++ pkgsrc/devel/hs-foundation/patches/patch-Foundation_System_Bindings_Posix.hsc       Wed May  5 16:18:07 2021
@@ -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