diff --git a/ocaml.spec b/ocaml.spec index d49be6c..6307749 100644 --- a/ocaml.spec +++ b/ocaml.spec @@ -2,7 +2,7 @@ Name: ocaml Version: 3.11.1 -Release: 0.rc0.1%{?dist} +Release: 0.rc0.2%{?dist} Summary: Objective Caml compiler and programming environment @@ -24,6 +24,9 @@ Patch1: ocaml-user-cflags.patch # Support for PPC64 platform by David Woodhouse: Patch3: ocaml-3.11.0-ppc64.patch +# Backport ocamlbuild -where fix to 3.11.1+rc0. +Patch4: ocamlbuild_where.ml.diff + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel @@ -195,6 +198,7 @@ man pages and info files. %patch0 -p1 -b .rpath %patch1 -p1 -b .cflags %patch3 -p1 -b .ppc64 +%patch4 -p1 -b .ocamlbuild cp %{SOURCE2} refman.pdf @@ -435,6 +439,9 @@ fi %changelog +* Tue May 26 2009 Richard W.M. Jones - 3.11.1-0.rc0.2 +- Backport ocamlbuild -where fix. + * Fri May 22 2009 Richard W.M. Jones - 3.11.1-0.rc0.1 - 3.11.1 release candidate 0. diff --git a/ocamlbuild_where.ml.diff b/ocamlbuild_where.ml.diff new file mode 100644 index 0000000..f01babf --- /dev/null +++ b/ocamlbuild_where.ml.diff @@ -0,0 +1,12 @@ +--- ocaml/ocamlbuild/ocamlbuild_where.ml 2009/03/05 14:33:06 1.1.2.2 ++++ ocaml/ocamlbuild/ocamlbuild_where.ml 2009/05/24 09:11:39 1.1.2.3 +@@ -1,5 +1,7 @@ + let bindir = ref Ocamlbuild_Myocamlbuild_config.bindir;; + let libdir = ref begin +- try Filename.concat (Sys.getenv "OCAMLLIB") "ocamlbuild" +- with Not_found -> Ocamlbuild_Myocamlbuild_config.libdir ++ Filename.concat ++ (try Sys.getenv "OCAMLLIB" ++ with Not_found -> Ocamlbuild_Myocamlbuild_config.libdir) ++ "ocamlbuild" + end;;