commit ghc-amqp for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-amqp for openSUSE:Factory checked in at 2017-09-15 21:19:45 Comparing /work/SRC/openSUSE:Factory/ghc-amqp (Old) and /work/SRC/openSUSE:Factory/.ghc-amqp.new (New) Package is "ghc-amqp" Fri Sep 15 21:19:45 2017 rev:3 rq:524121 version:0.15.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-amqp/ghc-amqp.changes2017-08-31 20:50:05.897057273 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-amqp.new/ghc-amqp.changes 2017-09-15 21:19:46.452253326 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +--- Other differences: -- ++ ghc-amqp.spec ++ --- /var/tmp/diff_new_pack.3imgfx/_old 2017-09-15 21:19:47.516103353 +0200 +++ /var/tmp/diff_new_pack.3imgfx/_new 2017-09-15 21:19:47.516103353 +0200 @@ -23,8 +23,8 @@ Release:0 Summary:Client library for AMQP servers (currently only RabbitMQ) License:MIT -Group: Development/Languages/Other -Url:https://hackage.haskell.org/package/%{pkg_name} +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 BuildRequires: ghc-Cabal-devel BuildRequires: ghc-binary-devel @@ -42,7 +42,6 @@ BuildRequires: ghc-text-devel BuildRequires: ghc-vector-devel BuildRequires: ghc-xml-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-hspec-devel BuildRequires: ghc-hspec-expectations-devel @@ -53,7 +52,7 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Other +Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} @@ -81,12 +80,10 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root,-) %doc LICENSE %{_bindir}/amqp-builder %files devel -f %{name}-devel.files -%defattr(-,root,root,-) %doc changelog.md examples %changelog
commit ghc-amqp for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-amqp for openSUSE:Factory checked in at 2017-08-31 20:50:04 Comparing /work/SRC/openSUSE:Factory/ghc-amqp (Old) and /work/SRC/openSUSE:Factory/.ghc-amqp.new (New) Package is "ghc-amqp" Thu Aug 31 20:50:04 2017 rev:2 rq:513201 version:0.15.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-amqp/ghc-amqp.changes2017-03-28 15:20:27.988485767 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-amqp.new/ghc-amqp.changes 2017-08-31 20:50:05.897057273 +0200 @@ -1,0 +2,5 @@ +Thu Jul 27 14:06:00 UTC 2017 - psim...@suse.com + +- Update to version 0.15.1. + +--- Old: amqp-0.14.1.tar.gz New: amqp-0.15.1.tar.gz Other differences: -- ++ ghc-amqp.spec ++ --- /var/tmp/diff_new_pack.RHILrx/_old 2017-08-31 20:50:06.764935449 +0200 +++ /var/tmp/diff_new_pack.RHILrx/_new 2017-08-31 20:50:06.772934326 +0200 @@ -19,7 +19,7 @@ %global pkg_name amqp %bcond_with tests Name: ghc-%{pkg_name} -Version:0.14.1 +Version:0.15.1 Release:0 Summary:Client library for AMQP servers (currently only RabbitMQ) License:MIT ++ amqp-0.14.1.tar.gz -> amqp-0.15.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-0.14.1/Network/AMQP/Internal.hs new/amqp-0.15.1/Network/AMQP/Internal.hs --- old/amqp-0.14.1/Network/AMQP/Internal.hs2017-01-12 10:35:15.0 +0100 +++ new/amqp-0.15.1/Network/AMQP/Internal.hs2017-06-30 14:14:47.0 +0200 @@ -278,7 +278,7 @@ -- connection: if the thread died for an unexpected exception, -- inform the channel threads downstream accordingly. Otherwise -- just use a normal 'killThread' finaliser. -let finaliser = case res of +let finaliser = ChanThreadKilledException $ case res of Left ex -> ex Right _ -> CE.toException CE.ThreadKilled modifyMVar_ cChannels $ \x -> do @@ -486,6 +486,16 @@ chanExceptionHandlers :: MVar [CE.SomeException -> IO ()] } +-- | Thrown in the channel thread when the connection gets closed. +-- When handling exceptions in a subscription callback, make sure to re-throw this so the channel thread can be stopped. +data ChanThreadKilledException = ChanThreadKilledException { cause :: CE.SomeException } + deriving (Show) + +instance CE.Exception ChanThreadKilledException + +unwrapChanThreadKilledException :: CE.SomeException -> CE.SomeException +unwrapChanThreadKilledException e = maybe e cause $ CE.fromException e + msgFromContentHeaderProperties :: ContentHeaderProperties -> BL.ByteString -> Message msgFromContentHeaderProperties (CHBasic content_type content_encoding headers delivery_mode priority correlation_id reply_to expiration message_id timestamp message_type user_id application_id cluster_id) body = let msgId = fromShortString message_id @@ -542,8 +552,11 @@ let env = Envelope {envDeliveryTag = deliveryTag, envRedelivered = redelivered, envExchangeName = exchange, envRoutingKey = routingKey, envChannel = chan} -CE.catch (subscriber (msg, env)) -(\(e::CE.SomeException) -> hPutStrLn stderr $ "AMQP callback threw exception: " ++ show e) +CE.catches (subscriber (msg, env)) +[ + CE.Handler (\(e::ChanThreadKilledException) -> CE.throwIO $ cause e), + CE.Handler (\(e::CE.SomeException) -> hPutStrLn stderr $ "AMQP callback threw exception: " ++ show e) +] Nothing -> -- got a message, but have no registered subscriber; so drop it return () @@ -656,7 +669,7 @@ closeChannel' newChannel "closed" case res of Right _ -> return () - Left ex -> readMVar handlers >>= mapM_ ($ ex) + Left ex -> readMVar handlers >>= mapM_ ($ unwrapChanThreadKilledException ex) when (IM.member newChannelID mp) $ CE.throwIO $ userError "openChannel fail: channel already open" return (IM.insert newChannelID (newChannel, thrID) mp, newChannel) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-0.14.1/Network/AMQP.hs new/amqp-0.15.1/Network/AMQP.hs --- old/amqp-0.14.1/Network/AMQP.hs 2017-01-12 10:35:15.0 +0100 +++
commit ghc-amqp for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-amqp for openSUSE:Factory checked in at 2017-03-28 15:20:27 Comparing /work/SRC/openSUSE:Factory/ghc-amqp (Old) and /work/SRC/openSUSE:Factory/.ghc-amqp.new (New) Package is "ghc-amqp" Tue Mar 28 15:20:27 2017 rev:1 rq:455050 version:0.14.1 Changes: New Changes file: --- /dev/null 2017-03-01 00:40:19.279048016 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-amqp.new/ghc-amqp.changes 2017-03-28 15:20:27.988485767 +0200 @@ -0,0 +1,15 @@ +--- +Wed Jan 18 09:00:27 UTC 2017 - psim...@suse.com + +- Update to version 0.14.1 with cabal2obs. + +--- +Thu Sep 15 06:54:57 UTC 2016 - psim...@suse.com + +- Update to version 0.14.0 revision 0 with cabal2obs. + +--- +Sun Jul 10 16:58:11 UTC 2016 - psim...@suse.com + +- Update to version 0.13.1 revision 0 with cabal2obs. + New: amqp-0.14.1.tar.gz ghc-amqp.changes ghc-amqp.spec Other differences: -- ++ ghc-amqp.spec ++ # # spec file for package ghc-amqp # # Copyright (c) 2017 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global pkg_name amqp %bcond_with tests Name: ghc-%{pkg_name} Version:0.14.1 Release:0 Summary:Client library for AMQP servers (currently only RabbitMQ) License:MIT Group: Development/Languages/Other Url:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-clock-devel BuildRequires: ghc-connection-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-data-binary-ieee754-devel BuildRequires: ghc-monad-control-devel BuildRequires: ghc-network-devel BuildRequires: ghc-network-uri-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-split-devel BuildRequires: ghc-stm-devel BuildRequires: ghc-text-devel BuildRequires: ghc-vector-devel BuildRequires: ghc-xml-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-hspec-devel BuildRequires: ghc-hspec-expectations-devel %endif %description Client library for AMQP servers (currently only RabbitMQ). %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install %check %cabal_test %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %defattr(-,root,root,-) %doc LICENSE %{_bindir}/amqp-builder %files devel -f %{name}-devel.files %defattr(-,root,root,-) %doc changelog.md examples %changelog