| |
@@ -12,7 +12,7 @@
|
| |
|
| |
Name: nodejs-yarn
|
| |
Version: 1.13.0
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Fast, reliable, and secure dependency management.
|
| |
Url: https://github.com/yarnpkg/yarn
|
| |
# we need tarball with node_modules
|
| |
@@ -48,12 +48,17 @@
|
| |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
| |
|
| |
cp -pr package.json lib bin node_modules \
|
| |
- %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
| |
+ %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
| |
|
| |
mkdir -p %{buildroot}%{_bindir}
|
| |
ln -sf ../lib/node_modules/yarn/bin/yarn.js %{buildroot}%{_bindir}/nodejs-yarn
|
| |
ln -sf ../lib/node_modules/yarn/bin/yarn.js %{buildroot}%{_bindir}/yarnpkg
|
| |
|
| |
+ # Remove executable bits from bundled dependency tests
|
| |
+ find %{buildroot}%{nodejs_sitelib}/%{npm_name}/node_modules \
|
| |
+ -ipath '*/test/*' -type f -executable \
|
| |
+ -exec chmod -x '{}' +
|
| |
+
|
| |
#%{nodejs_symlink_deps}
|
| |
|
| |
%if 0%{?enable_tests}
|
| |
@@ -72,6 +77,10 @@
|
| |
%license LICENSE
|
| |
|
| |
%changelog
|
| |
+ * Wed Feb 13 2019 Jan Staněk <jstanek@redhat.com> - 1.13.0-2
|
| |
+ - Remove executable bits from bundled tests
|
| |
+ - Related: rhbz#1674073
|
| |
+
|
| |
* Thu Feb 07 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.13.0-1
|
| |
- Update
|
| |
|
| |
The executable bit on the tests from bundled dependency triggers shebang mangling.
As the original shebangs are not valid to begin with, the mangling fails.
Removing the executable bit disables this process.
The other option is to point the shebang to
/usr/bin/coffee
and add a dependency oncoffee-script
.Since these test are for bundled dependencies and not for the package itself (which has its own tests),
I feel that this would add an unnecessary maintenance burden.