From cb67ea3b304163327c81fed7f8cd63632e051368 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 2 Jan 2020 23:12:03 +0100 Subject: [PATCH] erlang: Update from 22.0.7 to 22.2.1 --- packages/erlang/build.sh | 5 ++--- ...s-emulator-nifs-common-socket_util.c.patch | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 packages/erlang/erts-emulator-nifs-common-socket_util.c.patch diff --git a/packages/erlang/build.sh b/packages/erlang/build.sh index 2ca52413c..b24aee3f9 100644 --- a/packages/erlang/build.sh +++ b/packages/erlang/build.sh @@ -1,10 +1,9 @@ TERMUX_PKG_HOMEPAGE=https://www.erlang.org/ TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language" TERMUX_PKG_LICENSE="Apache-2.0" -TERMUX_PKG_VERSION=22.0.7 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_VERSION=22.2.1 TERMUX_PKG_SRCURL=https://github.com/erlang/otp/archive/OTP-$TERMUX_PKG_VERSION.tar.gz -TERMUX_PKG_SHA256=04c090b55ec4a01778e7e1a5b7fdf54012548ca72737965b7aa8c4d7878c92bc +TERMUX_PKG_SHA256=65ab58ce79181895afc66716cc735a0ada4a3b705a525407d7e1d4c5deb95e72 TERMUX_PKG_DEPENDS="openssl, ncurses, zlib" TERMUX_PKG_NO_STATICSPLIT=true TERMUX_PKG_HOSTBUILD=true diff --git a/packages/erlang/erts-emulator-nifs-common-socket_util.c.patch b/packages/erlang/erts-emulator-nifs-common-socket_util.c.patch new file mode 100644 index 000000000..7af5037fa --- /dev/null +++ b/packages/erlang/erts-emulator-nifs-common-socket_util.c.patch @@ -0,0 +1,19 @@ +diff -u -r ../otp-OTP-22.2.1/erts/emulator/nifs/common/socket_util.c ./erts/emulator/nifs/common/socket_util.c +--- ../otp-OTP-22.2.1/erts/emulator/nifs/common/socket_util.c 2019-12-18 16:48:36.000000000 +0000 ++++ ./erts/emulator/nifs/common/socket_util.c 2020-01-02 21:53:42.278551000 +0000 +@@ -1490,6 +1490,7 @@ + break; + #endif + ++#ifndef __ANDROID__ + #if defined(PACKET_USER) + case PACKET_USER: + *ePktType = esock_atom_user; +@@ -1501,6 +1502,7 @@ + *ePktType = esock_atom_kernel; + break; + #endif ++#endif + + #if defined(PACKET_FASTROUTE) + case PACKET_FASTROUTE: