pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/erlang erlang: fix building on Darwin
details: https://anonhg.NetBSD.org/pkgsrc/rev/57d601c57a4e
branches: trunk
changeset: 442938:57d601c57a4e
user: adam <adam%pkgsrc.org@localhost>
date: Thu Dec 03 16:57:04 2020 +0000
description:
erlang: fix building on Darwin
diffstat:
lang/erlang/distinfo | 4 ++-
lang/erlang/patches/patch-erts_emulator_sys_common_erl__poll.c | 15 ++++++++++
lang/erlang/patches/patch-make_configure.in | 13 ++++++++
3 files changed, 31 insertions(+), 1 deletions(-)
diffs (57 lines):
diff -r 09793b3673c9 -r 57d601c57a4e lang/erlang/distinfo
--- a/lang/erlang/distinfo Thu Dec 03 16:02:05 2020 +0000
+++ b/lang/erlang/distinfo Thu Dec 03 16:57:04 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.80 2020/03/20 16:05:34 nia Exp $
+$NetBSD: distinfo,v 1.81 2020/12/03 16:57:04 adam Exp $
SHA1 (erlang-22.2.8.tar.gz) = ea13d421086ede18d7de88c871d4b0d35b89c415
RMD160 (erlang-22.2.8.tar.gz) = 21b8f03a3076364118e24f96b257b656b081d455
@@ -9,9 +9,11 @@
SHA1 (patch-erts_aclocal.m4) = 3812a0feda06eb7c6ff02b5ac7125284ad5df2cb
SHA1 (patch-erts_emulator_drivers_common_inet__drv.c) = e34674aea2fa5092b5215944cb5639738df647bb
SHA1 (patch-erts_emulator_nifs_common_prim__net__nif.c) = 39a3c134f17ede852a736494f035c8ce01b0ed4b
+SHA1 (patch-erts_emulator_sys_common_erl__poll.c) = dac6a41d96b1c6b2ca8a0b2511275db4ac90689c
SHA1 (patch-erts_emulator_sys_unix_sys__uds.c) = a165f977221acc8aba2ef30ca23d149a10af060a
SHA1 (patch-erts_etc_unix_run__erl.c) = dbcd6819949874da19daa554335567c444d7abe2
SHA1 (patch-erts_lib__src_common_erl__printf.c) = 31ab5c501d62f021e7570a925dcc75d38605ae41
SHA1 (patch-lib_crypto_c__src_Makefile.in) = 0ab1db36c03999524e933d60f913ff5608b0622e
SHA1 (patch-lib_tools_c__src_Makefile.in) = 4fa1ef2ace4fc64efdb6b3acd24decf031ae778d
+SHA1 (patch-make_configure.in) = 1eedad3b26f6070e2b0a0fba06e850c796885932
SHA1 (patch-make_output.mk.in) = d7b3da58bfb471d52c41242e2a03d1598ce24e62
diff -r 09793b3673c9 -r 57d601c57a4e lang/erlang/patches/patch-erts_emulator_sys_common_erl__poll.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/erlang/patches/patch-erts_emulator_sys_common_erl__poll.c Thu Dec 03 16:57:04 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-erts_emulator_sys_common_erl__poll.c,v 1.5 2020/12/03 16:57:05 adam Exp $
+
+Fix for systems where max_fds is a large number (e.g. Darwin).
+
+--- erts/emulator/sys/common/erl_poll.c.orig 2020-12-03 15:45:53.000000000 +0000
++++ erts/emulator/sys/common/erl_poll.c
+@@ -312,7 +312,7 @@ struct ERTS_POLL_EXPORT(erts_pollset) {
+ void erts_silence_warn_unused_result(long unused);
+ static void fatal_error(char *format, ...);
+
+-static int max_fds = -1;
++static long max_fds = -1;
+
+ #if ERTS_POLL_USE_POLL
+
diff -r 09793b3673c9 -r 57d601c57a4e lang/erlang/patches/patch-make_configure.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/erlang/patches/patch-make_configure.in Thu Dec 03 16:57:04 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-make_configure.in,v 1.1 2020/12/03 16:57:05 adam Exp $
+
+--- make/configure.in.orig 2020-12-03 16:05:35.000000000 +0000
++++ make/configure.in
+@@ -392,7 +392,7 @@ if test $CROSS_COMPILING = no; then
+ }
+ [case "$macosx_version" in
+ [1-9][0-9].[0-9])
+- int_macosx_version=`echo $macosx_version | sed 's|\([^\.]*\)\.\([^\.]*\)|\1\2|'`;;
++ int_macosx_version=`echo $macosx_version | sed 's|\([^\.]*\)\.\([^\.]*\)|\10\200|'`;;
+ [1-9][0-9].[0-9].[0-9])
+ int_macosx_version=`echo $macosx_version | sed 's|\([^\.]*\)\.\([^\.]*\)\.\([^\.]*\)|\1\2\3|'`;;
+ [1-9][0-9].[1-9][0-9])
Home |
Main Index |
Thread Index |
Old Index