diff --git a/node-gyp-node12.patch b/node-gyp-node12.patch deleted file mode 100644 index 0d84ead7078cd2e60eaa481d7c450a7e49337861..0000000000000000000000000000000000000000 --- 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 7e18b702b1e38545ab2c615ee0e6ac0598d4ce18..25ffc1dbfbaf63d7bc3439f2c04f6740ebb808c4 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