pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/nodejs



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue Jul  2 17:09:26 UTC 2019

Modified Files:
        pkgsrc/lang/nodejs: distinfo
Added Files:
        pkgsrc/lang/nodejs/patches:
            patch-deps_openssl_openssl_crypto_rand_rand__unix.c

Log Message:
nodejs: Work around getentropy issue on SunOS.

Noticed by Stefan Husch in joyent/pkgsrc#203.


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 pkgsrc/lang/nodejs/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/nodejs/patches/patch-deps_openssl_openssl_crypto_rand_rand__unix.c

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

Modified files:

Index: pkgsrc/lang/nodejs/distinfo
diff -u pkgsrc/lang/nodejs/distinfo:1.149 pkgsrc/lang/nodejs/distinfo:1.150
--- pkgsrc/lang/nodejs/distinfo:1.149   Fri May 31 20:52:00 2019
+++ pkgsrc/lang/nodejs/distinfo Tue Jul  2 17:09:25 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.149 2019/05/31 20:52:00 adam Exp $
+$NetBSD: distinfo,v 1.150 2019/07/02 17:09:25 jperkin Exp $
 
 SHA1 (node-v10.16.0.tar.gz) = 7e228646ef32c7eb4e509c220201366d6e86cc36
 RMD160 (node-v10.16.0.tar.gz) = 7a5610db052012bff785a16a522703c458f725d5
@@ -18,6 +18,7 @@ SHA1 (patch-deps_openssl_openssl-cl__no_
 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) = e544fb218fd927a6d7097df3718c145750198555
+SHA1 (patch-deps_openssl_openssl_crypto_rand_rand__unix.c) = ba8d4602c3386801ad8d3c33c757c69ad3d25a34
 SHA1 (patch-deps_uv_common.gypi) = d38a9c8d9e3522f15812aec2f5b1e1e636d4bab3
 SHA1 (patch-deps_uv_src_unix_netbsd.c) = 76b27ae86aa80582554ee824146ee7c42c33883b
 SHA1 (patch-deps_v8_src_arm_assembler-arm-inl.h) = 56a5d6539d31e19673ef61cc91f003109c69dc29

Added files:

Index: pkgsrc/lang/nodejs/patches/patch-deps_openssl_openssl_crypto_rand_rand__unix.c
diff -u /dev/null pkgsrc/lang/nodejs/patches/patch-deps_openssl_openssl_crypto_rand_rand__unix.c:1.1
--- /dev/null   Tue Jul  2 17:09:26 2019
+++ pkgsrc/lang/nodejs/patches/patch-deps_openssl_openssl_crypto_rand_rand__unix.c      Tue Jul  2 17:09:25 2019
@@ -0,0 +1,16 @@
+$NetBSD: patch-deps_openssl_openssl_crypto_rand_rand__unix.c,v 1.1 2019/07/02 17:09:25 jperkin Exp $
+
+Don't try to automatically call getentropy(3C) on SunOS, it fails if
+built on a platform that doesn't have it.
+
+--- deps/openssl/openssl/crypto/rand/rand_unix.c.orig  2019-05-28 21:32:16.000000000 +0000
++++ deps/openssl/openssl/crypto/rand/rand_unix.c
+@@ -301,7 +301,7 @@ static ssize_t syscall_random(void *buf,
+      * - Linux since 3.17 with glibc 2.25
+      * - FreeBSD since 12.0 (1200061)
+      */
+-#  if defined(__GNUC__) && __GNUC__>=2 && defined(__ELF__) && !defined(__hpux)
++#  if defined(__GNUC__) && __GNUC__>=2 && defined(__ELF__) && !defined(__hpux) && !defined(__sun)
+     extern int getentropy(void *buffer, size_t length) __attribute__((weak));
+ 
+     if (getentropy != NULL)



Home | Main Index | Thread Index | Old Index