wyrd/ocaml problem (was: Re: Mass rebuild for Fedora 18 Complete)
Michael Schwendt
mschwendt at gmail.com
Mon Jul 23 18:03:42 UTC 2012
On Mon, 23 Jul 2012 19:01:48 +0200, Till Maas wrote:
> Hi,
>
> can someone tell me what is wrong with wyrd?
>
> build.log says (http://kojipkgs.fedoraproject.org//work/tasks/8809/4318809/build.log):
> | ocaml version is 4.00.0+beta2
> | ocaml library path is /usr/lib/ocaml
> | configure: error: Wyrd requires OCaml version 3.08 or greater.
>
>
> The configure scripts uses the following code:
>
> 1781 # we extract Ocaml version number and library path
> 1782 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
> 1783 echo "ocaml version is $OCAMLVERSION"
> 1784 OCAMLLIB=`$OCAMLC -v | tail -n 1 | cut -f 4 -d " "`
> 1785 echo "ocaml library path is $OCAMLLIB"
> 1786
> 1787
> 1788 # check for sufficient OCAMLVERSION
> 1789 OCAMLMAJORVERSION=`echo $OCAMLVERSION | cut -d '.' -f 1`
> 1790 OCAMLMINORVERSION=`echo $OCAMLVERSION | cut -d '.' -f 2`
> 1791 if test $OCAMLMAJORVERSION -lt 3 ; then
> 1792 as_fn_error "Wyrd requires OCaml version 3.08 or greater."
> "$LINENO" 5
> 1793 else
> 1794 if test $OCAMLMINORVERSION -lt 8 ; then
> 1795 as_fn_error "Wyrd requires OCaml version 3.08 or greater."
> "$LINENO" 5
> 1796 fi
> 1797 fi
>
> As far as I can see it should test in line 1791 whether 4 is less than
> 3, which is not the case and therefore it should not fail.
>
> If you know how to fix this, you are welcome to fix it directly in the
> git repo. :-)
Hint: Focus on line 1794.
--
Fedora release 17 (Beefy Miracle) - Linux 3.4.6-2.fc17.x86_64
loadavg: 0.07 0.15 0.11
More information about the devel
mailing list