From 61deaedc0ad73151093d873b48f63c6b145b0ef3 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Tue, 2 Jan 2024 10:23:56 +0800 Subject: [PATCH] Fix load error for nodejs-20.x --- node-gyp.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/node-gyp.spec b/node-gyp.spec index 812500a..7e18b70 100644 --- a/node-gyp.spec +++ b/node-gyp.spec @@ -1,7 +1,7 @@ %{?nodejs_find_provides_and_requires} Name: node-gyp Version: 3.6.0 -Release: 6 +Release: 7 Summary: Node.js native addon build tool License: MIT URL: https://github.com/nodejs/node-gyp @@ -27,6 +27,8 @@ program which is removed for node v0.8. %prep %autosetup -p1 +# Fix load error for nodejs-20.x https://github.com/nwjs/nw-gyp/issues/155#issuecomment-1308701166 +sed -i 's/process.config || {}/JSON.parse(JSON.stringify(process.config)) || {}/g' lib/configure.js cp -p %{SOURCE1} addon-rpm.gypi %nodejs_fixdep glob "^6.0.4" %nodejs_fixdep minimatch "^3.0.0" @@ -53,6 +55,9 @@ rm -f test/test-download.js %{_bindir}/node-gyp %changelog +* Tue Jan 02 2024 wangkai <13474090681@163.com> - 3.6.0-7 +- Fix load error for nodejs-20.x + * Fri Feb 10 2023 xu_ping - 3.6.0-6 - fix test error -- Gitee