From a23c32b818d5c8f0c2e14490e88eae1d75b2dd97 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sun, 26 Apr 2020 19:42:00 +0300 Subject: [PATCH] nodejs-lts: apply https://github.com/libuv/libuv/pull/2767 for deps/uv --- packages/nodejs-lts/build.sh | 2 +- ...e981b6633635e72bacc447bc6d3ab88ce0cd.patch | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 packages/nodejs-lts/libuv-bugfix-7656e981b6633635e72bacc447bc6d3ab88ce0cd.patch diff --git a/packages/nodejs-lts/build.sh b/packages/nodejs-lts/build.sh index 4b6c6b310..77dd55563 100644 --- a/packages/nodejs-lts/build.sh +++ b/packages/nodejs-lts/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://nodejs.org/ TERMUX_PKG_DESCRIPTION="Platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_VERSION=12.16.2 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_REVISION=3 TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=555c47ca0a40e5526d9ab7b2e9c18f9dbd1d956cbdc013fd2223bb11a069be78 # Note that we do not use a shared libuv to avoid an issue with the Android diff --git a/packages/nodejs-lts/libuv-bugfix-7656e981b6633635e72bacc447bc6d3ab88ce0cd.patch b/packages/nodejs-lts/libuv-bugfix-7656e981b6633635e72bacc447bc6d3ab88ce0cd.patch new file mode 100644 index 000000000..dae04e94a --- /dev/null +++ b/packages/nodejs-lts/libuv-bugfix-7656e981b6633635e72bacc447bc6d3ab88ce0cd.patch @@ -0,0 +1,21 @@ +--- a/deps/uv/src/unix/android-ifaddrs.c ++++ b/deps/uv/src/unix/android-ifaddrs.c +@@ -470,13 +470,14 @@ static int interpretAddr(struct nlmsghdr *p_hdr, struct ifaddrs **p_resultList, + { + case IFA_ADDRESS: + case IFA_LOCAL: ++ l_addrSize += NLMSG_ALIGN(calcAddrLen(l_info->ifa_family, l_rtaDataSize)); + if((l_info->ifa_family == AF_INET || l_info->ifa_family == AF_INET6) && !l_addedNetmask) + { + /* Make room for netmask */ + l_addrSize += NLMSG_ALIGN(calcAddrLen(l_info->ifa_family, l_rtaDataSize)); + l_addedNetmask = 1; + } +- break; ++ break; + case IFA_BROADCAST: + l_addrSize += NLMSG_ALIGN(calcAddrLen(l_info->ifa_family, l_rtaDataSize)); + break; +-- +2.23.1 +