pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/erlang Don't invade the implementation namespace.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/adb4eab6bd41
branches:  trunk
changeset: 353385:adb4eab6bd41
user:      he <he%pkgsrc.org@localhost>
date:      Tue Oct 04 07:21:30 2016 +0000

description:
Don't invade the implementation namespace.
There's no guarantee that __errno is free for own use.
(On NetBSD it isn't!)

diffstat:

 lang/erlang/distinfo                                   |   3 +-
 lang/erlang/patches/patch-erts_emulator_sys_unix_sys.c |  24 ++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r aebc57913536 -r adb4eab6bd41 lang/erlang/distinfo
--- a/lang/erlang/distinfo      Tue Oct 04 07:11:02 2016 +0000
+++ b/lang/erlang/distinfo      Tue Oct 04 07:21:30 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.46 2016/10/02 10:12:36 fhajny Exp $
+$NetBSD: distinfo,v 1.47 2016/10/04 07:21:30 he Exp $
 
 SHA1 (erlang/otp_src_19.1.tar.gz) = 9f83a442de96c075a7cd1c42ceae9e3ce44b8f76
 RMD160 (erlang/otp_src_19.1.tar.gz) = 7a850068e9b46f8b6f54f83e95d2d5d09ec674e7
@@ -10,4 +10,5 @@
 SHA1 (patch-ay) = f5f1accdb11e404ba4779b056228431e3080e4cd
 SHA1 (patch-erts_configure) = dba8d72974e8c493cf2bb90e6b149a84dd9073da
 SHA1 (patch-erts_emulator_drivers_common_inet__drv.c) = b7784e5e8e025ca75d5279a63e0cb3f74c54bd6a
+SHA1 (patch-erts_emulator_sys_unix_sys.c) = 976124f49103f994db0cd7334987f42fc5c590bc
 SHA1 (patch-make_output.mk.in) = d7b3da58bfb471d52c41242e2a03d1598ce24e62
diff -r aebc57913536 -r adb4eab6bd41 lang/erlang/patches/patch-erts_emulator_sys_unix_sys.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/erlang/patches/patch-erts_emulator_sys_unix_sys.c    Tue Oct 04 07:21:30 2016 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-erts_emulator_sys_unix_sys.c,v 1.1 2016/10/04 07:21:30 he Exp $
+
+Don't invade the implementation namespace.
+There's no guarantee that __errno is free for own use
+(on NetBSD it isn't!)
+
+--- erts/emulator/sys/unix/sys.c.orig  2016-09-20 19:11:23.000000000 +0000
++++ erts/emulator/sys/unix/sys.c
+@@ -715,13 +715,13 @@ static RETSIGTYPE suspend_signal(void)
+ static RETSIGTYPE suspend_signal(int signum)
+ #endif
+ {
+-    int res, buf[1], __errno = errno;
++    int res, buf[1], save_errno = errno;
+     do {
+         res = read(sig_suspend_fds[0], buf, sizeof(int));
+     } while (res < 0 && errno == EINTR);
+ 
+     /* restore previous errno in case read changed it */
+-    errno = __errno;
++    errno = save_errno;
+ }
+ #endif /* #ifdef ERTS_SYS_SUSPEND_SIGNAL */
+ 



Home | Main Index | Thread Index | Old Index