Properly check for valgrind arches

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-11-15 08:49:59 +02:00
parent 98ea16e241
commit ee4252c948
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -1,6 +1,6 @@
Name: libxdg-basedir
Version: 1.2.0
Release: 28%{?dist}
Release: 28.0.riscv64%{?dist}
Summary: Implementation of the XDG Base Directory Specifications
License: MIT
@ -10,7 +10,10 @@ Patch0: libxdg-basedir-leak.patch
Patch1: libxdg-basedir-valgrind-libtool.patch
Patch2: libxdg-basedir-basedir-bounds-error.patch
Patch3: libxdg-basedir-home-undef.patch
BuildRequires: valgrind libtool
%ifarch %{valgrind_arches}
BuildRequires: valgrind
%endif
BuildRequires: libtool
%description
The XDG Base Directory Specification defines where should user files
@ -64,7 +67,11 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%check
%ifarch %{valgrind_arches}
make check USE_VALGRIND=1
%else
make check
%endif
#env -i make check USE_VALGRIND=1
# Check that we get NULL for all things rooted in ENV{HOME} when running
# with HOME unset
@ -87,6 +94,9 @@ diff -u grep.NULL grep.HOME
%doc doc/html/
%changelog
* Tue Nov 15 2022 David Abdurachmanov <davidlt@rivosinc.com> - 1.2.0-28.0.riscv64
- Properly check for valgrind arches
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild