Hello community,

here is the log from the commit of package ghc-unix-compat for openSUSE:Factory 
checked in at 2018-05-30 12:15:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-unix-compat (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-unix-compat.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-unix-compat"

Wed May 30 12:15:21 2018 rev:7 rq:607914 version:0.5.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-unix-compat/ghc-unix-compat.changes  
2017-09-15 22:21:52.567217089 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-compat.new/ghc-unix-compat.changes     
2018-05-30 12:27:45.665326424 +0200
@@ -1,0 +2,6 @@
+Mon May 14 17:02:11 UTC 2018 - [email protected]
+
+- Update unix-compat to version 0.5.0.1.
+  Upstream does not provide a changelog.
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ ghc-unix-compat.spec ++++++
--- /var/tmp/diff_new_pack.avy3po/_old  2018-05-30 12:27:46.249305929 +0200
+++ /var/tmp/diff_new_pack.avy3po/_new  2018-05-30 12:27:46.257305648 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-unix-compat
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,13 @@
 
 %global pkg_name unix-compat
 Name:           ghc-%{pkg_name}
-Version:        0.4.3.1
+Version:        0.5.0.1
 Release:        0
 Summary:        Portable POSIX-compatibility layer
 License:        BSD-3-Clause
 Group:          Development/Libraries/Haskell
 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/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-unix-devel
@@ -48,7 +47,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build
@@ -63,7 +61,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 

++++++ unix-compat-0.4.3.1.tar.gz -> unix-compat-0.5.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-compat-0.4.3.1/src/System/PosixCompat/Files.hsc 
new/unix-compat-0.5.0.1/src/System/PosixCompat/Files.hsc
--- old/unix-compat-0.4.3.1/src/System/PosixCompat/Files.hsc    2016-12-06 
15:22:00.000000000 +0100
+++ new/unix-compat-0.5.0.1/src/System/PosixCompat/Files.hsc    2017-12-06 
02:45:18.000000000 +0100
@@ -134,6 +134,7 @@
 import System.IO.Error
 import System.PosixCompat.Types
 import System.Win32.File hiding (getFileType)
+import System.Win32.HardLink (createHardLink)
 import System.Win32.Time (FILETIME(..), getFileTime, setFileTime)
 
 import System.PosixCompat.Internal.Time (
@@ -373,7 +374,7 @@
 -- Hard links
 
 createLink :: FilePath -> FilePath -> IO ()
-createLink _ _ = unsupported "createLink"
+createLink = createHardLink
 
 removeLink :: FilePath -> IO ()
 removeLink _ = unsupported "removeLink"
@@ -388,10 +389,14 @@
 readSymbolicLink _ = unsupported "readSymbolicLink"
 
 -- 
-----------------------------------------------------------------------------
--- Renaming files
+-- Renaming
 
 rename :: FilePath -> FilePath -> IO ()
-rename name1 name2 = renameFile name1 name2
+#if MIN_VERSION_Win32(2, 6, 0)
+rename name1 name2 = moveFileEx name1 (Just name2) mOVEFILE_REPLACE_EXISTING
+#else
+rename name1 name2 = moveFileEx name1 name2 mOVEFILE_REPLACE_EXISTING
+#endif
 
 -- 
-----------------------------------------------------------------------------
 -- chown()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-compat-0.4.3.1/unix-compat.cabal 
new/unix-compat-0.5.0.1/unix-compat.cabal
--- old/unix-compat-0.4.3.1/unix-compat.cabal   2016-12-06 15:22:00.000000000 
+0100
+++ new/unix-compat-0.5.0.1/unix-compat.cabal   2017-12-06 02:45:18.000000000 
+0100
@@ -1,5 +1,5 @@
 name:           unix-compat
-version:        0.4.3.1
+version:        0.5.0.1
 synopsis:       Portable POSIX-compatibility layer.
 description:    This package provides portable implementations of parts
                 of the unix package. This package re-exports the unix
@@ -44,7 +44,7 @@
       cbits/mktemp.c
 
     extra-libraries: msvcrt
-    build-depends: Win32 >= 2.3.0.2
+    build-depends: Win32 >= 2.5.0.0
 
     if flag(old-time)
       build-depends: old-time >= 1.0.0.0 && < 1.2.0.0
@@ -56,8 +56,8 @@
       else
         build-depends: directory == 1.1.*
     else
-      build-depends: time >= 1.0 && < 1.7
-      build-depends: directory >= 1.2 && < 1.3
+      build-depends: time >= 1.0 && < 1.9
+      build-depends: directory >= 1.2 && < 1.4
 
     other-modules:
       System.PosixCompat.Internal.Time


Reply via email to