pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/nodejs16/patches (lang/nodejs16) Fix build for Ne...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e492576aee9a
branches:  trunk
changeset: 380375:e492576aee9a
user:      mef <mef%pkgsrc.org@localhost>
date:      Sun Jun 05 06:56:15 2022 +0000

description:
(lang/nodejs16) Fix build for NetBSD 9.0, for OpenSSL 1.1.1d

the patch is copied from old nodejs(16) and modified some to apply,
not really checked under 9.0 environment except patch being applied.

diffstat:

 lang/nodejs16/patches/patch-src_crypto_crypto__rsa.cc |  37 +++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diffs (41 lines):

diff -r b506d47fb8c8 -r e492576aee9a lang/nodejs16/patches/patch-src_crypto_crypto__rsa.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs16/patches/patch-src_crypto_crypto__rsa.cc     Sun Jun 05 06:56:15 2022 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-src_crypto_crypto__rsa.cc,v 1.1 2022/06/05 06:56:15 mef Exp $
+
+Fix build with old OpenSSL 1.1.1d, as in NetBSD 9.0
+
+--- src/crypto/crypto_rsa.cc.orig      2022-06-02 04:23:16.000000000 +0900
++++ src/crypto/crypto_rsa.cc   2022-06-05 15:40:17.350690631 +0900
+@@ -13,6 +13,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::FunctionCallbackInfo;



Home | Main Index | Thread Index | Old Index