pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/mozjs78 mozjs78: Backport illumos pthread patches...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c4275040a164
branches:  trunk
changeset: 443054:c4275040a164
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Dec 06 10:50:03 2020 +0000

description:
mozjs78: Backport illumos pthread patches from spidermonkey52

Not tested, but the code is near identical, and should get the bulk
builds further at least.

diffstat:

 lang/mozjs78/distinfo                                             |   4 +-
 lang/mozjs78/patches/patch-js_src_threading_posix_PosixThread.cpp |  15 ++++++
 lang/mozjs78/patches/patch-js_src_util_NativeStack.cpp            |  23 ++++++++++
 3 files changed, 41 insertions(+), 1 deletions(-)

diffs (64 lines):

diff -r fa05d9c211a8 -r c4275040a164 lang/mozjs78/distinfo
--- a/lang/mozjs78/distinfo     Sun Dec 06 10:47:40 2020 +0000
+++ b/lang/mozjs78/distinfo     Sun Dec 06 10:50:03 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2020/12/05 12:03:25 nia Exp $
+$NetBSD: distinfo,v 1.6 2020/12/06 10:50:03 nia Exp $
 
 SHA1 (mozjs78_78.4.0.orig.tar.xz) = b2c1c241f70310d545f8a3c05b9c8c11676e56a8
 RMD160 (mozjs78_78.4.0.orig.tar.xz) = cef93b6116eff9f04beeaf3dda0a42cd811d0b18
@@ -10,6 +10,8 @@
 SHA1 (patch-js_src_jit_AtomicOperations.h) = 19eba50673f8138bbb09c0eaca63923cadbadd26
 SHA1 (patch-js_src_jit_ProcessExecutableMemory.cpp) = 84d629df0e7963755aa38ff9a1e29d60ed3adb4c
 SHA1 (patch-js_src_jsfriendapi.h) = f342a88182c1be0d3c0027c91ae94e1d4eac2542
+SHA1 (patch-js_src_threading_posix_PosixThread.cpp) = f734abbd005d0353d4adfe865c215c2b86389bf6
+SHA1 (patch-js_src_util_NativeStack.cpp) = 3354064c4168711aa7f83d88336a902345239649
 SHA1 (patch-js_src_vm_ArrayBufferObject.cpp) = 155f042eee3a8ff903622860e0a99af1ed776ad5
 SHA1 (patch-js_src_vm_JSONPrinter.cpp) = ff89dfe4e73223dda3d5d33e90e8c7bb3ffa3e0e
 SHA1 (patch-js_src_vm_JSONPrinter.h) = b9f67b29b16d7163aecc0ce9b6939c1308878a44
diff -r fa05d9c211a8 -r c4275040a164 lang/mozjs78/patches/patch-js_src_threading_posix_PosixThread.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs78/patches/patch-js_src_threading_posix_PosixThread.cpp Sun Dec 06 10:50:03 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-js_src_threading_posix_PosixThread.cpp,v 1.1 2020/12/06 10:50:03 nia Exp $
+
+illumos pthreads don't have pthread_setname_np.
+
+--- js/src/threading/posix/PosixThread.cpp.orig        2020-11-04 10:52:03.000000000 +0000
++++ js/src/threading/posix/PosixThread.cpp
+@@ -103,6 +103,8 @@ void ThisThread::SetName(const char* nam
+   rv = 0;
+ #elif defined(__NetBSD__)
+   rv = pthread_setname_np(pthread_self(), "%s", (void*)name);
++#elif defined(__sun)
++  rv = 0;
+ #else
+   rv = pthread_setname_np(pthread_self(), name);
+ #endif
diff -r fa05d9c211a8 -r c4275040a164 lang/mozjs78/patches/patch-js_src_util_NativeStack.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs78/patches/patch-js_src_util_NativeStack.cpp    Sun Dec 06 10:50:03 2020 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-js_src_util_NativeStack.cpp,v 1.1 2020/12/06 10:50:03 nia Exp $
+
+illumos pthreads don't have pthread_getattr_np.
+
+--- js/src/util/NativeStack.cpp.orig   2020-11-04 10:52:03.000000000 +0000
++++ js/src/util/NativeStack.cpp
+@@ -13,7 +13,7 @@
+ #  if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ #    include <pthread_np.h>
+ #  endif
+-#  if defined(SOLARIS) || defined(AIX)
++#  if defined(__sun) || defined(AIX)
+ #    include <ucontext.h>
+ #  endif
+ #  if defined(ANDROID) && !defined(__aarch64__)
+@@ -128,6 +128,7 @@ void* js::GetNativeStackBaseImpl() {
+ #    elif defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(NETBSD)
+   /* e.g. on FreeBSD 4.8 or newer, neundorf%kde.org@localhost */
+   pthread_attr_get_np(thread, &sattr);
++#    elif defined(__sun)
+ #    else
+   /*
+    * FIXME: this function is non-portable;



Home | Main Index | Thread Index | Old Index