From 6dff3eb3c6ec8da0c6c1dfb9cdd71768c2519903 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 18 Apr 2025 11:49:43 +0200 Subject: [PATCH] Properly check valgrind arches This change makes it possible to build the package on riscv64, an architecture that is not yet supported by valgrind. Resolves: RHEL-87803 Signed-off-by: David Abdurachmanov --- sed.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sed.spec b/sed.spec index a30515f..6e4726d 100644 --- a/sed.spec +++ b/sed.spec @@ -3,7 +3,7 @@ Summary: A GNU stream text editor Name: sed Version: 4.9 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL-3.0-or-later URL: http://sed.sourceforge.net/ Source0: ftp://ftp.gnu.org/pub/gnu/sed/sed-%{version}.tar.xz @@ -20,7 +20,11 @@ BuildRequires: perl(FileHandle) # invalid-mb-seq-UMR.sh: skipped test: locale 'ja_JP' is buggy # mb-charclass-non-utf8.sh: skipped test: ja_JP shift-jis locale not found BuildRequires: glibc-langpack-el, glibc-langpack-en -BuildRequires: glibc-langpack-ru, valgrind +BuildRequires: glibc-langpack-ru + +%ifarch %{valgrind_arches} +BuildRequires: valgrind +%endif Provides: /bin/sed @@ -64,6 +68,10 @@ rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir %{_mandir}/man1/sed.1* %changelog +* Fri Apr 18 2025 David Abdurachmanov - 4.9-4 +- Properly check valgrind arches (fixes riscv64 build) + Resolves: RHEL-87803 + * Tue Oct 29 2024 Troy Dawson - 4.9-3 - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018