pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/mozjs78



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Dec  6 10:50:03 UTC 2020

Modified Files:
        pkgsrc/lang/mozjs78: distinfo
Added Files:
        pkgsrc/lang/mozjs78/patches:
            patch-js_src_threading_posix_PosixThread.cpp
            patch-js_src_util_NativeStack.cpp

Log Message:
mozjs78: Backport illumos pthread patches from spidermonkey52

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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/mozjs78/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/mozjs78/patches/patch-js_src_threading_posix_PosixThread.cpp \
    pkgsrc/lang/mozjs78/patches/patch-js_src_util_NativeStack.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/mozjs78/distinfo
diff -u pkgsrc/lang/mozjs78/distinfo:1.5 pkgsrc/lang/mozjs78/distinfo:1.6
--- pkgsrc/lang/mozjs78/distinfo:1.5    Sat Dec  5 12:03:25 2020
+++ pkgsrc/lang/mozjs78/distinfo        Sun Dec  6 10:50:03 2020
@@ -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_moz.configure) = f3d762b2
 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

Added files:

Index: pkgsrc/lang/mozjs78/patches/patch-js_src_threading_posix_PosixThread.cpp
diff -u /dev/null pkgsrc/lang/mozjs78/patches/patch-js_src_threading_posix_PosixThread.cpp:1.1
--- /dev/null   Sun Dec  6 10:50:03 2020
+++ pkgsrc/lang/mozjs78/patches/patch-js_src_threading_posix_PosixThread.cpp    Sun Dec  6 10:50:03 2020
@@ -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
Index: pkgsrc/lang/mozjs78/patches/patch-js_src_util_NativeStack.cpp
diff -u /dev/null pkgsrc/lang/mozjs78/patches/patch-js_src_util_NativeStack.cpp:1.1
--- /dev/null   Sun Dec  6 10:50:03 2020
+++ pkgsrc/lang/mozjs78/patches/patch-js_src_util_NativeStack.cpp       Sun Dec  6 10:50:03 2020
@@ -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