summaryrefslogtreecommitdiff
path: root/dev-haskell/abstract-deque
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
commit6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch)
tree25413d1cb3a0cbfe36029db32398c0f333609215 /dev-haskell/abstract-deque
parent9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff)
gentoo resync : 14.12.2020
Diffstat (limited to 'dev-haskell/abstract-deque')
-rw-r--r--dev-haskell/abstract-deque/Manifest3
-rw-r--r--dev-haskell/abstract-deque/abstract-deque-0.3.ebuild2
-rw-r--r--dev-haskell/abstract-deque/files/abstract-deque-0.3-atomic-primops.patch12
3 files changed, 16 insertions, 1 deletions
diff --git a/dev-haskell/abstract-deque/Manifest b/dev-haskell/abstract-deque/Manifest
index a1955314b415..7e71cdaa027e 100644
--- a/dev-haskell/abstract-deque/Manifest
+++ b/dev-haskell/abstract-deque/Manifest
@@ -1,3 +1,4 @@
+AUX abstract-deque-0.3-atomic-primops.patch 412 BLAKE2B b59de5a3ff423ffd1cf5e56f6c0cbbd32fd295aa9d069707d7be50cd5ef8e3d9ae9af8a135fb010a0579e8083185f3ce99cb0621aa9f813f59caab438307149a SHA512 f5efd76b7bdd7c26ce8610d6a4403e8166d6dcea4ce044cbf21aea11c500b4be1e12f268ea0cf34b3c83f79905c33f34dffff420ff98280a4560a386eeb950df
DIST abstract-deque-0.3.tar.gz 7219 BLAKE2B 46bb9997b6ff7dc111bafb650feaf35fa2955d2b2db34dbb964c982a042967bec5994b43e333b2b248717f6e486347a202b3abc2c688e305e9fa683b3ef59df6 SHA512 9293a366918f54458ffe13f6737bab2bee961b730732eff563d900b451bf5f7dde30276c9406bfc5c0ea64104afb70db3588b13d478bf9c60842dad906195f7a
-EBUILD abstract-deque-0.3.ebuild 746 BLAKE2B 2fea0f84e767a9ab5acb1e8816fa8ce775bb626f9e5e58b8690d1e44b94b485af181153768c7545dc832ea4308c0a302bacd5326efe8fbf85220473bb1a2ce90 SHA512 c7ff6ee9c5b9bb644ea8081f729dfc5ce7ea193ad19c412a94c7d168ac60b72b9dac1ec495175b6e9db650a713eb785a0cc1b23759e5aaf733f1499739579055
+EBUILD abstract-deque-0.3.ebuild 797 BLAKE2B 8fad45c254e3a8a308a035ee0d15cb8d70a25b8573557de66551d062dfcee3ce7c439bab05158717380683bc82c0a65dc75e6f4261220a75b84f62388757f1ea SHA512 f77a67a003075dd2fb8e187431d5a3b4e1f51b2aa8905d67880ad3eabd9cc5af11fdc5e2e85174621bdec37738c8829b79b236be0fd0d835f925cb15a6daa2de
MISC metadata.xml 1178 BLAKE2B 0e3b3bc8f5bd9fc0b9027f95f6ebfa7fa942ee1b81c229cc72d20a2fb0bc8d7c92bf486b472ef3159443fc12bfed64200e00d2c42bbc2090b9c7ecd1f67b4a87 SHA512 0cc30ac24a6ea65a0b9a66910d5f75ecc91a0daeb4f029eb2a6ff835788fac38aa4a286828ad0575cee2105df42ec19d72e5ce1553ef88963986e390f8d6ebfc
diff --git a/dev-haskell/abstract-deque/abstract-deque-0.3.ebuild b/dev-haskell/abstract-deque/abstract-deque-0.3.ebuild
index 540860f98763..74ca8d523ded 100644
--- a/dev-haskell/abstract-deque/abstract-deque-0.3.ebuild
+++ b/dev-haskell/abstract-deque/abstract-deque-0.3.ebuild
@@ -25,6 +25,8 @@ DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.8
"
+PATCHES=("${FILESDIR}"/${P}-atomic-primops.patch)
+
src_configure() {
haskell-cabal_src_configure \
$(cabal_flag usecas usecas)
diff --git a/dev-haskell/abstract-deque/files/abstract-deque-0.3-atomic-primops.patch b/dev-haskell/abstract-deque/files/abstract-deque-0.3-atomic-primops.patch
new file mode 100644
index 000000000000..83d408fc7fe4
--- /dev/null
+++ b/dev-haskell/abstract-deque/files/abstract-deque-0.3-atomic-primops.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/750206
+--- a/Data/Concurrent/Deque/Reference.hs
++++ b/Data/Concurrent/Deque/Reference.hs
+@@ -27,7 +27,7 @@ import Data.IORef
+
+ #ifdef USE_CAS
+ #warning "abstract-deque: reference implementation using CAS..."
+-import Data.CAS (atomicModifyIORefCAS)
++import Data.Atomics (atomicModifyIORefCAS)
+ -- Toggle these and compare performance:
+ modify = atomicModifyIORefCAS
+ _is_using_CAS = True