Fixed compilation with musl 1.2.x , mostly.
Added a patch fixing compilation on 32-bit platforms.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=cjdns
-PKG_VERSION:=v20.4
-PKG_RELEASE:=3
+PKG_VERSION:=v21
+PKG_RELEASE:=1
PKG_SOURCE_VERSION:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/cjdelisle/cjdns.git
-PKG_MIRROR_HASH:=5e0036660626c3acf0050cf2e47aa87d262474184efb9d69538dbab4512113f8
+PKG_MIRROR_HASH:=ee22f5a94b56ac75ff8e3bc7bfaa70c45985c3dcf2a260c03e7754f4102da46a
PKG_MAINTAINER:=William Fleurant <meshnet@protonmail.com>
PKG_LICENSE:=GPL-3.0-or-later
--- a/node_build/builder.js
+++ b/node_build/builder.js
-@@ -203,8 +203,8 @@
- // # 74 "./wire/Message.h"
- js = js.replace(/\n#.*\n/g, '');
+@@ -215,8 +215,8 @@ var execJs = function (js, builder, file
+ js = qs.join("'");
+
var to = setTimeout(function () {
- throw new Error("Inline JS did not return after 120 seconds [" + js + "]");
- }, 120000);
+ throw new Error("Inline JS did not return after 5 minutes [" + js + "]");
+ }, 300000);
-
+
var REQUIRE = function (str) {
if (typeof(str) !== 'string') {
--- /dev/null
+--- a/memory/Allocator.c
++++ b/memory/Allocator.c
+@@ -57,7 +57,7 @@ static void unroll(struct Allocator_pvt*
+ struct Allocator_Allocation_pvt* allocation = context->allocations;
+ while (allocation && includeAllocations) {
+ writeUnroller(&childUnroller);
+- fprintf(stderr, "%s:%ld [%lu] bytes at [0x%lx]\n",
++ fprintf(stderr, "%s:%tu [%tu] bytes at [0x%lx]\n",
+ allocation->fileName,
+ allocation->lineNum,
+ allocation->pub.size,