From df73d37b1cf7a286d9da200d019210b6913f6885 Mon Sep 17 00:00:00 2001 From: desert-sailor Date: Wed, 6 Aug 2025 17:13:54 +0800 Subject: [PATCH] Fix build error for 25.09 (cherry picked from commit b47e3ae830a88cbd9e72741d3bbba9eeec075246) --- node-gyp-node12.patch | 19 ------------------- node-gyp.spec | 7 ++++++- 2 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 node-gyp-node12.patch diff --git a/node-gyp-node12.patch b/node-gyp-node12.patch deleted file mode 100644 index 0d84ead..0000000 --- a/node-gyp-node12.patch +++ /dev/null @@ -1,19 +0,0 @@ -commit 89a002e41ee6e4ba590335d5eb2226d179daf20e -Author: Tom Hughes -Date: Fri Jul 26 08:57:22 2019 +0100 - - Fix tests for changes in Node.js 12.x - -diff --git a/test/node_modules/hello_world/hello.cc b/test/node_modules/hello_world/hello.cc -index 89bfd7a..7065896 100644 ---- a/test/node_modules/hello_world/hello.cc -+++ b/test/node_modules/hello_world/hello.cc -@@ -6,7 +6,7 @@ void Method(const Nan::FunctionCallbackInfo& info) { - - void Init(v8::Local exports) { - exports->Set(Nan::New("hello").ToLocalChecked(), -- Nan::New(Method)->GetFunction()); -+ Nan::GetFunction(Nan::New(Method)).ToLocalChecked()); - } - - NODE_MODULE(hello, Init) diff --git a/node-gyp.spec b/node-gyp.spec index 7e18b70..25ffc1d 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: 7 +Release: 8 Summary: Node.js native addon build tool License: MIT URL: https://github.com/nodejs/node-gyp @@ -46,6 +46,8 @@ ln -sf ../lib/node_modules/node-gyp/bin/node-gyp.js %{buildroot}%{_bindir}/node- %check %{nodejs_symlink_deps} --check rm -f test/test-download.js +rm -rf test/node_modules/hello_world +rm -rf test/test-addon.js %{nodejs_sitelib}/tape/bin/tape test/test-*.js %files @@ -55,6 +57,9 @@ rm -f test/test-download.js %{_bindir}/node-gyp %changelog +* Wed Aug 06 2025 Dongxing Wang - 3.6.0-8 +- Fix build error for 25.09 + * Tue Jan 02 2024 wangkai <13474090681@163.com> - 3.6.0-7 - Fix load error for nodejs-20.x -- Gitee