commit cbc472db3ecf6ee916a298cd3b3d17780f2e1020 Author: Juergen Daubert <jue@jue.li> Date: Sat May 21 13:41:10 2016 +0200 unison: fix build with ocaml 4.03 diff --git a/unison/.md5sum b/unison/.md5sum index 7e8930a..b6c7bbb 100644 --- a/unison/.md5sum +++ b/unison/.md5sum @@ -1 +1,2 @@ +7cdb48c81f06304a0fd6f6c6479d90ce ocaml-4.03.patch 91ff2ef4141aede9af719fdd5e848bcb unison-2.48.3.tar.gz diff --git a/unison/Pkgfile b/unison/Pkgfile index 1c7f0c8..7e7f100 100644 --- a/unison/Pkgfile +++ b/unison/Pkgfile @@ -6,11 +6,13 @@ name=unison version=2.48.3 -release=1 -source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/$name-$version/$...) +release=2 +source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/$name-$version/$... + ocaml-4.03.patch) build() { cd $name-$version + patch -p2 -i $SRC/ocaml-4.03.patch unset CFLAGS CXXFLAGS make -j1 UISTYLE=text THREADS=true NATIVE=true unison unison-fsmonitor install -d $PKG/usr/bin diff --git a/unison/ocaml-4.03.patch b/unison/ocaml-4.03.patch new file mode 100644 index 0000000..a15ca0e --- /dev/null +++ b/unison/ocaml-4.03.patch @@ -0,0 +1,20 @@ +commit 4473822b5aa6de3e849ca6c958b365a71edbca4f +Author: Benjamin Pierce <bcpierce00@gmail.com> +Date: Sat May 14 11:28:49 2016 -0400 + + Fix build for OCaml 4.03.0 + +diff --git a/src/system/system_generic.ml b/src/system/system_generic.ml +index 22b5b6c..b9a4cef 100755 +--- a/src/system/system_generic.ml ++++ b/src/system/system_generic.ml +@@ -57,7 +57,8 @@ let opendir f = + let readdir = Unix.readdir + let closedir = Unix.closedir + let readlink = Unix.readlink +-let symlink = Unix.symlink ++(* BCP 5/16: Eta-expand for backward compatibility with OCaml <=4.02 *) ++let symlink s1 s2 = Unix.symlink s1 s2 + let chdir = Sys.chdir + let getcwd = Sys.getcwd +