From 23764b6e3225a69211a2a97706af17dd77ed27d7 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Thu, 25 Nov 2021 11:55:28 +0000 Subject: [PATCH] Make sure binary node-gyp is executable This is the same change as already applied in CentOS Stream 9: https://gitlab.com/redhat/centos-stream/rpms/nodejs/-/blob/c9s/nodejs.spec#L570 Resolves: #2026615 --- nodejs.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nodejs.spec b/nodejs.spec index f08747a..698e4b9 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -8,7 +8,7 @@ # This is used by both the nodejs package and the npm subpackage that # has a separate version - the name is special so that rpmdev-bumpspec # will bump this rather than adding .1 to the end. -%global baserelease 1 +%global baserelease 2 %{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} @@ -537,6 +537,7 @@ find %{buildroot}%{_prefix}/lib/node_modules/npm \ -exec chmod -x {} \; # The above command is a little overzealous. Add a few permissions back. +chmod 0755 %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp chmod 0755 %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js # Corepack contains a number of executable"shims", including some for Windows @@ -679,6 +680,10 @@ end %changelog +* Thu Nov 25 2021 Honza Horak - 1:16.13.0-2 +- Make sure binary node-gyp is executable + Resolves: #2026615 + * Mon Nov 01 2021 Stephen Gallagher - 1:16.13.0-1 - Update to 16.13.0 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.13.0