head 1.3; access; symbols pkgsrc-2024Q4:1.2.0.40 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.38 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.36 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.34 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.32 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.30 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.28 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.26 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.24 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.22 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.20 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.18 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.16 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.14 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.12 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.10 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.8 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.6 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.4 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.2 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.1.0.44 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.40 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.38 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.36 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.34 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.32 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.30 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.28 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.26 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.24 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.20 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.18 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.16 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.14 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.12 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.10 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.8 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.6 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.4 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.2 pkgsrc-2015Q1-base:1.1; locks; strict; comment @# @; 1.3 date 2025.02.05.07.50.24; author wiz; state dead; branches; next 1.2; commitid 5xFcICvNYCNJJfIF; 1.2 date 2019.12.29.16.59.09; author pho; state Exp; branches; next 1.1; commitid p1hxGkKEhRJgJCQB; 1.1 date 2015.02.13.19.28.40; author pho; state Exp; branches; next ; commitid ToKvwGhUGMvVLS9y; desc @@ 1.3 log @ghc*: remove some outdated ghc packages These do not package on NetBSD 10, and are not needed for the bootstrapping process any longer, since ghc's bootstrapping happens via cross-compilation (from releases N, N-1, or N-2) nowadays. ok pho@@ As proposed on pkgsrc-users. @ text @$NetBSD: patch-libraries_unix_System_Posix_Signals.hsc,v 1.2 2019/12/29 16:59:09 pho Exp $ Suppress linker warnings about compatibility syscall wrappers by using "capi" instead of "ccall". In Haskell FFI, "ccall" is actually an interface to C ABI rather than C API. That is, GHC generates direct references to the symbol even if it's actually defined as a cpp macro or something like that, because GHC knows nothing about those macros in foreign headers. Hence the following warnings: .../libHSunix-2.6.0.1.a(Signals.o): In function `s4SG_info': (.text+0x3a3e): warning: warning: reference to compatibility sigsuspend(); include for correct reference .../libHSunix-2.6.0.1.a(Signals.o): In function `s5uV_info': (.text+0x6adb): warning: warning: reference to compatibility sigpending(); include for correct reference In other words, you can safely use "ccall" only when you are sure the symbol you want to import is actually a symbol in the ABI sense, which is not always the case for the POSIX API. --- libraries/unix/System/Posix/Signals.hsc.orig 2015-07-23 22:04:56.000000000 +0000 +++ libraries/unix/System/Posix/Signals.hsc @@@@ -603,7 +603,7 @@@@ awaitSignal maybe_sigset = do -- XXX My manpage says it can also return EFAULT. And why is ignoring -- EINTR the right thing to do? -foreign import ccall unsafe "sigsuspend" +foreign import capi unsafe "signal.h sigsuspend" c_sigsuspend :: Ptr CSigset -> IO CInt #endif @@@@ -638,5 +638,5 @@@@ foreign import capi unsafe "signal.h sig c_sigismember :: Ptr CSigset -> CInt -> IO CInt #endif /* __HUGS__ */ -foreign import ccall unsafe "sigpending" +foreign import capi unsafe "signal.h sigpending" c_sigpending :: Ptr CSigset -> IO CInt @ 1.2 log @Update to GHC 7.10.3 Changes from 7.6.3 are as follows: * https://www.haskell.org/ghc/docs/7.8.1/html/users_guide/release-7-8-1.html * https://www.haskell.org/ghc/docs/7.8.2/html/users_guide/release-7-8-2.html * https://www.haskell.org/ghc/docs/7.8.3/html/users_guide/release-7-8-3.html * https://www.haskell.org/ghc/docs/7.8.4/html/users_guide/release-7-8-4.html * https://www.haskell.org/ghc/docs/7.10.1/html/users_guide/release-7-10-1.html * https://downloads.haskell.org/~ghc/7.10.2/docs/html/users_guide/release-7-10-2.html * https://downloads.haskell.org/~ghc/7.10.3/docs/html/users_guide/release-7-10-3.html @ text @d1 1 a1 1 $NetBSD: patch-libraries_unix_System_Posix_Signals.hsc,v 1.1 2015/02/13 19:28:40 pho Exp $ @ 1.1 log @Suppress linker warnings about compatibility syscall wrappers by using "capi" instead of "ccall" In Haskell FFI, "ccall" is actually an interface to C ABI rather than C API. That is, GHC generates direct references to the symbol even if it's actually defined as a cpp macro or something like that, because GHC knows nothing about those macros in foreign headers. I will later send these patches to the upstream. @ text @d1 1 a1 1 $NetBSD$ d21 1 a21 1 --- libraries/unix/System/Posix/Signals.hsc.orig 2015-02-13 15:40:27.000000000 +0000 d23 1 a23 1 @@@@ -598,7 +598,7 @@@@ awaitSignal maybe_sigset = do d32 1 a32 1 @@@@ -622,6 +622,6 @@@@ foreign import capi unsafe "signal.h sig a38 1 @