From 7d5794921170f90f7f8a83b136a0cbb6ad583424 Mon Sep 17 00:00:00 2001 From: Zuzana Svetlikova Date: Mon, 20 Jun 2022 17:08:17 +0200 Subject: [PATCH] Disable LTO Related: #1990096 Build without python3 fixup by default --- nodejs.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/nodejs.spec b/nodejs.spec index e8cea9d..0d3a0d6 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -24,13 +24,20 @@ %bcond_with bundled %endif -%bcond_without python3_fixup +%bcond_with python3_fixup + +# LTO is currently broken on Node.js builds +%define _lto_cflags %{nil} + +# Heavy-handed approach to avoiding issues with python +# bytecompiling files in the node_modules/ directory +%global __python %{__python3} # == Master Relase == # This is used by both the nodejs package and the npm subpackage that # has a separate version - the name is special so that rpmdev-bumpspec # will bump this rather than adding .1 to the end. -%global baserelease 1 +%global baserelease 2 %{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} @@ -692,6 +699,11 @@ end %changelog +* Mon Jun 20 2022 Zuzana Svetlikova - 1:18.2.0-2 +- Disable LTO +- Related: #1990096 +- Build without python3 fixup by default + * Tue May 31 2022 Jan Staněk - 1:18.2.0-1 - Rebase to version 18.2.0