Add instructions how to build unison with fixed OCaml version via OPAM.

reviewed by sthen@, ok bket@
This commit is contained in:
chrisz 2019-09-22 17:59:03 +00:00
parent a3dae6ea5d
commit a1ef6db3e6
4 changed files with 22 additions and 10 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.7 2019/09/18 17:49:36 chrisz Exp $
# $OpenBSD: Makefile,v 1.8 2019/09/22 17:59:03 chrisz Exp $
VER= 2.48.15
REV= v4
REVISION= 0
REVISION= 1
GH_TAGNAME= v${VER}${REV}
PKGNAME= unison-${VER}${REV:S/^v/pl/}

View File

@ -1,4 +1,4 @@
$OpenBSD: README,v 1.2 2018/09/04 12:46:19 espie Exp $
$OpenBSD: README,v 1.3 2019/09/22 17:59:03 chrisz Exp $
+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
@ -8,5 +8,11 @@ Unison uses native OCaml marshalling in its prococol. This
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

View File

@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.5 2019/09/18 17:49:36 chrisz Exp $
# $OpenBSD: Makefile,v 1.6 2019/09/22 17:59:03 chrisz Exp $
GH_TAGNAME= v2.51.2
REVISION= 2
REVISION= 3
WRKDIST= ${WRKDIR}/${PKGNAME}/src

View File

@ -1,4 +1,4 @@
$OpenBSD: README,v 1.2 2018/09/04 12:46:19 espie Exp $
$OpenBSD: README,v 1.3 2019/09/22 17:59:03 chrisz Exp $
+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
@ -8,5 +8,11 @@ Unison uses native OCaml marshalling in its prococol. This
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