From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-haskell/lvmlib/files/, dev-haskell/lvmlib/
Date: Sat, 24 Oct 2020 10:09:31 +0000 (UTC) [thread overview]
Message-ID: <1603534167.41c89ff6fe6bd28aef1a9d5e19a88962a750f1d7.slyfox@gentoo> (raw)
commit: 41c89ff6fe6bd28aef1a9d5e19a88962a750f1d7
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 24 10:08:57 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Oct 24 10:09:27 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41c89ff6
dev-haskell/lvmlib: tweak for ghc-8.8
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
dev-haskell/lvmlib/files/lvmlib-1.1-ghc-8.8.patch | 15 +++++++++++++++
dev-haskell/lvmlib/files/lvmlib-1.1-ghc84.patch | 14 ++++++++++++++
dev-haskell/lvmlib/lvmlib-1.1.ebuild | 12 +++++++-----
3 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/dev-haskell/lvmlib/files/lvmlib-1.1-ghc-8.8.patch b/dev-haskell/lvmlib/files/lvmlib-1.1-ghc-8.8.patch
new file mode 100644
index 00000000000..36d680794f0
--- /dev/null
+++ b/dev-haskell/lvmlib/files/lvmlib-1.1-ghc-8.8.patch
@@ -0,0 +1,15 @@
+--- a/Lvm/Common/IdMap.hs
++++ b/Lvm/Common/IdMap.hs
+@@ -121,10 +121,10 @@ unionMaps :: [IdMap a] -> IdMap a
+ unionMaps = foldr unionMap emptyMap
+
+ foldMapWithId :: (Id -> a -> b -> b) -> b -> IdMap a -> b
+-foldMapWithId f z (IdMap m) = IntMap.foldWithKey (f . idFromInt) z m
++foldMapWithId f z (IdMap m) = IntMap.foldrWithKey (f . idFromInt) z m
+
+ foldMap :: (a -> b -> b) -> b -> IdMap a -> b
+-foldMap f z (IdMap m) = IntMap.fold f z m
++foldMap f z (IdMap m) = IntMap.foldr f z m
+
+ sizeMap :: IdMap a -> Int
+ sizeMap (IdMap m) = IntMap.size m
diff --git a/dev-haskell/lvmlib/files/lvmlib-1.1-ghc84.patch b/dev-haskell/lvmlib/files/lvmlib-1.1-ghc84.patch
new file mode 100644
index 00000000000..8f9e85402f9
--- /dev/null
+++ b/dev-haskell/lvmlib/files/lvmlib-1.1-ghc84.patch
@@ -0,0 +1,14 @@
+--- a/Lvm/Common/Byte.hs
++++ b/Lvm/Common/Byte.hs
+@@ -19,2 +19,3 @@ import System.Exit
+ import System.IO
++import qualified Data.Semigroup as S
+
+@@ -68,2 +69,7 @@ max32 = 2^(32::Int) -1 -- Bastiaan (Todo: check)
+
++instance S.Semigroup Bytes where
++ (<>) bs Nil = bs
++ (<>) Nil cs = cs
++ (<>) bs cs = Cat bs cs
++
+ instance Monoid Bytes where
diff --git a/dev-haskell/lvmlib/lvmlib-1.1.ebuild b/dev-haskell/lvmlib/lvmlib-1.1.ebuild
index 9512fb153ec..7184d226bf0 100644
--- a/dev-haskell/lvmlib/lvmlib-1.1.ebuild
+++ b/dev-haskell/lvmlib/lvmlib-1.1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
# ebuild generated by hackport 0.4.4.9999
@@ -25,6 +25,8 @@ DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.10.1.0
"
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-1.1-ghc-7.10.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1-ghc-7.10.patch
+ "${FILESDIR}"/${PN}-1.1-ghc84.patch
+ "${FILESDIR}"/${PN}-1.1-ghc-8.8.patch
+)
reply other threads:[~2020-10-24 10:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1603534167.41c89ff6fe6bd28aef1a9d5e19a88962a750f1d7.slyfox@gentoo \
--to=slyfox@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox