Add bison to BuildRequires for RISC-V

Disable LTO for RISC-V

Disable testsuite for RISC-V

Add basic support for RISC-V 64-bit EFI objects (backported from 2.44)
This commit is contained in:
Andrew Lukoshko 2025-05-14 14:40:13 +00:00 committed by root
parent 4544001b82
commit 2f3cc45343
2 changed files with 1027 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities
Name: binutils%{?_with_debug:-debug}
Version: 2.41
Release: 53%{?dist}
Release: 53%{?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
@ -99,6 +99,9 @@ URL: https://sourceware.org/binutils
%bcond_without docs
# Default: Always run the testsuite.
%bcond_without testsuite
%ifarch riscv64
%bcond_with testsuite
%endif
# Default: support debuginfod.
%bcond_without debuginfod
# Default: build binutils-gprofng package.
@ -386,6 +389,9 @@ Patch98: bin.ppc64.gcc.patch
# Lifetime: TEMPORARY
Patch99: binutils-suppress-ld-align-tests.patch
# AlmaLinux Patch
Patch100: 0001-Add-basic-support-for-RISC-V-64-bit-EFI-objects.patch
#----------------------------------------------------------------------------
Provides: bundled(libiberty)
@ -446,6 +452,10 @@ BuildRequires: zlib-devel
BuildRequires: elfutils-debuginfod-client-devel
%endif
%ifarch riscv64
BuildRequires: bison
%endif
Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives
# We also need rm.
@ -1019,6 +1029,9 @@ run_tests()
%ifarch %{arm}
%define enable_lto 0
%endif
%ifarch riscv64
%define enable_lto 0
%endif
%if !0%{?enable_lto}
%global _lto_cflags %{nil}
@ -1416,6 +1429,12 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Wed May 14 2025 Andrew Lukoshko <alukoshko@almalinux.org> - 2.41-53.alma.1
- Add bison to BuildRequires for RISC-V
- Disable LTO for RISC-V
- Disable testsuite for RISC-V
- Add basic support for RISC-V 64-bit EFI objects (backported from 2.44)
* Fri Feb 07 2025 Nick Clifton <nickc@redhat.com> - 2.41-53
- Fix seg-fault in AArch64 linker when building u-boot. (RHEL-78233)