Received: by mail.netbsd.org (Postfix, from userid 605) id 16B7184D7A; Wed, 5 May 2021 16:18:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 52DE984D52 for ; Wed, 5 May 2021 16:18:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id SAJET2Frgh9B for ; Wed, 5 May 2021 16:18:07 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 9FBE684CE0 for ; Wed, 5 May 2021 16:18:07 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 937BEFA95; Wed, 5 May 2021 16:18:07 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1620231487201050" MIME-Version: 1.0 Date: Wed, 5 May 2021 16:18:07 +0000 From: "Masatake Daimon" Subject: CVS commit: pkgsrc/devel/hs-foundation To: pkgsrc-changes@NetBSD.org Reply-To: pho@netbsd.org X-Mailer: log_accum Message-Id: <20210505161807.937BEFA95@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1620231487201050 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1620231487201050 Content-Disposition: inline Content-Length: 3552 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 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 + #include + +-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 --_----------=_1620231487201050--