From dfde791442bef0f9949116fb2ef863bce49fac1f Mon Sep 17 00:00:00 2001 From: Li Ping <1477412247@qq.com> Date: Tue, 3 Aug 2021 17:40:37 +0800 Subject: [PATCH] update erlang.spec and add extern-ei-default-socket-callbacks.patch --- erlang.spec | 6 +++++- extern-ei-default-socket-callbacks.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 extern-ei-default-socket-callbacks.patch diff --git a/erlang.spec b/erlang.spec index 369a4c5..50d8944 100644 --- a/erlang.spec +++ b/erlang.spec @@ -11,7 +11,7 @@ %global __with_wxwidgets 1 Name: erlang Version: 21.3.3 -Release: 2 +Release: 3 Summary: General-purpose programming language and runtime environment License: ASL 2.0 URL: https://www.erlang.org @@ -31,6 +31,7 @@ Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch Patch10: otp-0010-Improve-nodes-querying.patch +Patch11: extern-ei-default-socket-callbacks.patch BuildRequires: gcc gcc-c++ flex %if %{with doc} %if 0%{?need_bootstrap} < 1 @@ -1723,6 +1724,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %endif %changelog +* Fri Jul 30 2021 liping - 21.3.3-3 +- Support parallel compilation + * Sat Mar 27 2021 weishengjing - 21.3.3-2 - Support parallel compilation diff --git a/extern-ei-default-socket-callbacks.patch b/extern-ei-default-socket-callbacks.patch new file mode 100644 index 0000000..20aa4f1 --- /dev/null +++ b/extern-ei-default-socket-callbacks.patch @@ -0,0 +1,11 @@ +--- a/lib/erl_interface/src/misc/ei_portio.h 2021-08-03 11:40:41.087250211 +0800 ++++ b/lib/erl_interface/src/misc/ei_portio.h 2021-08-03 11:40:19.690906742 +0800 +@@ -47,7 +47,7 @@ + int ei_socket_callbacks_have_writev__(ei_socket_callbacks *cbs); + #endif + +-ei_socket_callbacks ei_default_socket_callbacks; ++extern ei_socket_callbacks ei_default_socket_callbacks; + + #define EI_FD_AS_CTX__(FD) \ + ((void *) (long) (FD)) -- Gitee