Skip to content

Instantly share code, notes, and snippets.

@maxux
Last active May 20, 2016 13:44
Show Gist options
  • Save maxux/5d8cd7c6ce819ae8aa03d4457a7088cb to your computer and use it in GitHub Desktop.
Save maxux/5d8cd7c6ce819ae8aa03d4457a7088cb to your computer and use it in GitHub Desktop.
From 68973792e013c6b4cd40e720f743e56fd7d268bf Mon Sep 17 00:00:00 2001
From: Maxime Daniel <[email protected]>
Date: Thu, 19 May 2016 12:40:23 +0200
Subject: [PATCH] Makes code compiles with janestreet/core 113.33
---
src/tools/arakoon_logger.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tools/arakoon_logger.ml b/src/tools/arakoon_logger.ml
index b1b02bf..8190d41 100644
--- a/src/tools/arakoon_logger.ml
+++ b/src/tools/arakoon_logger.ml
@@ -88,7 +88,7 @@ let format_message
tm.tm_min
tm.tm_sec
(int_of_float ((mod_float (Core.Time.to_float ts) 1.) *. 1_000_000.))
- (let open Core.Std.Float in
+ (let open Core_kernel in
match offset.Core.Span.Parts.sign with
| Sign.Neg -> '-'
| Sign.Pos | Sign.Zero -> '+')
--
2.6.4
#!/bin/bash
apt-get install -y opam git build-essential ocaml-native-compilers
apt-get install -y m4 help2man dh-make etcd
if [ ! -d ~/.opam ]; then
opam init -y
fi
opam install -y depext
opam depext ocamlfind snappy camlbz2 ssl lwt camltc quickcheck
opam install -y ocamlfind snappy camlbz2 ssl lwt camltc quickcheck
opam install -y bisect redis uri ocplib-endian
opam install -y core.113.00.00
eval $(opam config env)
cd /opt
if [ ! -d arakoon ]; then
git clone https://github.com/openvstorage/arakoon.git
cd arakoon
git fetch --tags
git checkout 1.9.3
# PATCH="https://gist.githubusercontent.com/maxux/5d8cd7c6ce819ae8aa03d4457a7088cb/raw/259ccc5b775a51c09c119c7a11c8359a065dd4c2/arakoon-janestreet-core-113.33.patch"
# curl $PATCH > arakoon-janestreet-core-113.33.patch
# git apply --check arakoon-janestreet-core-113.33.patch
fi
cd arakoon
make
fakeroot debian/rules clean
fakeroot debian/rules build
fakeroot debian/rules binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment