Really, finally fix npm dep executable permissions

Resolves: rhbz#1630937

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2018-09-19 11:35:24 -04:00
parent a52c593fa8
commit 4614b5fef1
No known key found for this signature in database
GPG key ID: 7A25556236BAA3A3

View file

@ -24,7 +24,7 @@
%global nodejs_patch 0 %global nodejs_patch 0
%global nodejs_abi %{nodejs_major}.%{nodejs_minor} %global nodejs_abi %{nodejs_major}.%{nodejs_minor}
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch} %global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}
%global nodejs_release 1 %global nodejs_release 2
# == Bundled Dependency Versions == # == Bundled Dependency Versions ==
# v8 - from deps/v8/include/v8-version.h # v8 - from deps/v8/include/v8-version.h
@ -407,8 +407,9 @@ rm -f %{buildroot}/%{_defaultdocdir}/node/lldb_commands.py \
# unnecessary automatic dependencies to be added. Make them not executable. # unnecessary automatic dependencies to be added. Make them not executable.
# Skip the npm bin directory or the npm binary will not work. # Skip the npm bin directory or the npm binary will not work.
find %{buildroot}%{_prefix}/lib/node_modules/npm \ find %{buildroot}%{_prefix}/lib/node_modules/npm \
-path bin -o -prune \ -not -path %{buildroot}%{_prefix}/lib/node_modules/npm/bin/* \
-type f -executable -exec chmod -x {} \; -executable -type f \
-exec chmod -x {} \;
%check %check
@ -492,6 +493,9 @@ end
%{_pkgdocdir}/npm/doc %{_pkgdocdir}/npm/doc
%changelog %changelog
* Wed Sep 19 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.10.0-2
- Really, finally fix npm dep executable permissions
* Tue Sep 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.10.0-1 * Tue Sep 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.10.0-1
- Update to 10.10.0 - Update to 10.10.0
- https://nodejs.org/en/blog/release/v10.10.0/ - https://nodejs.org/en/blog/release/v10.10.0/