From 7394c6aeaf4079d64c15c807150da092dbf439e1 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Apr 22 2020 11:34:41 +0000 Subject: Temporary workaround for https://github.com/ocsigen/tyxml/issues/266 --- diff --git a/ocaml-tyxml.spec b/ocaml-tyxml.spec index 57f133f..52ec758 100644 --- a/ocaml-tyxml.spec +++ b/ocaml-tyxml.spec @@ -13,6 +13,10 @@ License: LGPLv2 with exceptions URL: https://ocsigen.org/tyxml/ Source0: https://github.com/ocsigen/tyxml/releases/download/%{version}/%{srcname}-%{version}.tbz +# Temporary workaround for +# https://github.com/ocsigen/tyxml/issues/266 +Patch1: tyxml-4.3.0-ocaml-4.11-ignore-deprecated.patch + BuildRequires: ocaml >= 4.02 BuildRequires: ocaml-alcotest-devel BuildRequires: ocaml-astring-devel @@ -80,7 +84,7 @@ The %{name}-ppx-devel package contains libraries and signature files for developing applications that use %{name}-ppx. %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 # Fix typo in 4.3.0; fixed upstream, so remove this when updating sed -i 's/onmousdown/onmousedown/' lib/svg_f.ml diff --git a/tyxml-4.3.0-ocaml-4.11-ignore-deprecated.patch b/tyxml-4.3.0-ocaml-4.11-ignore-deprecated.patch new file mode 100644 index 0000000..a3b38ae --- /dev/null +++ b/tyxml-4.3.0-ocaml-4.11-ignore-deprecated.patch @@ -0,0 +1,10 @@ +--- tyxml-4.3.0.old/ppx/dune 2018-11-18 16:33:55.000000000 +0000 ++++ tyxml-4.3.0.new/ppx/dune 2020-04-22 12:31:39.835610341 +0100 +@@ -30,6 +30,6 @@ + -open Migrate_parsetree + -open Ast_405 + -open Ppx_tools_405 +- -w "-9" ++ -w "-3-9" + )) + )