Hello community,

here is the log from the commit of package ghc-lukko for openSUSE:Leap:15.2 
checked in at 2020-05-21 12:58:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/ghc-lukko (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.ghc-lukko.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-lukko"

Thu May 21 12:58:04 2020 rev:2 rq:802869 version:0.1.1.2

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/ghc-lukko/ghc-lukko.changes    2020-02-09 
11:25:59.271318382 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.ghc-lukko.new.2738/ghc-lukko.changes  
2020-05-21 12:58:05.214631400 +0200
@@ -1,0 +2,7 @@
+Wed May  6 06:54:10 UTC 2020 - psim...@suse.com
+
+- Update lukko to version 0.1.1.2.
+  Upstream has not updated the file "CHANGELOG.md" since the last
+  release.
+
+-------------------------------------------------------------------

Old:
----
  lukko-0.1.1.1.tar.gz

New:
----
  lukko-0.1.1.2.tar.gz

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

Other differences:
------------------
++++++ ghc-lukko.spec ++++++
--- /var/tmp/diff_new_pack.JXBM4n/_old  2020-05-21 12:58:05.690632437 +0200
+++ /var/tmp/diff_new_pack.JXBM4n/_new  2020-05-21 12:58:05.690632437 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-lukko
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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
@@ -19,7 +19,7 @@
 %global pkg_name lukko
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.1.1.1
+Version:        0.1.1.2
 Release:        0
 Summary:        File locking
 License:        GPL-2.0-or-later AND BSD-3-Clause
@@ -41,10 +41,14 @@
 %description
 This package provides access to platform dependent file locking APIs:
 
-* Open file descriptor locking on Linux ("Lukko.OFD") * 'flock' locking on unix
-platforms ("Lukko.FLock") * Windows locking 'LockFileEx' ("Lukko.Windows") *
-No-op locking, which throws exceptions ("Lukko.NoOp") * "Lukko" module exports
-the best option for the target platform with uniform API.
+*
+<https://www.gnu.org/software/libc/manual/html_node/Open-File-Description-Locks.html
+Open file descriptor locking> on Linux ("Lukko.OFD") * BSD-style 'flock(2)'
+locks on UNIX platforms ("Lukko.FLock") * Windows locking via
+<https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-lockfilee
+LockFileEx> ("Lukko.Windows") * No-op locking, which throws exceptions
+("Lukko.NoOp") * "Lukko" module exports the best option for the target platform
+with uniform API.
 
 There are alternative file locking packages:
 

++++++ lukko-0.1.1.1.tar.gz -> lukko-0.1.1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lukko-0.1.1.1/lukko.cabal 
new/lukko-0.1.1.2/lukko.cabal
--- old/lukko-0.1.1.1/lukko.cabal       2001-09-09 03:46:40.000000000 +0200
+++ new/lukko-0.1.1.2/lukko.cabal       2001-09-09 03:46:40.000000000 +0200
@@ -1,14 +1,14 @@
 cabal-version:      2.2
 name:               lukko
-version:            0.1.1.1
+version:            0.1.1.2
 synopsis:           File locking
 category:           System, Concurrency
 description:
   This package provides access to platform dependent file locking APIs:
   .
-  * Open file descriptor locking on Linux ("Lukko.OFD")
-  * @flock@ locking on unix platforms ("Lukko.FLock")
-  * Windows locking @LockFileEx@ ("Lukko.Windows")
+  * 
<https://www.gnu.org/software/libc/manual/html_node/Open-File-Description-Locks.html
 Open file descriptor locking> on Linux ("Lukko.OFD")
+  * BSD-style @flock(2)@ locks on UNIX platforms ("Lukko.FLock")
+  * Windows locking via 
<https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-lockfilee
 LockFileEx> ("Lukko.Windows")
   * No-op locking, which throws exceptions ("Lukko.NoOp")
   * "Lukko" module exports the best option for the target platform with 
uniform API.
   .
@@ -52,7 +52,8 @@
    || ==8.2.2
    || ==8.4.4
    || ==8.6.5
-   || ==8.8.1
+   || ==8.8.3
+   || ==8.10.1
 
 source-repository head
   type:     git
@@ -67,7 +68,7 @@
 library
   default-language:   Haskell2010
   hs-source-dirs:     src
-  build-depends:      base >=4.5 && <4.14
+  build-depends:      base >=4.5 && <4.15
   build-tool-depends: hsc2hs:hsc2hs >=0.67 && <0.69
 
   -- Main library module
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lukko-0.1.1.1/src-flock/Lukko/FLock.hsc 
new/lukko-0.1.1.2/src-flock/Lukko/FLock.hsc
--- old/lukko-0.1.1.1/src-flock/Lukko/FLock.hsc 2001-09-09 03:46:40.000000000 
+0200
+++ new/lukko-0.1.1.2/src-flock/Lukko/FLock.hsc 2001-09-09 03:46:40.000000000 
+0200
@@ -2,7 +2,7 @@
 {-# LANGUAGE DataKinds #-}
 {-# LANGUAGE InterruptibleFFI #-}
 {-# LANGUAGE Trustworthy #-}
--- | File locking via POSIX @flock@.
+-- | File locking via BSD-style @flock(2)@.
 module Lukko.FLock (
     -- * Types
     FileLockingNotSupported(..),
@@ -58,15 +58,15 @@
 -- FD
 -------------------------------------------------------------------------------
 
--- | Lock using OFD locks.
+-- | Lock using BSD-style locks.
 fdLock :: FD -> LockMode -> IO ()
 fdLock fd mode = void (lockImpl Nothing fd "fdLock" mode True)
 
--- | Try to lock using OFD locks.
+-- | Try to lock using BSD-style locks.
 fdTryLock :: FD -> LockMode -> IO Bool
 fdTryLock fd mode = lockImpl Nothing fd "fdTryLock" mode False
 
--- | Unlock using OFD locks.
+-- | Unlock using BSD-style locks.
 fdUnlock :: FD -> IO ()
 fdUnlock = unlockImpl
 
@@ -74,19 +74,19 @@
 -- Handle
 -------------------------------------------------------------------------------
 
--- | Lock using OFD locks.
+-- | Lock using BSD-style locks.
 hLock :: Handle -> LockMode -> IO ()
 hLock h mode = do
     fd <- handleToFd h
     void (lockImpl (Just h) fd "hLock" mode True)
 
--- | Try to lock using OFD locks.
+-- | Try to lock using BSD-style locks.
 hTryLock :: Handle -> LockMode -> IO Bool
 hTryLock h mode = do
     fd <- handleToFd h
     lockImpl (Just h) fd "hTryLock" mode False
 
--- | Unlock using OFD locks.
+-- | Unlock using BSD-style locks.
 hUnlock :: Handle -> IO ()
 hUnlock h = do
     fd <- handleToFd h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lukko-0.1.1.1/src-windows/Lukko/Windows.hsc 
new/lukko-0.1.1.2/src-windows/Lukko/Windows.hsc
--- old/lukko-0.1.1.1/src-windows/Lukko/Windows.hsc     2001-09-09 
03:46:40.000000000 +0200
+++ new/lukko-0.1.1.2/src-windows/Lukko/Windows.hsc     2001-09-09 
03:46:40.000000000 +0200
@@ -2,6 +2,7 @@
 {-# LANGUAGE DataKinds #-}
 {-# LANGUAGE InterruptibleFFI #-}
 {-# LANGUAGE Trustworthy #-}
+
 -- | File locking for Windows.
 module Lukko.Windows (
     -- * Types
@@ -43,9 +44,9 @@
 import Lukko.Internal.Types
 
 #if defined(i386_HOST_ARCH)
-#define WINDOWS_CCONV stdcall
+##define WINDOWS_CCONV stdcall
 #elif defined(x86_64_HOST_ARCH)
-#define WINDOWS_CCONV ccall
+##define WINDOWS_CCONV ccall
 #else
 #error Unknown mingw32 arch
 #endif
@@ -69,15 +70,15 @@
 -- FD
 -------------------------------------------------------------------------------
 
--- | Lock using OFD locks.
+-- | Lock using Win32 locks.
 fdLock :: FD -> LockMode -> IO ()
 fdLock fd mode = void (lockImpl Nothing fd "fdLock" mode True)
 
--- | Try to lock using OFD locks.
+-- | Try to lock using Win32 locks.
 fdTryLock :: FD -> LockMode -> IO Bool
 fdTryLock fd mode = lockImpl Nothing fd "fdTryLock" mode False
 
--- | Unlock using OFD locks.
+-- | Unlock using Win32 locks.
 fdUnlock :: FD -> IO ()
 fdUnlock = unlockImpl
 
@@ -85,19 +86,19 @@
 -- Handle
 -------------------------------------------------------------------------------
 
--- | Lock using OFD locks.
+-- | Lock using Win32 locks.
 hLock :: Handle -> LockMode -> IO ()
 hLock h mode = do
     fd <- handleToFd h
     void (lockImpl (Just h) fd "hLock" mode True)
 
--- | Try to lock using OFD locks.
+-- | Try to lock using Win32 locks.
 hTryLock :: Handle -> LockMode -> IO Bool
 hTryLock h mode = do
     fd <- handleToFd h
     lockImpl (Just h) fd "hTryLock" mode False
 
--- | Unlock using OFD locks.
+-- | Unlock using Win32 locks.
 hUnlock :: Handle -> IO ()
 hUnlock h = do
     fd <- handleToFd h
@@ -117,7 +118,7 @@
     -- "locking a region that goes beyond the current end-of-file position is
     -- not an error", hence we pass maximum value as the number of bytes to
     -- lock.
-    fix $ \retry -> c_LockFileEx wh flags 0 0xffffffff 0xffffffff ovrlpd >>= 
\res -> case res of
+    fix $ \retry -> c_LockFileEx wh flags 0 #{const INFINITE} #{const 
INFINITE} ovrlpd >>= \res -> case res of
       True  -> return True
       False -> getLastError >>= \err -> case () of
         _ | not block && err == #{const ERROR_LOCK_VIOLATION} -> return False
@@ -134,31 +135,16 @@
 unlockImpl (FD wh) = do
   allocaBytes sizeof_OVERLAPPED $ \ovrlpd -> do
     fillBytes ovrlpd 0 sizeof_OVERLAPPED
-    c_UnlockFileEx wh 0 0xffffffff 0xffffffff ovrlpd >>= \res -> case res of
+    c_UnlockFileEx wh 0 #{const INFINITE} #{const INFINITE} ovrlpd >>= \res -> 
case res of
       True  -> return ()
       False -> getLastError >>= failWith "fdUnlock"
   where
     sizeof_OVERLAPPED = #{size OVERLAPPED}
-#if defined(i386_HOST_ARCH)
-
--- 
https://docs.microsoft.com/en-gb/windows/win32/api/fileapi/nf-fileapi-lockfileex
-foreign import stdcall interruptible "LockFileEx"
-  c_LockFileEx :: HANDLE -> DWORD -> DWORD -> DWORD -> DWORD -> Ptr () -> IO 
BOOL
-
--- 
https://docs.microsoft.com/en-gb/windows/win32/api/fileapi/nf-fileapi-unlockfileex
-foreign import stdcall interruptible "UnlockFileEx"
-  c_UnlockFileEx :: HANDLE -> DWORD -> DWORD -> DWORD -> Ptr () -> IO BOOL
-
-#elif defined(x86_64_HOST_ARCH)
 
 -- 
https://docs.microsoft.com/en-gb/windows/win32/api/fileapi/nf-fileapi-lockfileex
-foreign import ccall interruptible "LockFileEx"
+foreign import WINDOWS_CCONV interruptible "LockFileEx"
   c_LockFileEx :: HANDLE -> DWORD -> DWORD -> DWORD -> DWORD -> Ptr () -> IO 
BOOL
 
 -- 
https://docs.microsoft.com/en-gb/windows/win32/api/fileapi/nf-fileapi-unlockfileex
-foreign import ccall interruptible "UnlockFileEx"
+foreign import WINDOWS_CCONV interruptible "UnlockFileEx"
   c_UnlockFileEx :: HANDLE -> DWORD -> DWORD -> DWORD -> Ptr () -> IO BOOL
-
-#else
-#error Unknown mingw32 arch
-#endif


Reply via email to