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 build with old OpenSSL before ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50e17f9f345f
branches:  trunk
changeset: 380017:50e17f9f345f
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri May 27 17:02:36 2022 +0000

description:
nodejs: fix build with old OpenSSL before 1.1.1e

diffstat:

 lang/nodejs/distinfo                                |   3 +-
 lang/nodejs/patches/patch-src_crypto_crypto__rsa.cc |  37 +++++++++++++++++++++
 2 files changed, 39 insertions(+), 1 deletions(-)

diffs (58 lines):

diff -r e07e4e92da87 -r 50e17f9f345f lang/nodejs/distinfo
--- a/lang/nodejs/distinfo      Fri May 27 16:59:50 2022 +0000
+++ b/lang/nodejs/distinfo      Fri May 27 17:02:36 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.213 2022/05/18 18:26:51 adam Exp $
+$NetBSD: distinfo,v 1.214 2022/05/27 17:02:36 tnn Exp $
 
 BLAKE2s (node-v18.2.0.tar.xz) = f21fc01f787369be3ee9a37ec61723b36a2ed3f58aca4d28866daf8dbb07137a
 SHA512 (node-v18.2.0.tar.xz) = 9d7d6017374bc14e9cd447bceb3ab9d3b4d421c30d422c6f4eb429c67f1deb2c04778216cccb11ecbe510f18b821891d9311c035f5a81cc6a5e8adae202e9b33
@@ -18,6 +18,7 @@
 SHA1 (patch-deps_v8_src_heap_code-range.cc) = b281f76f4e3d8e562f596235049a6be7c5ff4de2
 SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3
 SHA1 (patch-node.gypi) = 4a104dba6c22702211009bc60a6be6f87554e2fa
+SHA1 (patch-src_crypto_crypto__rsa.cc) = 9ffd8de2fac76014696c8dfac7ba200eab56f6f6
 SHA1 (patch-src_inspector__agent.cc) = 3fd3d71f9d6013a6eb2a79e0442b31d2e2408a2f
 SHA1 (patch-src_node__postmortem__metadata.cc) = 9938482d724ad6636af5dc3fa719ec26ed8539ff
 SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = 570fe9889767c555468a225cd7f0b398ea6a193c
diff -r e07e4e92da87 -r 50e17f9f345f lang/nodejs/patches/patch-src_crypto_crypto__rsa.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-src_crypto_crypto__rsa.cc       Fri May 27 17:02:36 2022 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-src_crypto_crypto__rsa.cc,v 1.1 2022/05/27 17:02:36 tnn Exp $
+
+Fix build with old OpenSSL 1.1.1d, as in NetBSD 9.0
+
+--- src/crypto/crypto_rsa.cc.orig      2022-05-17 11:37:46.000000000 +0000
++++ src/crypto/crypto_rsa.cc
+@@ -12,6 +12,30 @@
+ #include <openssl/bn.h>
+ #include <openssl/rsa.h>
+ 
++#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER <0x1010105fL
++struct rsa_st {
++  int pad;
++  int32_t version;
++  void *meth;
++  void *engine;
++  void *n;
++  void *e;
++  void *d;
++  void *p;
++  void *q;
++  void *dmp1;
++  void *dmq1;
++  void *iqmp;
++  void *prime_infos;
++  RSA_PSS_PARAMS *pss;
++};
++
++static const RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r)
++{
++  return r->pss;
++}
++#endif
++
+ namespace node {
+ 
+ using v8::ArrayBuffer;



Home | Main Index | Thread Index | Old Index