From e7521e99e261006ce85bd2d318a0c0af72fb34cf Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Nov 25 2021 11:55:28 +0000 Subject: 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 --- diff --git a/nodejs.spec b/nodejs.spec index f5afc1e..482d846 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}} @@ -531,6 +531,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 @@ -673,6 +674,10 @@ end %changelog +* Thu Nov 25 2021 Honza Horak - 1:16.12.0-2 +- Make sure binary node-gyp is executable + Resolves: #2026615 + * Mon Oct 25 2021 Stephen Gallagher - 1:16.12.0-1 - Update to 16.12.0 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.12.0