Fixup testing dependencies for GTS.

Relates: RHEL-7330
This commit is contained in:
Keith Seitz 2023-10-10 14:43:30 -04:00 committed by Guinevere Larsen
parent ba75ec63f8
commit 14a314a859
1 changed files with 13 additions and 9 deletions

View File

@ -11,10 +11,14 @@
# Turn off the brp-python-bytecompile automagic
%global _python_bytecompile_extra 0
# GTS magic sauce.
# GTS magic sauce. On GTS N (N >= 13), we always build using
# the system compiler and elfutils.
#
# For testing, we use the GTS (N-1) compiler and the system valgrind/elfutils.
%{?scl_package:%global scl gcc-toolset-13}
%global scl_prefix gcc-toolset-13-
%global scl_testing_prefix gcc-toolset-12-
%global scl_testing_cc_prefix gcc-toolset-12-
BuildRequires: scl-utils-build
# Only build on x86 for RHEL6 SCL, defining missing parallel make macros.
@ -318,7 +322,7 @@ BuildRequires: elfutils-debuginfod-client-devel
%if 0%{!?el6:1} && 0%{?scl:1}
%global have_debuginfod 1
%global use_scl_for_debuginfod 1
BuildRequires: %{?scl_prefix}elfutils-debuginfod-client-devel
BuildRequires: elfutils-debuginfod-client-devel
%endif
%endif
@ -347,14 +351,14 @@ BuildRequires: boost-devel
BuildRequires: sharutils dejagnu
# gcc-objc++ is not covered by the GDB testsuite.
# Test supported SCL toolchain components.
BuildRequires: %{?scl_testing_prefix}gcc %{?scl_testing_prefix}gcc-c++ %{?scl_testing_prefix}gcc-gfortran
BuildRequires: %{?scl_testing_cc_prefix}gcc %{?scl_testing_cc_prefix}gcc-c++ %{?scl_testing_cc_prefix}gcc-gfortran
%if 0%{!?rhel:1} || 0%{?rhel} < 8
BuildRequires: gcc-objc
%endif
# We don't support gcc-gdb-plugin on RHEL anymore.
%if 0%{!?rhel:1}
BuildRequires: %{?scl_testing_prefix}gcc-gdb-plugin%{?_isa}
BuildRequires: gcc-gdb-plugin%{?_isa}
%endif
%if 0%{?rhel:1} && 0%{?rhel} < 7
BuildRequires: gcc-java libgcj%{bits_local} libgcj%{bits_other}
@ -424,12 +428,12 @@ BuildRequires: libquadmath%{bits_local} libquadmath%{bits_other}
BuildRequires: glibc-static%{bits_other}
%endif
%ifarch s390x
BuildRequires: %{?scl_testing_preifx}valgrind%{bits_local}
BuildRequires: valgrind%{bits_local}
%if 0%{!?rhel:1} || 0%{?rhel} > 7
BuildRequires: %{?scl_testing_prefix}valgrind%{bits_local} valgrind%{bits_other}
BuildRequires: valgrind%{bits_local} valgrind%{bits_other}
%endif
%else
BuildRequires: %{?scl_testing_prefix}valgrind%{bits_local} valgrind%{bits_other}
BuildRequires: valgrind%{bits_local} valgrind%{bits_other}
%endif
%if 0%{!?rhel:1} || 0%{?rhel} > 6
BuildRequires: xz
@ -438,7 +442,7 @@ BuildRequires: xz
BuildRequires: rust
%endif
%if 0%{!?el6:1}
BuildRequires: %{?scl_testing_prefix}elfutils-debuginfod
BuildRequires: elfutils-debuginfod
%endif
%endif # 0%{?_with_testsuite:1}
BuildRequires: make gmp-devel