erlang: Update from 22.0.7 to 22.2.1

This commit is contained in:
Fredrik Fornwall 2020-01-02 23:12:03 +01:00
parent a5782c5c1a
commit cb67ea3b30
2 changed files with 21 additions and 3 deletions

View File

@ -1,10 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://www.erlang.org/ TERMUX_PKG_HOMEPAGE=https://www.erlang.org/
TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language" TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language"
TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION=22.0.7 TERMUX_PKG_VERSION=22.2.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/erlang/otp/archive/OTP-$TERMUX_PKG_VERSION.tar.gz 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_DEPENDS="openssl, ncurses, zlib"
TERMUX_PKG_NO_STATICSPLIT=true TERMUX_PKG_NO_STATICSPLIT=true
TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_HOSTBUILD=true

View File

@ -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: