summaryrefslogtreecommitdiff
path: root/net/unison
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-12-09 15:02:50 +0000
committerwiz <wiz@pkgsrc.org>2012-12-09 15:02:50 +0000
commit3bcf51767e5585b3440e7c66d16e85f37f9f7971 (patch)
tree8b37552d4f29ca15883876926e410eede026a18b /net/unison
parent3a2ea52a638dc3f4feb145b54495668da7085929 (diff)
downloadpkgsrc-3bcf51767e5585b3440e7c66d16e85f37f9f7971.tar.gz
Update to 2.40.102. Includes ocaml-4 compat patches (which were already
in pkgsrc). Added BelowPath patterns, that match a path as well as all paths below (convenient to use with nodeletion,update,creationpartial preferences) Added a fat preference that makes Unison use the right options when one of the replica is on a FAT filesystem. Allow prefer/force=newer even when not synchronizing modification times. (The reconciler will not be aware of the modification time of unchanged files, so the synchronization choices of Unison can be different from when times=true, but the behavior remains sane: changed files with the most recent modification time will be propagated.) Minor fixes and improvements: Compare filenames up to decomposition in case sensitive mode when one host is running MacOSX and the unicode preference is set to true. Rsync: somewhat faster compressor Make Unicode the default on all architectures (it was only the default when a Mac OS X or Windows machine was involved).
Diffstat (limited to 'net/unison')
-rw-r--r--net/unison/Makefile5
-rw-r--r--net/unison/distinfo19
-rw-r--r--net/unison/patches/patch-Makefile.OCaml12
-rw-r--r--net/unison/patches/patch-case.ml45
-rw-r--r--net/unison/patches/patch-fspath.ml14
-rw-r--r--net/unison/patches/patch-fspath.mli15
-rw-r--r--net/unison/patches/patch-path.ml20
-rw-r--r--net/unison/patches/patch-path.mli18
-rw-r--r--net/unison/patches/patch-props.ml27
-rw-r--r--net/unison/patches/patch-uutil.ml20
-rw-r--r--net/unison/patches/patch-uutil.mli18
11 files changed, 9 insertions, 204 deletions
diff --git a/net/unison/Makefile b/net/unison/Makefile
index bbb6e6656c9..164d26ab979 100644
--- a/net/unison/Makefile
+++ b/net/unison/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.64 2012/10/23 17:19:16 asau Exp $
+# $NetBSD: Makefile,v 1.65 2012/12/09 15:02:50 wiz Exp $
-DISTNAME= unison-2.40.63
-PKGREVISION= 17
+DISTNAME= unison-2.40.102
CATEGORIES= net
MASTER_SITES= http://www.seas.upenn.edu/~bcpierce/unison/download/releases/stable/
diff --git a/net/unison/distinfo b/net/unison/distinfo
index 3b1255f1972..8240b8b6d9f 100644
--- a/net/unison/distinfo
+++ b/net/unison/distinfo
@@ -1,16 +1,7 @@
-$NetBSD: distinfo,v 1.20 2012/10/13 09:05:11 wiz Exp $
+$NetBSD: distinfo,v 1.21 2012/12/09 15:02:50 wiz Exp $
-SHA1 (unison-2.40.63.tar.gz) = 645e70bc37a5d4e8e9ccb7bad065fc579b18cf75
-RMD160 (unison-2.40.63.tar.gz) = 5dede9ea2f1213d4a22ed1914da7bfb1921f9993
-Size (unison-2.40.63.tar.gz) = 2601791 bytes
-SHA1 (patch-Makefile.OCaml) = 0fa4cc6ecec2465bdf3f64db198a50ed015fd8be
+SHA1 (unison-2.40.102.tar.gz) = bf18f64fa30bd04234e864d42190294e0d9a2910
+RMD160 (unison-2.40.102.tar.gz) = 0231fd41895bde97ad4ae15bdc4994f9c9e27ad6
+Size (unison-2.40.102.tar.gz) = 2694761 bytes
+SHA1 (patch-Makefile.OCaml) = 2872f07e323f23375b0b7ea5ec17fe387fe22a0f
SHA1 (patch-aa) = dd1a001fb7071cd9141615b42a692e6d1d812081
-SHA1 (patch-case.ml) = 6ddf5d68f6c69fea73f870bfcef4ffc539478acd
-SHA1 (patch-fspath.ml) = ccd41590e93145cc61ca0bb1cc0a0ba6329927a4
-SHA1 (patch-fspath.mli) = 9c2532e002985f985ed904022e514a57a33666d5
-SHA1 (patch-path.ml) = a2554a58acfd148204744ea8831440f59a99be98
-SHA1 (patch-path.mli) = e288c1e7db23862fb7293b47ea6cb8806ca612a5
-SHA1 (patch-props.ml) = c829ccb24574be1aebc4bcf6f5ef4e5c136fa9c4
-SHA1 (patch-update.ml) = aef7b5ddab4ba36ed089f8a5b57b212e433f6b3c
-SHA1 (patch-uutil.ml) = 6b5efc5dc46abe8886029e900dca0b0237ef777d
-SHA1 (patch-uutil.mli) = cf1df58af75d47091d7d9950158c82980dedd1f2
diff --git a/net/unison/patches/patch-Makefile.OCaml b/net/unison/patches/patch-Makefile.OCaml
index 1aa8a1bd29b..fbc63923d18 100644
--- a/net/unison/patches/patch-Makefile.OCaml
+++ b/net/unison/patches/patch-Makefile.OCaml
@@ -1,6 +1,7 @@
-$NetBSD: patch-Makefile.OCaml,v 1.3 2012/10/13 09:05:11 wiz Exp $
+$NetBSD: patch-Makefile.OCaml,v 1.4 2012/12/09 15:02:51 wiz Exp $
Correct lablgtk paths for 2.16, and use ocamlopt.opt for compilation
+
--- Makefile.OCaml.orig 2011-04-16 20:35:38.000000000 +0000
+++ Makefile.OCaml
@@ -71,8 +71,8 @@ OCAMLLIBDIR=$(shell ocamlc -v | tail -1
@@ -14,15 +15,6 @@ Correct lablgtk paths for 2.16, and use ocamlopt.opt for compilation
##BCP [3/2007]: Removed temporarily, since the OSX UI is not working well
## at the moment and we don't want to confuse people by building it by default
ifeq ($(OSARCH),osx)
-@@ -217,7 +217,7 @@ OCAMLOBJS += \
- lwt/pqueue.cmo lwt/lwt.cmo lwt/lwt_util.cmo \
- lwt/$(SYSTEM)/lwt_unix_impl.cmo lwt/lwt_unix.cmo \
- \
-- case.cmo pred.cmo uutil.cmo \
-+ uutil.cmo case.cmo pred.cmo \
- fileutil.cmo name.cmo path.cmo fspath.cmo fs.cmo fingerprint.cmo \
- abort.cmo osx.cmo external.cmo \
- props.cmo fileinfo.cmo os.cmo lock.cmo clroot.cmo common.cmo \
@@ -285,14 +285,14 @@ endif
# Gtk GUI
diff --git a/net/unison/patches/patch-case.ml b/net/unison/patches/patch-case.ml
deleted file mode 100644
index b47117b31c4..00000000000
--- a/net/unison/patches/patch-case.ml
+++ /dev/null
@@ -1,45 +0,0 @@
-$NetBSD: patch-case.ml,v 1.1 2012/10/13 09:05:11 wiz Exp $
-
-r511 | vouillon | 2012-09-17 16:09:03 +0200 (Mon, 17 Sep 2012) | 3 lines
-
-* Use hash function from OCaml 3.x for comparing archives, even when
- compiled with OCaml 4.x
-
---- case.ml.orig 2010-04-15 17:29:31.000000000 +0000
-+++ case.ml
-@@ -140,7 +140,7 @@ let sensitiveOps = object
- method mode = Sensitive
- method modeDesc = "case sensitive"
- method compare s s' = compare (s : string) s'
-- method hash s = Hashtbl.hash s
-+ method hash s = Uutil.hash s
- method normalizePattern s = s
- method caseInsensitiveMatch = false
- method normalizeMatchedString s = s
-@@ -152,7 +152,7 @@ let insensitiveOps = object
- method mode = Insensitive
- method modeDesc = "Latin-1 case insensitive"
- method compare s s' = Util.nocase_cmp s s'
-- method hash s = Hashtbl.hash (String.lowercase s)
-+ method hash s = Uutil.hash (String.lowercase s)
- method normalizePattern s = s
- method caseInsensitiveMatch = true
- method normalizeMatchedString s = s
-@@ -164,7 +164,7 @@ let unicodeSensitiveOps = object
- method mode = UnicodeSensitive
- method modeDesc = "Unicode case sensitive"
- method compare s s' = Unicode.case_sensitive_compare s s'
-- method hash s = Hashtbl.hash (Unicode.decompose s)
-+ method hash s = Uutil.hash (Unicode.decompose s)
- method normalizePattern p = Unicode.decompose p
- method caseInsensitiveMatch = false
- method normalizeMatchedString s = Unicode.decompose s
-@@ -176,7 +176,7 @@ let unicodeInsensitiveOps = object
- method mode = UnicodeInsensitive
- method modeDesc = "Unicode case insensitive"
- method compare s s' = Unicode.case_insensitive_compare s s'
-- method hash s = Hashtbl.hash (Unicode.normalize s)
-+ method hash s = Uutil.hash (Unicode.normalize s)
- method normalizePattern p = Unicode.normalize p
- method caseInsensitiveMatch = false
- method normalizeMatchedString s = Unicode.normalize s
diff --git a/net/unison/patches/patch-fspath.ml b/net/unison/patches/patch-fspath.ml
deleted file mode 100644
index afb1221b481..00000000000
--- a/net/unison/patches/patch-fspath.ml
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-fspath.ml,v 1.1 2012/10/13 09:05:11 wiz Exp $
-
-r511 | vouillon | 2012-09-17 16:09:03 +0200 (Mon, 17 Sep 2012) | 3 lines
-
-* Use hash function from OCaml 3.x for comparing archives, even when
- compiled with OCaml 4.x
-
---- fspath.ml.orig 2010-04-15 17:29:31.000000000 +0000
-+++ fspath.ml
-@@ -335,4 +335,3 @@ let findWorkingDir fspath path =
-
- let quotes (Fspath f) = Uutil.quotes f
- let compare (Fspath f1) (Fspath f2) = compare f1 f2
--let hash (Fspath f) = Hashtbl.hash f
diff --git a/net/unison/patches/patch-fspath.mli b/net/unison/patches/patch-fspath.mli
deleted file mode 100644
index 8cc4696a5da..00000000000
--- a/net/unison/patches/patch-fspath.mli
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-fspath.mli,v 1.1 2012/10/13 09:05:11 wiz Exp $
-
-r511 | vouillon | 2012-09-17 16:09:03 +0200 (Mon, 17 Sep 2012) | 3 lines
-
-* Use hash function from OCaml 3.x for comparing archives, even when
- compiled with OCaml 4.x
-
---- fspath.mli.orig 2010-04-15 17:29:31.000000000 +0000
-+++ fspath.mli
-@@ -33,5 +33,3 @@ val quotes : t -> string
-
- (* CASE-SENSITIVE comparison between fspaths *)
- val compare : t -> t -> int
--(* CASE-SENSITIVE hash of a fspath *)
--val hash : t -> int
diff --git a/net/unison/patches/patch-path.ml b/net/unison/patches/patch-path.ml
deleted file mode 100644
index e32abd9dfea..00000000000
--- a/net/unison/patches/patch-path.ml
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-path.ml,v 1.1 2012/10/13 09:05:11 wiz Exp $
-
-r511 | vouillon | 2012-09-17 16:09:03 +0200 (Mon, 17 Sep 2012) | 3 lines
-
-* Use hash function from OCaml 3.x for comparing archives, even when
- compiled with OCaml 4.x
-
---- path.ml.orig 2010-04-15 17:29:31.000000000 +0000
-+++ path.ml
-@@ -202,10 +202,6 @@ let addPrefixToFinalName path prefix =
- assert (not (isEmpty path));
- prefix ^ path
-
--(* No need to perform case normalization on local paths *)
--let hash p = Hashtbl.hash p
--let equal (p1 : local) (p2 : local) = p1 = p2
--
- (* Pref controlling whether symlinks are followed. *)
- let followPred = Pred.create ~advanced:true "follow"
- ("Including the preference \\texttt{-follow \\ARG{pathspec}} causes Unison to \
diff --git a/net/unison/patches/patch-path.mli b/net/unison/patches/patch-path.mli
deleted file mode 100644
index 83618305889..00000000000
--- a/net/unison/patches/patch-path.mli
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-path.mli,v 1.1 2012/10/13 09:05:12 wiz Exp $
-
-r511 | vouillon | 2012-09-17 16:09:03 +0200 (Mon, 17 Sep 2012) | 3 lines
-
-* Use hash function from OCaml 3.x for comparing archives, even when
- compiled with OCaml 4.x
-
---- path.mli.orig 2010-04-15 17:29:31.000000000 +0000
-+++ path.mli
-@@ -31,8 +31,6 @@ val addSuffixToFinalName : local -> stri
- val addPrefixToFinalName : local -> string -> local
-
- val compare : t -> t -> int
--val equal : local -> local -> bool
--val hash : local -> int
-
- val followLink : local -> bool
- val followPred : Pred.t
diff --git a/net/unison/patches/patch-props.ml b/net/unison/patches/patch-props.ml
deleted file mode 100644
index fdf4937b071..00000000000
--- a/net/unison/patches/patch-props.ml
+++ /dev/null
@@ -1,27 +0,0 @@
-$NetBSD: patch-props.ml,v 1.1 2012/10/13 09:05:12 wiz Exp $
-
-r511 | vouillon | 2012-09-17 16:09:03 +0200 (Mon, 17 Sep 2012) | 3 lines
-
-* Use hash function from OCaml 3.x for comparing archives, even when
- compiled with OCaml 4.x
-
---- props.ml.orig 2010-04-15 17:29:31.000000000 +0000
-+++ props.ml
-@@ -305,7 +305,7 @@ let hash id h =
- (match id with
- IdIgnored -> -1
- | IdNumeric i -> i
-- | IdNamed nm -> Hashtbl.hash nm)
-+ | IdNamed nm -> Uutil.hash nm)
- h
-
- let similar id id' =
-@@ -609,7 +609,7 @@ type t = string option
-
- let dummy = None
-
--let hash t h = Uutil.hash2 (Hashtbl.hash t) h
-+let hash t h = Uutil.hash2 (Uutil.hash t) h
-
- let similar t t' =
- not (Prefs.read Osx.rsrc) || t = t'
diff --git a/net/unison/patches/patch-uutil.ml b/net/unison/patches/patch-uutil.ml
deleted file mode 100644
index 3e6f97b09f2..00000000000
--- a/net/unison/patches/patch-uutil.ml
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-uutil.ml,v 1.1 2012/10/13 09:05:12 wiz Exp $
-
-r511 | vouillon | 2012-09-17 16:09:03 +0200 (Mon, 17 Sep 2012) | 3 lines
-
-* Use hash function from OCaml 3.x for comparing archives, even when
- compiled with OCaml 4.x
-
---- uutil.ml.orig 2010-04-15 17:29:31.000000000 +0000
-+++ uutil.ml
-@@ -34,6 +34,10 @@ let myNameAndVersion = myName ^ " " ^ my
-
- let hash2 x y = (17 * x + 257 * y) land 0x3FFFFFFF
-
-+external hash_param : int -> int -> 'a -> int = "caml_hash_univ_param" "noalloc"
-+
-+let hash x = hash_param 10 100 x
-+
- (*****************************************************************************)
- (* File sizes *)
- (*****************************************************************************)
diff --git a/net/unison/patches/patch-uutil.mli b/net/unison/patches/patch-uutil.mli
deleted file mode 100644
index 7ecd5d5c4ca..00000000000
--- a/net/unison/patches/patch-uutil.mli
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-uutil.mli,v 1.1 2012/10/13 09:05:12 wiz Exp $
-
-r511 | vouillon | 2012-09-17 16:09:03 +0200 (Mon, 17 Sep 2012) | 3 lines
-
-* Use hash function from OCaml 3.x for comparing archives, even when
- compiled with OCaml 4.x
-
---- uutil.mli.orig 2010-04-15 17:29:31.000000000 +0000
-+++ uutil.mli
-@@ -13,6 +13,8 @@ val myNameAndVersion : string
-
- (* Hashing *)
- val hash2 : int -> int -> int
-+(* Hash function (OCaml 3.x version) *)
-+val hash : 'a -> int
-
- module type FILESIZE = sig
- type t