From 30eb43b2b62cc29c01c30e282c075daeaf587b3f Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Thu, 25 Jul 2019 08:04:59 +0200 Subject: Added node js wrapper to fix koji freezes --- firefox.spec | 8 ++++++++ node-stdout-nonblocking-wrapper | 2 ++ 2 files changed, 10 insertions(+) create mode 100755 node-stdout-nonblocking-wrapper diff --git a/firefox.spec b/firefox.spec index c2986f2..3ef4fbd 100644 --- a/firefox.spec +++ b/firefox.spec @@ -109,6 +109,7 @@ Source28: firefox-wayland.sh.in Source29: firefox-wayland.desktop Source30: firefox-x11.sh.in Source31: firefox-x11.desktop +Source32: node-stdout-nonblocking-wrapper # Build patches Patch3: mozilla-build-arm.patch @@ -435,6 +436,8 @@ echo "ac_add_options --without-system-libvpx" >> .mozconfig echo "ac_add_options --disable-ion" >> .mozconfig %endif +echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig + # Remove executable bit to make brp-mangle-shebangs happy. chmod -x third_party/rust/itertools/src/lib.rs @@ -467,6 +470,9 @@ echo "Generate big endian version of config/external/icu/data/icud58l.dat" 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 {} ';' @@ -921,6 +927,8 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog * Wed Jul 24 2019 Martin Stransky - 68.0.1-2 - Added fix for rhbz#1709840 +- Added node js wrapper to fix koji freezes + (https://pagure.io/fedora-infrastructure/issue/8026) * Mon Jul 22 2019 Martin Stransky - 68.0.1-1 - Updated to 68.0.1 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 - -- cgit