Hello community, here is the log from the commit of package ghc-resourcet for openSUSE:Factory checked in at 2020-06-19 17:17:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-resourcet (Old) and /work/SRC/openSUSE:Factory/.ghc-resourcet.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-resourcet" Fri Jun 19 17:17:37 2020 rev:23 rq:815165 version:1.2.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-resourcet/ghc-resourcet.changes 2020-05-11 13:36:22.096490526 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-resourcet.new.3606/ghc-resourcet.changes 2020-06-19 17:17:40.162930155 +0200 @@ -1,0 +2,12 @@ +Tue Jun 9 09:10:54 UTC 2020 - psim...@suse.com + +- Update resourcet to version 1.2.4.1. + ## 1.2.4.1 + + * Document risk of using `forkIO` within a `ResourceT` [#441](https://github.com/snoyberg/conduit/pull/441) + + ## 1.2.4 + + * Add `allocate_` [#437](https://github.com/snoyberg/conduit/pull/437) + +------------------------------------------------------------------- Old: ---- resourcet-1.2.4.tar.gz New: ---- resourcet-1.2.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-resourcet.spec ++++++ --- /var/tmp/diff_new_pack.SPtXkF/_old 2020-06-19 17:17:41.186933056 +0200 +++ /var/tmp/diff_new_pack.SPtXkF/_new 2020-06-19 17:17:41.190933067 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-resourcet # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # 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 resourcet %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.2.4 +Version: 1.2.4.1 Release: 0 Summary: Deterministic allocation and freeing of scarce resources License: BSD-3-Clause ++++++ resourcet-1.2.4.tar.gz -> resourcet-1.2.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.4/ChangeLog.md new/resourcet-1.2.4.1/ChangeLog.md --- old/resourcet-1.2.4/ChangeLog.md 2020-03-01 09:31:18.000000000 +0100 +++ new/resourcet-1.2.4.1/ChangeLog.md 2020-06-07 14:21:11.000000000 +0200 @@ -1,5 +1,13 @@ # ChangeLog for resourcet +## 1.2.4.1 + +* Document risk of using `forkIO` within a `ResourceT` [#441](https://github.com/snoyberg/conduit/pull/441) + +## 1.2.4 + +* Add `allocate_` [#437](https://github.com/snoyberg/conduit/pull/437) + ## 1.2.3 * Support `unliftio-core` 0.2.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.4/Control/Monad/Trans/Resource.hs new/resourcet-1.2.4.1/Control/Monad/Trans/Resource.hs --- old/resourcet-1.2.4/Control/Monad/Trans/Resource.hs 2020-04-19 10:12:17.000000000 +0200 +++ new/resourcet-1.2.4.1/Control/Monad/Trans/Resource.hs 2020-06-07 14:21:11.000000000 +0200 @@ -265,6 +265,14 @@ -- -- This is defined as @resourceForkWith forkIO@. -- +-- Note: Using regular 'forkIO' inside of a 'ResourceT' is inherently unsafe, +-- since the forked thread may try access the resources of the parent after they are cleaned up. +-- When you use 'resourceForkIO' or 'resourceForkWith', 'ResourceT' is made aware of the new thread, and will only cleanup resources when all threads finish. +-- Other concurrency mechanisms, like 'concurrently' or 'race', are safe to use. +-- +-- If you encounter 'InvalidAccess' exceptions ("The mutable state is being accessed after cleanup"), +-- use of 'forkIO' is a possible culprit. +-- -- @since 0.3.0 resourceForkIO :: MonadUnliftIO m => ResourceT m () -> ResourceT m ThreadId resourceForkIO = resourceForkWith forkIO diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resourcet-1.2.4/resourcet.cabal new/resourcet-1.2.4.1/resourcet.cabal --- old/resourcet-1.2.4/resourcet.cabal 2020-04-19 10:12:17.000000000 +0200 +++ new/resourcet-1.2.4.1/resourcet.cabal 2020-06-07 18:00:55.000000000 +0200 @@ -1,5 +1,5 @@ Name: resourcet -Version: 1.2.4 +Version: 1.2.4.1 Synopsis: Deterministic allocation and freeing of scarce resources. description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/resourcet>. License: BSD3 @@ -8,11 +8,12 @@ Maintainer: mich...@snoyman.com Category: Data, Conduit Build-type: Simple -Cabal-version: >=1.8 +Cabal-version: >=1.10 Homepage: http://github.com/snoyberg/conduit extra-source-files: ChangeLog.md, README.md Library + default-language: Haskell2010 Exposed-modules: Control.Monad.Trans.Resource Control.Monad.Trans.Resource.Internal Data.Acquire @@ -28,6 +29,7 @@ ghc-options: -Wall test-suite test + default-language: Haskell2010 hs-source-dirs: test main-is: main.hs type: exitcode-stdio-1.0