Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Overlay
Commits
811a1f64
Commit
811a1f64
authored
Feb 21, 2021
by
James T. Lee
Browse files
haskell: Patch memory for GHC 9
parent
8755efb0
Pipeline
#514
passed with stage
in 20 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
0 deletions
+65
-0
dev-haskell/memory/Manifest
dev-haskell/memory/Manifest
+3
-0
dev-haskell/memory/files/memory-0.15-ghc-9-compatibility.patch
...askell/memory/files/memory-0.15-ghc-9-compatibility.patch
+22
-0
dev-haskell/memory/memory-0.15.0.ebuild
dev-haskell/memory/memory-0.15.0.ebuild
+40
-0
No files found.
dev-haskell/memory/Manifest
0 → 100644
View file @
811a1f64
AUX memory-0.15-ghc-9-compatibility.patch 1024 BLAKE2B 5f767cf821443cb88d4934033120f79fd24b632259f266f3759d6aedbe4bc9a7beb789ebeace3999fcf46080e225da942345beb3ed4c69e27538f281bd5034e8 SHA512 4bf2f3b27f4fccee9e646001e42a3b0e509765d56711a3f01319420896a1c9f24298eafc4527ab17984c4bb3a5571eaf9e599ab61c2d07be04da92b46f548ca7
DIST memory-0.15.0.tar.gz 42299 BLAKE2B fd4cebe132ebc824e88907325d6106ab62d01942f5055481f0ff85248ba1a84211e768e49409b02f45ff224a4149338abb771b1dcad38c31175c340e35063fad SHA512 49aabf5fdaddae597df6d8f30a3e07c4d6d70fcc7b9146452a4ad4e81858786041676bc780e2b048fd683cc7c0d799d4579596c14fae940ea57954e9a7ee9129
EBUILD memory-0.15.0.ebuild 969 BLAKE2B a7dd75d1b28f31f7078b940887cbaa5bfa118fc6757801b183c7cacea3be0cfa3fdcdfe424d8107cb00a0a8a063c1a3aec2abcd4fa2909135c08676afc1538b4 SHA512 68c12d44b21f745cb811de1b8301ca326207d61794f376bacbd320a6642c5086e708b2fca887fc91947791560981ff419494b68f25d9eda313ff6eaa84370135
dev-haskell/memory/files/memory-0.15-ghc-9-compatibility.patch
0 → 100644
View file @
811a1f64
diff -ur memory-0.15.0.orig/Data/ByteArray/Bytes.hs memory-0.15.0/Data/ByteArray/Bytes.hs
--- memory-0.15.0.orig/Data/ByteArray/Bytes.hs 2021-02-21 16:12:04.252579255 -0500
+++ memory-0.15.0/Data/ByteArray/Bytes.hs 2021-02-21 16:13:50.426961822 -0500
@@ -19,6 +19,7 @@
import GHC.Types
import GHC.Prim
import GHC.Ptr
+import GHC.Exts (unsafeCoerce#)
#if MIN_VERSION_base(4,9,0)
import Data.Semigroup
import Data.Foldable (toList)
diff -ur memory-0.15.0.orig/Data/ByteArray/ScrubbedBytes.hs memory-0.15.0/Data/ByteArray/ScrubbedBytes.hs
--- memory-0.15.0.orig/Data/ByteArray/ScrubbedBytes.hs 2021-02-21 16:12:04.252579255 -0500
+++ memory-0.15.0/Data/ByteArray/ScrubbedBytes.hs 2021-02-21 16:13:46.402985243 -0500
@@ -17,6 +17,7 @@
import GHC.Types
import GHC.Prim
import GHC.Ptr
+import GHC.Exts (unsafeCoerce#)
#if MIN_VERSION_base(4,9,0)
import Data.Semigroup
import Data.Foldable (toList)
dev-haskell/memory/memory-0.15.0.ebuild
0 → 100644
View file @
811a1f64
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI
=
7
# ebuild generated by hackport 0.6.1.9999
#hackport: flags: +support_foundation,+support_deepseq,+support_bytestring,+support_basement
CABAL_FEATURES
=
"lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
DESCRIPTION
=
"memory and related abstraction stuff"
HOMEPAGE
=
"https://github.com/vincenthz/hs-memory"
SRC_URI
=
"https://hackage.haskell.org/package/
${
P
}
/
${
P
}
.tar.gz"
LICENSE
=
"BSD"
SLOT
=
"0/
${
PV
}
"
KEYWORDS
=
"~amd64 ~x86"
IUSE
=
""
RDEPEND
=
">=dev-haskell/basement-0.0.7:=[profile?]
>=dev-lang/ghc-8.0.1:=
"
DEPEND
=
"
${
RDEPEND
}
>=dev-haskell/cabal-1.24.0.0
test? ( dev-haskell/foundation )
"
src_prepare
()
{
default
eapply
"
${
FILESDIR
}
/
${
P
}
-ghc-9-compatibility.patch"
}
src_configure
()
{
haskell-cabal_src_configure
\
--flag
=
support_basement
\
--flag
=
support_bytestring
\
--flag
=
support_deepseq
\
--flag
=
support_foundation
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment