diff --git a/lablgtk-2.18.8-ocaml410.patch b/lablgtk-2.18.8-ocaml410.patch new file mode 100644 index 0000000..f4b538d --- /dev/null +++ b/lablgtk-2.18.8-ocaml410.patch @@ -0,0 +1,12 @@ +diff -ur lablgtk-2.18.8.old/src/wrappers.h lablgtk-2.18.8.fix/src/wrappers.h +--- lablgtk-2.18.8.old/src/wrappers.h 2019-04-25 08:50:43.000000000 +0100 ++++ lablgtk-2.18.8.fix/src/wrappers.h 2020-01-19 12:30:04.618485205 +0000 +@@ -33,7 +33,7 @@ + #include + #include + #include +-CAMLextern char *young_start, *young_end; /* from minor_gc.h */ ++//CAMLextern char *young_start, *young_end; /* from minor_gc.h */ + + CAMLexport value copy_memblock_indirected (void *src, asize_t size); + value alloc_memblock_indirected (asize_t size); diff --git a/ocaml-lablgtk.spec b/ocaml-lablgtk.spec index 99797a6..a76b75c 100644 --- a/ocaml-lablgtk.spec +++ b/ocaml-lablgtk.spec @@ -11,6 +11,9 @@ License: LGPLv2 with exceptions URL: http://lablgtk.forge.ocamlcore.org/ Source: https://github.com/garrigue/lablgtk/releases/download/lablgtk2188/lablgtk-%{version}.tar.gz +# Fix for OCaml 4.10. +Patch1: lablgtk-2.18.8-ocaml410.patch + Obsoletes: lablgtk <= 2.6.0-7 Provides: lablgtk = 2.6.0-7 @@ -52,6 +55,7 @@ developing applications that use %{name}. %prep %setup -q -n lablgtk-%{version} +%patch1 -p1 %build