From 2d6e35ec4d19d213216ddc2b3f1fb6cd62f92f5d Mon Sep 17 00:00:00 2001
From: Virgile Prevosto <virgile.prevosto@m4x.org>
Date: Fri, 16 Oct 2020 17:09:20 +0200
Subject: [PATCH] [opam] fix opam constraints wrt ocamlgraph

---
 opam/opam | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/opam/opam b/opam/opam
index d183cd513d3..8a26457240b 100644
--- a/opam/opam
+++ b/opam/opam
@@ -103,11 +103,12 @@ run-test: [
 
 depends: [
   "ocaml" { >= "4.08.1" }
-  "ocamlgraph" { >= "1.8.8" & < "1.9~" }
+  "ocamlgraph" { >= "1.8.8" }
   "ocamlfind" # needed beyond build stage, used by -load-module
   "zarith"
   "conf-autoconf" { build }
-  ( ( "lablgtk" { >= "2.18.8" } & "conf-gnomecanvas" & "conf-gtksourceview" )
+  ( ( "lablgtk" { >= "2.18.8" } & "conf-gnomecanvas" & "conf-gtksourceview"
+      & ("ocamlgraph" { < "2.0" } | "ocamlgraph_gtk" ))
     | ( "lablgtk3" { >= "3.1.0" & os!="macos" }
         & "lablgtk3-sourceview3" & "conf-gtksourceview3" ) )
   ( "alt-ergo-free" | "alt-ergo" )
-- 
GitLab