public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-haskell/tasty/files/, dev-haskell/tasty/
@ 2019-12-15 12:50 Sergei Trofimovich
  0 siblings, 0 replies; only message in thread
From: Sergei Trofimovich @ 2019-12-15 12:50 UTC (permalink / raw
  To: gentoo-commits

commit:     98e9e54d46b8ff5a00be53ce8f4df5e947ff063c
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 15 12:30:04 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Dec 15 12:50:17 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98e9e54d

dev-haskell/tasty: tweak against unbounded-delays-0.1.1.0

The patch fixes the following build failure:

```
Test/Tasty/Run.hs:80:6: error:
    Ambiguous occurrence ‘Timeout’
    It could refer to either ‘Control.Concurrent.Timeout.Timeout’,
                             imported from ‘Control.Concurrent.Timeout’ at Test/Tasty/Run.hs:18:1-33
                          or ‘Test.Tasty.Options.Core.Timeout’,
                             imported from ‘Test.Tasty.Options.Core’ at Test/Tasty/Run.hs:29:1-30
                             (and originally defined
                                at Test/Tasty/Options/Core.hs:(54,1)-(60,27))
```

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/702906
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 .../files/tasty-0.11.0.4-unbounded-delays.patch    | 26 ++++++++++++++++++++++
 dev-haskell/tasty/tasty-0.11.0.4.ebuild            |  2 ++
 2 files changed, 28 insertions(+)

diff --git a/dev-haskell/tasty/files/tasty-0.11.0.4-unbounded-delays.patch b/dev-haskell/tasty/files/tasty-0.11.0.4-unbounded-delays.patch
new file mode 100644
index 00000000000..ad265fdff29
--- /dev/null
+++ b/dev-haskell/tasty/files/tasty-0.11.0.4-unbounded-delays.patch
@@ -0,0 +1,26 @@
+https://bugs.gentoo.org/702906
+
+From 74e87fff6a4a830dc64d59f4baa1a5f6759c007c Mon Sep 17 00:00:00 2001
+From: Roman Cheplyaka <roma@ro-che.info>
+Date: Fri, 5 May 2017 08:54:28 +0300
+Subject: [PATCH] Fix compatibility with the latest unbounded-delays
+
+Fixes #166
+---
+ core/Test/Tasty/Run.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/Test/Tasty/Run.hs
++++ b/Test/Tasty/Run.hs
+@@ -15,7 +15,7 @@ import Control.Monad.State
+ import Control.Monad.Writer
+ import Control.Monad.Reader
+ import Control.Concurrent.STM
+-import Control.Concurrent.Timeout
++import Control.Concurrent.Timeout (timeout)
+ import Control.Concurrent.Async
+ import Control.Exception as E
+ import Control.Applicative
+-- 
+2.24.1
+

diff --git a/dev-haskell/tasty/tasty-0.11.0.4.ebuild b/dev-haskell/tasty/tasty-0.11.0.4.ebuild
index 9c138e80dd2..4de53058744 100644
--- a/dev-haskell/tasty/tasty-0.11.0.4.ebuild
+++ b/dev-haskell/tasty/tasty-0.11.0.4.ebuild
@@ -17,6 +17,8 @@ SLOT="0/${PV}"
 KEYWORDS="amd64 x86"
 IUSE=""
 
+PATCHES=("${FILESDIR}"/${P}-unbounded-delays.patch)
+
 RDEPEND=">=dev-haskell/ansi-terminal-0.6.2:=[profile?]
 	>=dev-haskell/async-2.0:=[profile?]
 	>=dev-haskell/clock-0.4.4.0:=[profile?]


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-15 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-15 12:50 [gentoo-commits] repo/gentoo:master commit in: dev-haskell/tasty/files/, dev-haskell/tasty/ Sergei Trofimovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox