From 7554242d89081ff95621e8cebf1caae599f81da2 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Fri, 22 Aug 2025 19:35:49 +0000 Subject: [PATCH] RISC-V fixes --- binutils.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/binutils.spec b/binutils.spec index 46e07bc..1555820 100644 --- a/binutils.spec +++ b/binutils.spec @@ -27,7 +27,7 @@ Name: %{?scl_prefix}binutils # The variable %%{source} (see below) should be set to indicate which of these # origins is being used. Version: 2.44 -Release: 7%{?dist} +Release: 7%{?dist}.alma.1 License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later URL: https://sourceware.org/binutils @@ -125,6 +125,9 @@ URL: https://sourceware.org/binutils %bcond_without systemzlib # Default: run the testsuites. %bcond_without testsuite +%ifarch riscv64 +%bcond_with testsuite +%endif # Default: use the xxhash-devel library. %bcond_without xxhash # Default: do not create cross targeted versions of the binutils. @@ -360,6 +363,10 @@ Provides: bundled(libiberty) # Perl, sed and touch are all used in the %%prep section of this spec file. BuildRequires: autoconf, automake, perl, sed, coreutils, make +%ifarch riscv64 +BuildRequires: bison +%endif + %if %{with clang} BuildRequires: clang compiler-rt %else @@ -1102,7 +1109,7 @@ run_tests() # Disable LTO on Arm due to: # https://bugzilla.redhat.com/show_bug.cgi?id=1918924 -%ifarch %{arm} +%ifarch %{arm} riscv64 %define enable_lto 0 %endif @@ -1576,6 +1583,11 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Fri Aug 22 2025 Andrew Lukoshko - 2.44-7.alma.1 +- Add bison to BuildRequires for RISC-V +- Disable LTO for RISC-V +- Disable testsuite for RISC-V + * Mon Aug 11 2025 Nick Clifton - 2.44-7 - Remove uneeded glibc/powerpc patch. (RHEL-100160)