commit:     5763e2211bebc3a0a48aa6bb6d8c8773b906fc18
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 26 14:02:21 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Dec 26 15:11:46 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5763e221

dev-ml/ocaml-containers: fix build with sequence 0.9

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-ml/ocaml-containers/files/seq.patch              | 13 +++++++++++++
 dev-ml/ocaml-containers/ocaml-containers-0.22.ebuild |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/dev-ml/ocaml-containers/files/seq.patch 
b/dev-ml/ocaml-containers/files/seq.patch
new file mode 100644
index 00000000..2ba116e
--- /dev/null
+++ b/dev-ml/ocaml-containers/files/seq.patch
@@ -0,0 +1,13 @@
+Index: ocaml-containers-0.22/src/advanced/CCLinq.ml
+===================================================================
+--- ocaml-containers-0.22.orig/src/advanced/CCLinq.ml
++++ ocaml-containers-0.22/src/advanced/CCLinq.ml
+@@ -212,7 +212,7 @@ module PMap = struct
+     seq
+ 
+   let flatten_l m =
+-    let seq = Sequence.flatMap
++    let seq = Sequence.flat_map
+         (fun (k,v) -> Sequence.map (fun v' -> k,v') (Sequence.of_list v))
+         m.to_seq
+     in

diff --git a/dev-ml/ocaml-containers/ocaml-containers-0.22.ebuild 
b/dev-ml/ocaml-containers/ocaml-containers-0.22.ebuild
index 27d31ce..29bae80 100644
--- a/dev-ml/ocaml-containers/ocaml-containers-0.22.ebuild
+++ b/dev-ml/ocaml-containers/ocaml-containers-0.22.ebuild
@@ -20,11 +20,13 @@ IUSE="test"
 
 RDEPEND="
        dev-ml/result:=
-       dev-ml/sequence:=
+       >=dev-ml/sequence-0.9:=
 "
 DEPEND="${RDEPEND} dev-ml/cppo
        test? ( dev-ml/iTeML )"
 
+PATCHES=( "${FILESDIR}/seq.patch" )
+
 src_configure() {
        oasis_configure_opts="
                --enable-unix

Reply via email to