diff options
author | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-08-18 14:26:02 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-08-18 14:38:17 +0000 |
commit | 58f4a684bfd113e4396bc471c192820eaaec9d19 (patch) | |
tree | 962ee98d37c720c69feb13fc03b7cb9ecbcd7ea8 /community/cloudi | |
parent | fb5e1bf1fe47e6f4f1fe125ca1a104ff4c533b4a (diff) | |
download | aports-58f4a684bfd113e4396bc471c192820eaaec9d19.tar.bz2 aports-58f4a684bfd113e4396bc471c192820eaaec9d19.tar.xz |
community/cloudi: fix compatibility with ocaml 4.08.0
Diffstat (limited to 'community/cloudi')
-rw-r--r-- | community/cloudi/APKBUILD | 4 | ||||
-rw-r--r-- | community/cloudi/erlang-otp-ocaml-compattibility.patch | 21 |
2 files changed, 24 insertions, 1 deletions
diff --git a/community/cloudi/APKBUILD b/community/cloudi/APKBUILD index 49d9da70a8..5abc09b7ed 100644 --- a/community/cloudi/APKBUILD +++ b/community/cloudi/APKBUILD @@ -29,7 +29,7 @@ pkgname=cloudi pkgver=1.7.5 -pkgrel=4 +pkgrel=5 pkgdesc="Cloud computing framework for efficient, scalable, and stable soft-realtime event processing." url="https://cloudi.org/" license="MIT" @@ -75,6 +75,7 @@ subpackages="$pkgname-static $pkgname-openrc" source="https://osdn.net/dl/$pkgname/$pkgname-$pkgver.tar.gz 0005-Disable-tests-for-aports-buildservers.patch python-3.7.patch + erlang-otp-ocaml-compattibility.patch $pkgname.initd" builddir="$srcdir/cloudi-$pkgver" @@ -135,4 +136,5 @@ package() { sha512sums="6684f498b501b47f583c86bb949aec68db4f8f91dd57c352989b01792e871d7e3e3386e658d6b71791c2baf7fc618c67b4fd85487ff27a17ef6f495cad5f241f cloudi-1.7.5.tar.gz d831cc9672c12f27cf958975d72a3cb02ca21e78347f278a840679ab89479f795aba5ff0378731f276863fc5a3237d1bd0f861ccedc41e77321a19d726da8ca9 0005-Disable-tests-for-aports-buildservers.patch 020e7c08867e2d84e75eeee74b72f1d79de481fb2affb815f6780d8ce9777dfda2aff71a5af4c066dce334b63b55f05706dfe751379479c086f6e573aa1b9ee0 python-3.7.patch +4b03608893095df39181e004a88372ed6d2752166f4b2867e053e9c07ee0793cd8590d2720906a9ff093924766349b548b0e5439b129b09193b64f02645f6824 erlang-otp-ocaml-compattibility.patch 053f860f656617012208a0e1909e43b2f8979d381a90d3fa5a745a9cf5021fe54556a641fef2badaa9955f2394d00e32183389cb9b501169dcbf8cbe4fbb0329 cloudi.initd" diff --git a/community/cloudi/erlang-otp-ocaml-compattibility.patch b/community/cloudi/erlang-otp-ocaml-compattibility.patch new file mode 100644 index 0000000000..614f14daee --- /dev/null +++ b/community/cloudi/erlang-otp-ocaml-compattibility.patch @@ -0,0 +1,21 @@ +From 479eef923b756fdcfea395d63e2383f18479ada0 Mon Sep 17 00:00:00 2001 +From: Michael Truog <mjtruog@protonmail.com> +Date: Sat, 18 May 2019 19:36:17 -0700 +Subject: [PATCH] Add Erlang/OTP 23 compatibility. Add OCaml 4.08.0 + compatibility. Update the Erlang binary term format encoding implementations + to support Erlang/OTP 23 with the programming languages Go, Haskell, Java, + Javascript, OCaml, Perl, PHP, Python and Ruby. Update uuid. + +diff --git a/src/api/ocaml/cloudi.ml b/src/api/ocaml/cloudi.ml +index 044396dd..c661af37 100644 +--- a/src/api/ocaml/cloudi.ml ++++ b/src/api/ocaml/cloudi.ml +@@ -162,7 +162,7 @@ module Instance = struct + let callbacks_remove api pattern = + let key = api.prefix ^ pattern in + let value = Hashtbl.find api.callbacks key in +- let _ = Queue.pop value in ++ let _f = Queue.pop value in + if Queue.is_empty value then + Hashtbl.remove api.callbacks key ; + () |