diff options
author | jaapb <jaapb@pkgsrc.org> | 2019-03-21 10:02:58 +0000 |
---|---|---|
committer | jaapb <jaapb@pkgsrc.org> | 2019-03-21 10:02:58 +0000 |
commit | fea1e36f51808b590a47f0f4fe1f9ccf06414706 (patch) | |
tree | cf194a90bdb65679f99e476fb66035e1cc8ed317 | |
parent | cc5347cc3536df6a722663d1ac1c6d5532ae19b7 (diff) | |
download | pkgsrc-fea1e36f51808b590a47f0f4fe1f9ccf06414706.tar.gz |
Added patches to net/unison2.51 for compilation with ocaml 4.08
-rw-r--r-- | net/unison2.51/Makefile | 4 | ||||
-rw-r--r-- | net/unison2.51/distinfo | 5 | ||||
-rw-r--r-- | net/unison2.51/patches/patch-src_files.ml | 14 | ||||
-rw-r--r-- | net/unison2.51/patches/patch-src_recon.ml | 16 | ||||
-rw-r--r-- | net/unison2.51/patches/patch-src_system_system__generic.ml | 14 |
5 files changed, 50 insertions, 3 deletions
diff --git a/net/unison2.51/Makefile b/net/unison2.51/Makefile index ca4d61a4a8f..3ca1ce93ddc 100644 --- a/net/unison2.51/Makefile +++ b/net/unison2.51/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.9 2018/12/09 18:52:42 adam Exp $ +# $NetBSD: Makefile,v 1.10 2019/03/21 10:02:58 jaapb Exp $ DISTNAME= unison-2.51.2 -PKGREVISION= 8 +PKGREVISION= 9 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_GITHUB:=bcpierce00/} GITHUB_TAG= v${PKGVERSION_NOREV} diff --git a/net/unison2.51/distinfo b/net/unison2.51/distinfo index 2c9950e0097..32308ffde07 100644 --- a/net/unison2.51/distinfo +++ b/net/unison2.51/distinfo @@ -1,8 +1,11 @@ -$NetBSD: distinfo,v 1.4 2018/04/30 12:22:31 wiz Exp $ +$NetBSD: distinfo,v 1.5 2019/03/21 10:02:58 jaapb Exp $ SHA1 (unison-2.51.2.tar.gz) = 63e3b526254ab6356a3fabf74be533982c2962c2 RMD160 (unison-2.51.2.tar.gz) = d73c88be2a5c3c677939f4adede4c0f772ecff33 SHA512 (unison-2.51.2.tar.gz) = 4ec4a1603ce5e561084dcd59621a0cc72c1ea40e3e23e36408c436c51bde3eb82774f671aba85c016f87982417800e8a27b978be59c92aa62ce9e4be1a072011 Size (unison-2.51.2.tar.gz) = 1398790 bytes SHA1 (patch-src_Makefile) = 3172ed284bea2d21ccb475439c53ce65a45b79f6 +SHA1 (patch-src_files.ml) = 3a15b35f6a5e5242e4c3e198dabc38ca89bbdbe0 +SHA1 (patch-src_recon.ml) = 8aa1b2a4109fe183eedf209a91efc3f2164a3b3a +SHA1 (patch-src_system_system__generic.ml) = e3c9ac74b266331d7c253b9e8ce4e0046699c6bd SHA1 (patch-src_uigtk2.ml) = 87a9c1e678f4056c0a32bfb3c3b7320652a171a2 diff --git a/net/unison2.51/patches/patch-src_files.ml b/net/unison2.51/patches/patch-src_files.ml new file mode 100644 index 00000000000..57f469a2cf3 --- /dev/null +++ b/net/unison2.51/patches/patch-src_files.ml @@ -0,0 +1,14 @@ +$NetBSD: patch-src_files.ml,v 1.1 2019/03/21 10:02:58 jaapb Exp $ + +Replace deprecated sort function +--- src/files.ml.orig 2018-01-27 21:12:13.000000000 +0000 ++++ src/files.ml +@@ -734,7 +734,7 @@ let get_files_in_directory dir = + with End_of_file -> + dirh.System.closedir () + end; +- Sort.list (<) !files ++ List.sort String.compare !files + + let ls dir pattern = + Util.convertUnixErrorsToTransient diff --git a/net/unison2.51/patches/patch-src_recon.ml b/net/unison2.51/patches/patch-src_recon.ml new file mode 100644 index 00000000000..22a473f7c3f --- /dev/null +++ b/net/unison2.51/patches/patch-src_recon.ml @@ -0,0 +1,16 @@ +$NetBSD: patch-src_recon.ml,v 1.1 2019/03/21 10:02:58 jaapb Exp $ + +Replace deprecated sort function +--- src/recon.ml.orig 2018-01-27 21:12:13.000000000 +0000 ++++ src/recon.ml +@@ -661,8 +661,8 @@ let rec reconcile + + (* Sorts the paths so that they will be displayed in order *) + let sortPaths pathUpdatesList = +- Sort.list +- (fun (p1, _) (p2, _) -> Path.compare p1 p2 <= 0) ++ List.sort ++ Path.compare + pathUpdatesList + + let rec enterPath p1 p2 t = diff --git a/net/unison2.51/patches/patch-src_system_system__generic.ml b/net/unison2.51/patches/patch-src_system_system__generic.ml new file mode 100644 index 00000000000..6135d10884b --- /dev/null +++ b/net/unison2.51/patches/patch-src_system_system__generic.ml @@ -0,0 +1,14 @@ +$NetBSD: patch-src_system_system__generic.ml,v 1.3 2019/03/21 10:02:58 jaapb Exp $ + +Needed for compatibility with OCaml 4.08 +--- src/system/system_generic.ml.orig 2018-01-27 21:12:13.000000000 +0000 ++++ src/system/system_generic.ml +@@ -47,7 +47,7 @@ let open_out_gen = open_out_gen + let chmod = Unix.chmod + let chown = Unix.chown + let utimes = Unix.utimes +-let link = Unix.link ++let link s d = Unix.link s d + let openfile = Unix.openfile + let opendir f = + let h = Unix.opendir f in |