Added nodejs as buildrequire

This commit is contained in:
Jan Horak 2019-09-04 10:58:40 +02:00
parent 72ae43e747
commit c5201d52dc
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/node "$@" 2>&1 | cat -

View File

@ -110,6 +110,7 @@ Source20: thunderbird.desktop
Source21: thunderbird.sh.in
Source28: thunderbird-wayland.sh.in
Source29: thunderbird-wayland.desktop
Source32: node-stdout-nonblocking-wrapper
# Build patches
Patch9: mozilla-build-arm.patch
@ -201,6 +202,8 @@ BuildRequires: python2-devel
%if !0%{?use_bundled_cbindgen}
BuildRequires: cbindgen
%endif
BuildRequires: nodejs
BuildRequires: nasm >= 1.13
Suggests: u2f-hidraw-policy
@ -383,6 +386,8 @@ echo "ac_add_options --enable-crashreporter" >> .mozconfig
echo "ac_add_options --disable-crashreporter" >> .mozconfig
%endif
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig
#===============================================================================
%build
@ -423,6 +428,9 @@ esac
rm -f config/external/icu/data/icudt*l.dat
%endif
mkdir %{_buildrootdir}/bin || :
cp %{SOURCE32} %{_buildrootdir}/bin || :
# Update the various config.guess to upstream release for aarch64 support
find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'