From 1057f0a0a2b5361d19d4134cfde82bfa701619d6 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 23 Jan 2023 15:50:01 +0100 Subject: [PATCH] fix nodejs issue --- chromium.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 77733e99..0a1df2b9 100644 --- a/chromium.spec +++ b/chromium.spec @@ -510,7 +510,9 @@ BuildRequires: minizip-compat-devel %endif # RHEL 8 needs newer nodejs -%if ! 0%{?rhel} == 8 +%if 0%{?rhel} == 8 +# nothing +%else BuildRequires: nodejs %endif @@ -1388,7 +1390,7 @@ fi %if %{bootstrap} tools/gn/bootstrap/bootstrap.py --gn-gen-args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %else -cp -a %{_bindir}/gn %{builddir}/ +mkdir -p %{builddir} && cp -a %{_bindir}/gn %{builddir}/ %endif %{builddir}/gn --script-executable=%{chromium_pybin} gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %{builddir}