pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/nodejs nodejs: fix SIGABRT on NetBSD/i386 8.0 by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/394223aebed7
branches:  trunk
changeset: 331701:394223aebed7
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sat Mar 23 11:15:18 2019 +0000

description:
nodejs: fix SIGABRT on NetBSD/i386 8.0 by pulling upstream PR #21848.

Also apply similar ifdefs for NetBSD as FreeBSD and OpenBSD.
Now nodejs binary won't fail during lang/npm and www/firefox builds
on NetBSD/i386 8.0.

Bump PKGREVISION.

No particular comments on pkgsrc-bug@:
 http://mail-index.netbsd.org/pkgsrc-bugs/2019/03/19/msg066102.html
Should close PR pkg/53497, PR pkg/53758, PR pkg/53792, and PR pkg/53794.

diffstat:

 lang/nodejs/Makefile                                         |   3 +-
 lang/nodejs/distinfo                                         |   3 +-
 lang/nodejs/patches/patch-deps_openssl_openssl_crypto_init.c |  45 ++++++++++++
 3 files changed, 49 insertions(+), 2 deletions(-)

diffs (78 lines):

diff -r 64fe482bf742 -r 394223aebed7 lang/nodejs/Makefile
--- a/lang/nodejs/Makefile      Sat Mar 23 10:55:06 2019 +0000
+++ b/lang/nodejs/Makefile      Sat Mar 23 11:15:18 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.157 2019/03/07 08:47:45 adam Exp $
+# $NetBSD: Makefile,v 1.158 2019/03/23 11:15:18 tsutsui Exp $
 
 DISTNAME=      node-v10.15.3
+PKGREVISION=   1
 
 USE_LANGUAGES= c gnu++14
 
diff -r 64fe482bf742 -r 394223aebed7 lang/nodejs/distinfo
--- a/lang/nodejs/distinfo      Sat Mar 23 10:55:06 2019 +0000
+++ b/lang/nodejs/distinfo      Sat Mar 23 11:15:18 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.147 2019/03/07 08:47:45 adam Exp $
+$NetBSD: distinfo,v 1.148 2019/03/23 11:15:18 tsutsui Exp $
 
 SHA1 (node-v10.15.3.tar.gz) = b64774eea1a877829d6882b92dd86af8d3459498
 RMD160 (node-v10.15.3.tar.gz) = bcba4edaed0f63bfb0b0e5228724fbac70424dad
@@ -17,6 +17,7 @@
 SHA1 (patch-deps_openssl_openssl-cl__no__asm.gypi) = 73368f336dbe500e45f0ba6bbb7656416a27b294
 SHA1 (patch-deps_openssl_openssl__asm.gypi) = b85e1f5a9f862d469afcb36ff6e1ad202bea704a
 SHA1 (patch-deps_openssl_openssl__no__asm.gypi) = b549ea34f51e26669a41a64da0db10e92f0d0a99
+SHA1 (patch-deps_openssl_openssl_crypto_init.c) = c21b30ff15f0442208b6da457f2ab3cc487d0a59
 SHA1 (patch-deps_uv_common.gypi) = d38a9c8d9e3522f15812aec2f5b1e1e636d4bab3
 SHA1 (patch-deps_uv_src_unix_netbsd.c) = c19ff4024f828018364793d9dea013c991cfb93f
 SHA1 (patch-deps_v8_src_arm_assembler-arm-inl.h) = 56a5d6539d31e19673ef61cc91f003109c69dc29
diff -r 64fe482bf742 -r 394223aebed7 lang/nodejs/patches/patch-deps_openssl_openssl_crypto_init.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-deps_openssl_openssl_crypto_init.c      Sat Mar 23 11:15:18 2019 +0000
@@ -0,0 +1,45 @@
+$NetBSD: patch-deps_openssl_openssl_crypto_init.c,v 1.1 2019/03/23 11:15:18 tsutsui Exp $
+
+- pull fix from https://github.com/nodejs/node/pull/21848/commits/9868d403221bc9d566cb88a37510a182b7fbad3b
+- apply similar ifdefs for NetBSD as FreeBSD and OpenBSD
+
+--- deps/openssl/openssl/crypto/init.c.orig    2019-03-05 15:16:27.000000000 +0000
++++ deps/openssl/openssl/crypto/init.c
+@@ -121,7 +121,8 @@ DEFINE_RUN_ONCE_STATIC(ossl_init_load_cr
+ #ifdef OPENSSL_INIT_DEBUG
+     fprintf(stderr, "OPENSSL_INIT: ossl_init_load_crypto_nodelete()\n");
+ #endif
+-#if !defined(OPENSSL_NO_DSO) && !defined(OPENSSL_USE_NODELETE)
++#if defined(OPENSSL_NO_STATIC_ENGINE) && \
++    !defined(OPENSSL_NO_DSO) && !defined(OPENSSL_USE_NODELETE)
+ # ifdef DSO_WIN32
+     {
+         HMODULE handle = NULL;
+@@ -285,7 +286,7 @@ DEFINE_RUN_ONCE_STATIC(ossl_init_engine_
+     return 1;
+ }
+ # if !defined(OPENSSL_NO_HW) && \
+-    (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV))
++    (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(HAVE_CRYPTODEV))
+ static CRYPTO_ONCE engine_cryptodev = CRYPTO_ONCE_STATIC_INIT;
+ DEFINE_RUN_ONCE_STATIC(ossl_init_engine_cryptodev)
+ {
+@@ -616,7 +617,7 @@ int OPENSSL_init_crypto(uint64_t opts, c
+             && !RUN_ONCE(&engine_openssl, ossl_init_engine_openssl))
+         return 0;
+ # if !defined(OPENSSL_NO_HW) && \
+-    (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV))
++    (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(HAVE_CRYPTODEV))
+     if ((opts & OPENSSL_INIT_ENGINE_CRYPTODEV)
+             && !RUN_ONCE(&engine_cryptodev, ossl_init_engine_cryptodev))
+         return 0;
+@@ -666,7 +667,8 @@ int OPENSSL_atexit(void (*handler)(void)
+ {
+     OPENSSL_INIT_STOP *newhand;
+ 
+-#if !defined(OPENSSL_NO_DSO) && !defined(OPENSSL_USE_NODELETE)
++#if defined(OPENSSL_NO_STATIC_ENGINE) && \
++    !defined(OPENSSL_NO_DSO) && !defined(OPENSSL_USE_NODELETE)
+     {
+         union {
+             void *sym;



Home | Main Index | Thread Index | Old Index