pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/ghc96



Module Name:    pkgsrc
Committed By:   pho
Date:           Tue Oct 24 06:38:45 UTC 2023

Modified Files:
        pkgsrc/lang/ghc96: Makefile buildlink3.mk distinfo
Added Files:
        pkgsrc/lang/ghc96/patches:
            patch-libraries_unix_System_Posix_User_ByteString.hsc

Log Message:
lang/ghc96: Fix a linkage issue in the unix package


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/ghc96/Makefile \
    pkgsrc/lang/ghc96/buildlink3.mk pkgsrc/lang/ghc96/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/ghc96/patches/patch-libraries_unix_System_Posix_User_ByteString.hsc

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

Modified files:

Index: pkgsrc/lang/ghc96/Makefile
diff -u pkgsrc/lang/ghc96/Makefile:1.2 pkgsrc/lang/ghc96/Makefile:1.3
--- pkgsrc/lang/ghc96/Makefile:1.2      Mon Oct 23 17:00:08 2023
+++ pkgsrc/lang/ghc96/Makefile  Tue Oct 24 06:38:45 2023
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.2 2023/10/23 17:00:08 pho Exp $
+# $NetBSD: Makefile,v 1.3 2023/10/24 06:38:45 pho Exp $
 # -----------------------------------------------------------------------------
 # Package metadata
 #
 DISTNAME=      ghc-9.6.3-src
 PKGNAME=       ${DISTNAME:S/-src$//}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    lang
 MASTER_SITES=  https://downloads.haskell.org/~ghc/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz
Index: pkgsrc/lang/ghc96/buildlink3.mk
diff -u pkgsrc/lang/ghc96/buildlink3.mk:1.2 pkgsrc/lang/ghc96/buildlink3.mk:1.3
--- pkgsrc/lang/ghc96/buildlink3.mk:1.2 Mon Oct 23 17:00:08 2023
+++ pkgsrc/lang/ghc96/buildlink3.mk     Tue Oct 24 06:38:45 2023
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.2 2023/10/23 17:00:08 pho Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2023/10/24 06:38:45 pho Exp $
 
 BUILDLINK_TREE+=       ghc
 
 .if !defined(GHC_BUILDLINK3_MK)
 GHC_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.ghc+=    ghc>=9.6.3nb1
-BUILDLINK_ABI_DEPENDS.ghc+=    ghc>=9.6.3nb1
+BUILDLINK_API_DEPENDS.ghc+=    ghc>=9.6.3nb2
+BUILDLINK_ABI_DEPENDS.ghc+=    ghc>=9.6.3nb2
 BUILDLINK_PKGSRCDIR.ghc?=      ../../lang/ghc96
 
 .include "../../converters/libiconv/buildlink3.mk"
Index: pkgsrc/lang/ghc96/distinfo
diff -u pkgsrc/lang/ghc96/distinfo:1.2 pkgsrc/lang/ghc96/distinfo:1.3
--- pkgsrc/lang/ghc96/distinfo:1.2      Mon Oct 23 17:00:08 2023
+++ pkgsrc/lang/ghc96/distinfo  Tue Oct 24 06:38:45 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2023/10/23 17:00:08 pho Exp $
+$NetBSD: distinfo,v 1.3 2023/10/24 06:38:45 pho Exp $
 
 BLAKE2s (ghc-9.2.1-boot-hadrian.tar.gz) = 363fea08f46524eab654b3225650be4938bd0404e8c44145381f97a0c4489dca
 SHA512 (ghc-9.2.1-boot-hadrian.tar.gz) = a006ab38df77bc22e51ee75808065ad75781f85eb52cae54ed8995942ba16e70f4d68d4097f2597bca09e8b7890858d0a28a0f66216e6a4b21a3c68bb8082c59
@@ -55,6 +55,7 @@ SHA1 (patch-libraries_unix_System_Posix_
 SHA1 (patch-libraries_unix_System_Posix_Env_PosixString.hsc) = 40d464638eb11cb832f93d9892818655f4d70e00
 SHA1 (patch-libraries_unix_System_Posix_Signals.hsc) = ee59a04571881382bcfd9fc82bf196ff86a40ed5
 SHA1 (patch-libraries_unix_System_Posix_User.hsc) = b583f591838fe2d7f42241787e02c5385d336939
+SHA1 (patch-libraries_unix_System_Posix_User_ByteString.hsc) = 2a331de2292835ae6904980facd8201705fa63e8
 SHA1 (patch-m4_fptools__set__haskell__platform__vars.m4) = 8c7a7ab965f4df8a68bedb35c32ee32c59ac2c94
 SHA1 (patch-rts_linker_MMap.c) = c2abd34b8d39bb8f508a54bf3db25f53e113e45b
 SHA1 (patch-rts_linker_MMap.h) = 8228fabcdaeb1511191da9fc614ff94d3eee8fbd

Added files:

Index: pkgsrc/lang/ghc96/patches/patch-libraries_unix_System_Posix_User_ByteString.hsc
diff -u /dev/null pkgsrc/lang/ghc96/patches/patch-libraries_unix_System_Posix_User_ByteString.hsc:1.1
--- /dev/null   Tue Oct 24 06:38:45 2023
+++ pkgsrc/lang/ghc96/patches/patch-libraries_unix_System_Posix_User_ByteString.hsc     Tue Oct 24 06:38:45 2023
@@ -0,0 +1,20 @@
+$NetBSD: patch-libraries_unix_System_Posix_User_ByteString.hsc,v 1.1 2023/10/24 06:38:45 pho Exp $
+
+Suppress linker warnings about compatibility symbols by using "capi"
+instead of "ccall".
+
+--- libraries/unix/System/Posix/User/ByteString.hsc.orig       2023-10-24 03:45:34.747217813 +0000
++++ libraries/unix/System/Posix/User/ByteString.hsc
+@@ -522,9 +522,9 @@ getAllUserEntries = lockpw GETALL $ brac
+             else do thisentry <- unpackUserEntry ppw
+                     worker (thisentry : accum)
+ 
+-foreign import ccall safe "getpwent" c_getpwent :: IO (Ptr CPasswd)
+-foreign import ccall safe "setpwent" c_setpwent :: IO ()
+-foreign import ccall safe "endpwent" c_endpwent :: IO ()
++foreign import capi safe "HsUnix.h getpwent" c_getpwent :: IO (Ptr CPasswd)
++foreign import capi safe "HsUnix.h setpwent" c_setpwent :: IO ()
++foreign import capi safe "HsUnix.h endpwent" c_endpwent :: IO ()
+ #else
+ {-# WARNING getAllUserEntries "System.Posix.User.getAllUserEntries: not supported" #-}
+ getAllUserEntries = error "System.Posix.User.getAllUserEntries: not supported"



Home | Main Index | Thread Index | Old Index