From f405b508d2cffe720bd6217e317de423a0fccfae Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 4 Nov 2016 16:50:26 +0000 Subject: [PATCH] Disable a warning produced with OCaml 4.04. --- ocaml-gettext-0.3.5-disable-warning-31.patch | 11 +++++++++++ ocaml-gettext.spec | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ocaml-gettext-0.3.5-disable-warning-31.patch diff --git a/ocaml-gettext-0.3.5-disable-warning-31.patch b/ocaml-gettext-0.3.5-disable-warning-31.patch new file mode 100644 index 0000000..7b07266 --- /dev/null +++ b/ocaml-gettext-0.3.5-disable-warning-31.patch @@ -0,0 +1,11 @@ +--- ocaml-gettext-0.3.5.old/ConfMakefile.in 2014-08-04 22:33:52.000000000 +0100 ++++ ocaml-gettext-0.3.5/ConfMakefile.in 2016-11-04 16:47:56.012135630 +0000 +@@ -37,7 +37,7 @@ + OCAMLFIND_COMMANDS = "ocamlc=@OCAMLC@ \ + ocamlopt=@OCAMLOPT@ \ + ocamldep=@OCAMLDEP@" +-OCAMLC = @OCAMLFIND@ ocamlc ++OCAMLC = @OCAMLFIND@ ocamlc -w -31 + OCAMLOPT = @OCAMLFIND@ ocamlopt + OCAMLDEP = @OCAMLFIND@ ocamldep + OCAMLBEST = @OCAMLBEST@ diff --git a/ocaml-gettext.spec b/ocaml-gettext.spec index ba1ca94..e2855c8 100644 --- a/ocaml-gettext.spec +++ b/ocaml-gettext.spec @@ -2,7 +2,7 @@ Name: ocaml-gettext Version: 0.3.5 -Release: 8%{?dist} +Release: 9%{?dist} Summary: OCaml library for i18n License: LGPLv2+ with exceptions @@ -11,6 +11,8 @@ URL: http://forge.ocamlcore.org/projects/ocaml-gettext Source0: https://forge.ocamlcore.org/frs/download.php/1433/%{name}-%{version}.tar.gz Patch1: ocaml-gettext-0.3.4-use-ocamlopt-g.patch +# Disable warning 31, so we can compile (with warnings) on OCaml 4.04. +Patch2: ocaml-gettext-0.3.5-disable-warning-31.patch BuildRequires: ocaml >= 4.00.1 BuildRequires: ocaml-findlib-devel >= 1.3.3-3 @@ -89,6 +91,7 @@ signature files for developing applications that use %setup -q %patch1 -p1 +%patch2 -p1 %build @@ -199,6 +202,9 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so %changelog +* Fri Nov 04 2016 Richard W.M. Jones - 0.3.5-9 +- Disable a warning produced with OCaml 4.04. + * Thu Feb 04 2016 Fedora Release Engineering - 0.3.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild