Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-unix-compat for openSUSE:Factory 
checked in at 2022-02-11 23:09:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-unix-compat (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-unix-compat.new.1956 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-unix-compat"

Fri Feb 11 23:09:54 2022 rev:22 rq:953554 version:0.5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-unix-compat/ghc-unix-compat.changes  
2021-12-19 17:34:41.420275667 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-unix-compat.new.1956/ghc-unix-compat.changes    
    2022-02-11 23:11:56.283384767 +0100
@@ -1,0 +2,6 @@
+Tue Jan 11 22:05:45 UTC 2022 - Peter Simons <psim...@suse.com>
+
+- Update unix-compat to version 0.5.4.
+  Upstream does not provide a change log file.
+
+-------------------------------------------------------------------

Old:
----
  unix-compat-0.5.3.tar.gz
  unix-compat.cabal

New:
----
  unix-compat-0.5.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-unix-compat.spec ++++++
--- /var/tmp/diff_new_pack.CREwgO/_old  2022-02-11 23:11:56.687385935 +0100
+++ /var/tmp/diff_new_pack.CREwgO/_new  2022-02-11 23:11:56.691385947 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-unix-compat
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,12 @@
 
 %global pkg_name unix-compat
 Name:           ghc-%{pkg_name}
-Version:        0.5.3
+Version:        0.5.4
 Release:        0
 Summary:        Portable POSIX-compatibility layer
 License:        BSD-3-Clause
 URL:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-unix-devel
@@ -47,7 +46,6 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ unix-compat-0.5.3.tar.gz -> unix-compat-0.5.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-compat-0.5.3/src/System/PosixCompat/Files.hsc 
new/unix-compat-0.5.4/src/System/PosixCompat/Files.hsc
--- old/unix-compat-0.5.3/src/System/PosixCompat/Files.hsc      2001-09-09 
03:46:40.000000000 +0200
+++ new/unix-compat-0.5.4/src/System/PosixCompat/Files.hsc      2001-09-09 
03:46:40.000000000 +0200
@@ -139,6 +139,7 @@
 import System.Win32.File hiding (getFileType)
 import System.Win32.HardLink (createHardLink)
 import System.Win32.Time (FILETIME(..), getFileTime, setFileTime)
+import System.Win32.Types (HANDLE)
 
 import System.PosixCompat.Internal.Time (
       getClockTime, clockTimeToEpochTime
@@ -452,7 +453,7 @@
 setFileTimes file atime mtime =
   bracket openFileHandle closeHandle $ \handle -> do
     (creationTime, _, _) <- getFileTime handle
-    setFileTime
+    setFileTimeCompat
       handle
       creationTime
       (epochTimeToFileTime atime)
@@ -472,6 +473,14 @@
         ll :: Int64
         ll = fromIntegral t * 10000000 + 116444736000000000
 
+setFileTimeCompat :: HANDLE -> FILETIME -> FILETIME -> FILETIME -> IO ()
+setFileTimeCompat h crt acc wrt =
+#if MIN_VERSION_Win32(2, 12, 0)
+    setFileTime h (Just crt) (Just acc) (Just wrt)
+#else
+    setFileTime h crt acc wrt
+#endif
+
 touchFile :: FilePath -> IO ()
 touchFile name =
     do t <- liftM clockTimeToEpochTime getClockTime
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-compat-0.5.3/unix-compat.cabal 
new/unix-compat-0.5.4/unix-compat.cabal
--- old/unix-compat-0.5.3/unix-compat.cabal     2001-09-09 03:46:40.000000000 
+0200
+++ new/unix-compat-0.5.4/unix-compat.cabal     2001-09-09 03:46:40.000000000 
+0200
@@ -1,5 +1,5 @@
 name:           unix-compat
-version:        0.5.3
+version:        0.5.4
 synopsis:       Portable POSIX-compatibility layer.
 description:    This package provides portable implementations of parts
                 of the unix package. This package re-exports the unix
@@ -57,7 +57,7 @@
       else
         build-depends: directory == 1.1.*
     else
-      build-depends: time >= 1.0 && < 1.10
+      build-depends: time >= 1.0 && < 1.13
       build-depends: directory >= 1.2 && < 1.4
 
     other-modules:

Reply via email to