Disable a warning produced with OCaml 4.04.

This commit is contained in:
Richard W.M. Jones 2016-11-04 16:50:26 +00:00
parent 8221055bd2
commit f405b508d2
2 changed files with 18 additions and 1 deletions

View File

@ -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@

View File

@ -2,7 +2,7 @@
Name: ocaml-gettext Name: ocaml-gettext
Version: 0.3.5 Version: 0.3.5
Release: 8%{?dist} Release: 9%{?dist}
Summary: OCaml library for i18n Summary: OCaml library for i18n
License: LGPLv2+ with exceptions 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 Source0: https://forge.ocamlcore.org/frs/download.php/1433/%{name}-%{version}.tar.gz
Patch1: ocaml-gettext-0.3.4-use-ocamlopt-g.patch 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 >= 4.00.1
BuildRequires: ocaml-findlib-devel >= 1.3.3-3 BuildRequires: ocaml-findlib-devel >= 1.3.3-3
@ -89,6 +91,7 @@ signature files for developing applications that use
%setup -q %setup -q
%patch1 -p1 %patch1 -p1
%patch2 -p1
%build %build
@ -199,6 +202,9 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
%changelog %changelog
* Fri Nov 04 2016 Richard W.M. Jones <rjones@redhat.com> - 0.3.5-9
- Disable a warning produced with OCaml 4.04.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-8 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild