On Sat, 21 Sep 2019 09:35:50 +0100 Laurence Tratt <lau...@tratt.net> wrote:
> On Sat, Sep 21, 2019 at 09:06:16AM +0200, Christopher Zimmermann > wrote: > > Hello Christopher, > > >> Since other people might be affected by this, it looks like OCaml > >> has changed the marshalling format or similar (again...), so > >> Unison from -current is now incompatible with -stable. I doubt > >> there's anything we can do about this except, perhaps, a) add a > >> warning to the upgrade page b) maybe expand pkg/README to spell > >> out the commands needed to install Unison via OPAM. > > That's what I would recommend in pkg/README: > > > > $ OPAMROOT=~/opam_unison > > $ opam init --compiler 4.02.3 > > $ opam install unison > > $ ${OPAMROOT}/4.02.3/bin/unison > > > > Would you mind testing it ? > > That works for me, with one small caveat -- since it builds the GUI > flavour (I must admit, I'd forgotten that Unison has a GUI!), it does > require the system to have gtk+2 installed. So it might be worth > mentioning that. Otherwise, I think those steps are very helpful -- > thanks! OK? Index: 2.4x/pkg/README =================================================================== RCS file: /cvs/ports/net/unison/2.4x/pkg/README,v retrieving revision 1.2 diff -u -p -r1.2 README --- 2.4x/pkg/README 4 Sep 2018 12:46:19 -0000 1.2 +++ 2.4x/pkg/README 22 Sep 2019 14:05:25 -0000 @@ -8,5 +8,11 @@ Unison uses native OCaml marshalling in means that unison might not work when the OCaml versions of two instances are out of sync. One way to work around this limitation of unison is to use -the OPAM OCaml package and compiler manager to sync the -OCaml versions on your machines. +the OPAM OCaml package manager to build unison with the same +version of the OCaml compiler on all machines: + +doas pkg_add opam +opam init --no-setup --root ~/opam_unison \ + --compiler ocaml-base-compiler.4.09.0 +opam install unison lablgtk # To build without the gui, remove lablgtk +$(opam var bin)/unison Index: 2.5x/pkg/README =================================================================== RCS file: /cvs/ports/net/unison/2.5x/pkg/README,v retrieving revision 1.2 diff -u -p -r1.2 README --- 2.5x/pkg/README 4 Sep 2018 12:46:19 -0000 1.2 +++ 2.5x/pkg/README 22 Sep 2019 14:05:25 -0000 @@ -8,5 +8,11 @@ Unison uses native OCaml marshalling in means that unison might not work when the OCaml versions of two instances are out of sync. One way to work around this limitation of unison is to use -the OPAM OCaml package and compiler manager to sync the -OCaml versions on your machines. +the OPAM OCaml package manager to build unison with the same +version of the OCaml compiler on all machines: + +doas pkg_add opam +opam init --no-setup --root ~/opam_unison \ + --compiler ocaml-base-compiler.4.09.0 +opam install unison lablgtk # To build without the gui, remove lablgtk +$(opam var bin)/unison -- http://gmerlin.de OpenPGP: http://gmerlin.de/christopher.pub CB07 DA40 B0B6 571D 35E2 0DEF 87E2 92A7 13E5 DEE1
pgpXNGxl7jixV.pgp
Description: OpenPGP digital signature