[Git][haskell-team/DHG_packages][master] old-time: Fix issues with 64-bit time_t

Ilias Tsitsimpis (@iliastsi) gitlab at salsa.debian.org
Fri Apr 19 17:50:29 BST 2024



Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
45293ba6 by Ilias Tsitsimpis at 2024-04-19T19:43:02+03:00
old-time: Fix issues with 64-bit time_t

- - - - -


3 changed files:

- p/haskell-old-time/debian/changelog
- p/haskell-old-time/debian/patches/series
- + p/haskell-old-time/debian/patches/time64_t


Changes:

=====================================
p/haskell-old-time/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-old-time (1.1.0.3-13) unstable; urgency=medium
+
+  * Fix issues with 64-bit time_t
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Fri, 19 Apr 2024 19:27:02 +0300
+
 haskell-old-time (1.1.0.3-12) unstable; urgency=medium
 
   * Remove retired developer, Joachim Breitner, from Uploaders.


=====================================
p/haskell-old-time/debian/patches/series
=====================================
@@ -1 +1,2 @@
 newer-base
+time64_t


=====================================
p/haskell-old-time/debian/patches/time64_t
=====================================
@@ -0,0 +1,24 @@
+Description: Use CApiFFI when calling into libc
+Author: Ilias Tsitsimpis <iliastsi at debian.org>
+Bug: https://github.com/haskell/old-time/issues/16
+
+Index: b/System/Time.hsc
+===================================================================
+--- a/System/Time.hsc
++++ b/System/Time.hsc
+@@ -1,5 +1,6 @@
+ #if __GLASGOW_HASKELL__ >= 701
+ {-# LANGUAGE Trustworthy #-}
++{-# LANGUAGE CApiFFI #-}
+ #endif
+ 
+ -----------------------------------------------------------------------------
+@@ -744,7 +745,7 @@ foreign import ccall unsafe "HsTime.h __
+ foreign import ccall unsafe "time.h gmtime"
+     gmtime      :: Ptr CTime -> IO (Ptr CTm)
+ #endif
+-foreign import ccall unsafe "time.h mktime"
++foreign import capi unsafe "time.h mktime"
+     mktime      :: Ptr CTm   -> IO CTime
+ 
+ #if HAVE_GETTIMEOFDAY



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/45293ba67c0b62526358af94668721c8f1c7e1ff

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/45293ba67c0b62526358af94668721c8f1c7e1ff
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/20240419/0f06df9b/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list