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 2023-12-14 22:03:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-unix-compat (Old)
and /work/SRC/openSUSE:Factory/.ghc-unix-compat.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-unix-compat"
Thu Dec 14 22:03:15 2023 rev:27 rq:1132957 version:0.7.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-unix-compat/ghc-unix-compat.changes
2023-11-23 21:42:13.874989889 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-unix-compat.new.25432/ghc-unix-compat.changes
2023-12-14 22:03:17.876407923 +0100
@@ -1,0 +2,9 @@
+Wed Dec 6 12:31:37 UTC 2023 - Peter Simons <[email protected]>
+
+- Update unix-compat to version 0.7.1.
+ Upstream has edited the change log file since the last release in
+ a non-trivial way, i.e. they did more than just add a new entry
+ at the top. You can review the file at:
+ http://hackage.haskell.org/package/unix-compat-0.7.1/src/CHANGELOG.md
+
+-------------------------------------------------------------------
Old:
----
unix-compat-0.7.tar.gz
New:
----
unix-compat-0.7.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-unix-compat.spec ++++++
--- /var/tmp/diff_new_pack.Bo00QX/_old 2023-12-14 22:03:18.644435625 +0100
+++ /var/tmp/diff_new_pack.Bo00QX/_new 2023-12-14 22:03:18.648435770 +0100
@@ -20,7 +20,7 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.7
+Version: 0.7.1
Release: 0
Summary: Portable POSIX-compatibility layer
License: BSD-3-Clause
++++++ unix-compat-0.7.tar.gz -> unix-compat-0.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unix-compat-0.7/CHANGELOG.md
new/unix-compat-0.7.1/CHANGELOG.md
--- old/unix-compat-0.7/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200
+++ new/unix-compat-0.7.1/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,10 @@
+## Version 0.7.1 (2023-12-06) Santa Clause edition
+
+- Add `System.PosixCompat.Process` module, exporting `getProcessID`
+
## Version 0.7 (2023-03-15)
-- Remote `System.PosixCompat.User` module
+- Remove `System.PosixCompat.User` module
## Version 0.6 (2022-05-22)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unix-compat-0.7/src/System/PosixCompat/Process.hs
new/unix-compat-0.7.1/src/System/PosixCompat/Process.hs
--- old/unix-compat-0.7/src/System/PosixCompat/Process.hs 1970-01-01
01:00:00.000000000 +0100
+++ new/unix-compat-0.7.1/src/System/PosixCompat/Process.hs 2001-09-09
03:46:40.000000000 +0200
@@ -0,0 +1,23 @@
+{-# LANGUAGE CPP #-}
+
+{-|
+This module intends to make the operations of @System.Posix.Process@ available
+on all platforms.
+-}
+module System.PosixCompat.Process (
+ getProcessID
+ ) where
+
+#ifdef mingw32_HOST_OS
+
+import System.Posix.Types (ProcessID)
+import System.Win32.Process (getCurrentProcessId)
+
+getProcessID :: IO ProcessID
+getProcessID = fromIntegral <$> getCurrentProcessId
+
+#else
+
+import System.Posix.Process
+
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unix-compat-0.7/src/System/PosixCompat.hs
new/unix-compat-0.7.1/src/System/PosixCompat.hs
--- old/unix-compat-0.7/src/System/PosixCompat.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/unix-compat-0.7.1/src/System/PosixCompat.hs 2001-09-09
03:46:40.000000000 +0200
@@ -7,6 +7,7 @@
-}
module System.PosixCompat (
module System.PosixCompat.Files
+ , module System.PosixCompat.Process
, module System.PosixCompat.Temp
, module System.PosixCompat.Time
, module System.PosixCompat.Types
@@ -15,6 +16,7 @@
) where
import System.PosixCompat.Files
+import System.PosixCompat.Process
import System.PosixCompat.Temp
import System.PosixCompat.Time
import System.PosixCompat.Types
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unix-compat-0.7/tests/ProcessSpec.hs
new/unix-compat-0.7.1/tests/ProcessSpec.hs
--- old/unix-compat-0.7/tests/ProcessSpec.hs 1970-01-01 01:00:00.000000000
+0100
+++ new/unix-compat-0.7.1/tests/ProcessSpec.hs 2001-09-09 03:46:40.000000000
+0200
@@ -0,0 +1,12 @@
+module ProcessSpec (processSpec) where
+
+import System.PosixCompat
+import Test.HUnit
+import Test.Hspec
+
+processSpec :: Spec
+processSpec = do
+ describe "getProcessID" $ do
+ it "should work on Windows and Unix" $ do
+ pid <- getProcessID
+ assert $ pid > 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unix-compat-0.7/tests/main.hs
new/unix-compat-0.7.1/tests/main.hs
--- old/unix-compat-0.7/tests/main.hs 2001-09-09 03:46:40.000000000 +0200
+++ new/unix-compat-0.7.1/tests/main.hs 2001-09-09 03:46:40.000000000 +0200
@@ -2,6 +2,7 @@
import MkstempSpec
import LinksSpec
+import ProcessSpec
import Test.Hspec
@@ -9,3 +10,4 @@
main = hspec $ do
mkstempSpec
linksSpec
+ processSpec
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unix-compat-0.7/unix-compat.cabal
new/unix-compat-0.7.1/unix-compat.cabal
--- old/unix-compat-0.7/unix-compat.cabal 2001-09-09 03:46:40.000000000
+0200
+++ new/unix-compat-0.7.1/unix-compat.cabal 2001-09-09 03:46:40.000000000
+0200
@@ -1,16 +1,16 @@
name: unix-compat
-version: 0.7
+version: 0.7.1
synopsis: Portable POSIX-compatibility layer.
description: This package provides portable implementations of parts
of the unix package. This package re-exports the unix
package when available. When it isn't available,
portable implementations are used.
-homepage: http://github.com/haskell-pkg-janitors/unix-compat
+homepage: https://github.com/haskell-pkg-janitors/unix-compat
license: BSD3
license-file: LICENSE
author: Björn Bringert, Duncan Coutts, Jacob Stanley, Bryan O'Sullivan
-maintainer: Mitchell Rosen <[email protected]>
+maintainer: https://github.com/haskell-pkg-janitors
category: System
build-type: Simple
cabal-version: >= 1.10
@@ -20,7 +20,7 @@
source-repository head
type: git
- location: [email protected]:haskell-pkg-janitors/unix-compat.git
+ location: https://github.com/haskell-pkg-janitors/unix-compat.git
flag old-time
description: build against old-time package
@@ -36,6 +36,7 @@
System.PosixCompat
System.PosixCompat.Extensions
System.PosixCompat.Files
+ System.PosixCompat.Process
System.PosixCompat.Temp
System.PosixCompat.Time
System.PosixCompat.Types
@@ -85,6 +86,7 @@
other-modules:
MkstempSpec
LinksSpec
+ ProcessSpec
-- ghc-options:
-- -Wall