From c5201d52dc53dd5be241a2f62b631e640d60d529 Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Sep 04 2019 08:58:40 +0000 Subject: Added nodejs as buildrequire --- diff --git a/node-stdout-nonblocking-wrapper b/node-stdout-nonblocking-wrapper new file mode 100755 index 0000000..b2814b8 --- /dev/null +++ b/node-stdout-nonblocking-wrapper @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/node "$@" 2>&1 | cat - diff --git a/thunderbird.spec b/thunderbird.spec index 4b9df9e..5308cb8 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -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 {} ';'