aboutsummaryrefslogtreecommitdiffstats
path: root/community/cloudi/10-ocaml-32bit-fix.patch
diff options
context:
space:
mode:
authorMichael Truog <mjtruog@protonmail.com>2021-03-10 17:16:24 -0800
committerLeo <thinkabit.ukim@gmail.com>2021-03-13 22:02:07 +0000
commit6c67707673f2debef57024fc00fc9181eb1d57ad (patch)
tree659e2791ae709cbcb82072644e03c77cef7fe36b /community/cloudi/10-ocaml-32bit-fix.patch
parent367e05a111f375c144011d666b273fa2233d6087 (diff)
downloadaports-6c67707673f2debef57024fc00fc9181eb1d57ad.tar.gz
aports-6c67707673f2debef57024fc00fc9181eb1d57ad.tar.bz2
aports-6c67707673f2debef57024fc00fc9181eb1d57ad.tar.xz
community/cloudi: enable ocaml support on x86/arm
* set GO111MODULE=auto for go1.16 usage with cloudi 2.0.1 * add small patch for ocaml 32-bit compilation of test
Diffstat (limited to 'community/cloudi/10-ocaml-32bit-fix.patch')
-rw-r--r--community/cloudi/10-ocaml-32bit-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/cloudi/10-ocaml-32bit-fix.patch b/community/cloudi/10-ocaml-32bit-fix.patch
new file mode 100644
index 0000000000..8d2e2e8224
--- /dev/null
+++ b/community/cloudi/10-ocaml-32bit-fix.patch
@@ -0,0 +1,22 @@
+--- a/src/tests/count/ocaml/main.ml
++++ b/src/tests/count/ocaml/main.ml
+@@ -37,7 +37,7 @@
+
+ let request request_type name pattern _ _ timeout _ trans_id pid state api =
+ let {ServiceState.count; _} = state in
+- let count_new = if count == 4294967295 then 0 else count + 1 in
++ let count_new = if count == 1073741823 then 0 else count + 1 in
+ state.ServiceState.count <- count_new ;
+ print_endline ("count == " ^ (string_of_int count_new) ^ " ocaml") ;
+ let response = string_of_int count_new
+--- a/src/tests/msg_size/ocaml/main.ml
++++ b/src/tests/msg_size/ocaml/main.ml
+@@ -65,7 +65,7 @@
+ Cloudi.NullError (error)
+ | Ok (i0) ->
+ let i1 =
+- if i0 = 4294967295 then
++ if i0 = 1073741823 then
+ 0
+ else
+ i0 + 1