[Git][haskell-team/DHG_packages][master] 2 commits: unix-time: Fix issues with 64-bit time_t
Ilias Tsitsimpis (@iliastsi)
gitlab at salsa.debian.org
Sat Apr 20 11:50:10 BST 2024
Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
04544607 by Ilias Tsitsimpis at 2024-04-20T13:40:37+03:00
unix-time: Fix issues with 64-bit time_t
- - - - -
81200f53 by Ilias Tsitsimpis at 2024-04-20T13:40:49+03:00
unix-time: Enable tests
- - - - -
4 changed files:
- p/haskell-unix-time/debian/changelog
- + p/haskell-unix-time/debian/patches/series
- + p/haskell-unix-time/debian/patches/time64_t
- p/haskell-unix-time/debian/rules
Changes:
=====================================
p/haskell-unix-time/debian/changelog
=====================================
@@ -1,3 +1,10 @@
+haskell-unix-time (0.4.11-2) unstable; urgency=medium
+
+ * Fix issues with 64-bit time_t
+ * Enable tests
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Sat, 20 Apr 2024 12:06:44 +0300
+
haskell-unix-time (0.4.11-1) unstable; urgency=medium
* New upstream release
=====================================
p/haskell-unix-time/debian/patches/series
=====================================
@@ -0,0 +1 @@
+time64_t
=====================================
p/haskell-unix-time/debian/patches/time64_t
=====================================
@@ -0,0 +1,23 @@
+Description: Use CApiFFI when calling into libc
+Author: Ilias Tsitsimpis <iliastsi at debian.org>
+Bug: https://github.com/kazu-yamamoto/unix-time/issues/62
+
+Index: b/Data/UnixTime/Sys.hsc
+===================================================================
+--- a/Data/UnixTime/Sys.hsc
++++ b/Data/UnixTime/Sys.hsc
+@@ -1,4 +1,5 @@
+ {-# LANGUAGE ForeignFunctionInterface #-}
++{-# LANGUAGE CApiFFI #-}
+
+ module Data.UnixTime.Sys (getUnixTime) where
+
+@@ -17,7 +18,7 @@ import Foreign.Storable
+ type CTimeVal = ()
+ type CTimeZone = ()
+
+-foreign import ccall unsafe "gettimeofday"
++foreign import capi unsafe "sys/time.h gettimeofday"
+ c_gettimeofday :: Ptr CTimeVal -> Ptr CTimeZone -> IO CInt
+
+ -- |
=====================================
p/haskell-unix-time/debian/rules
=====================================
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-DEB_ENABLE_TESTS = yes # $(shell test -e /usr/lib/ghc/bin/ghci && echo yes)
+DEB_ENABLE_TESTS = yes
# the test suite assumes it's being run under Japan Standard Time
export TZ = Etc/GMT-9
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/compare/45293ba67c0b62526358af94668721c8f1c7e1ff...81200f53865e91cb117aabb20ac47fa1979da6f2
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/compare/45293ba67c0b62526358af94668721c8f1c7e1ff...81200f53865e91cb117aabb20ac47fa1979da6f2
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20240420/f329d3bc/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list