From 28229bfc7d21f82dfd21f3313698b8508d0036ea Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 5 Jun 2025 11:30:14 -0400 Subject: [PATCH] Don't require libasan8/libtsan2 on RHEL10 Related: RHEL-81745 --- gcc-toolset-15-gcc.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc-toolset-15-gcc.spec b/gcc-toolset-15-gcc.spec index 7d40857..965941a 100644 --- a/gcc-toolset-15-gcc.spec +++ b/gcc-toolset-15-gcc.spec @@ -601,7 +601,11 @@ which is used for -fsanitize=address instrumented programs. %package -n %{?scl_prefix}libasan-devel Summary: The Address Sanitizer static library +%if 0%{?rhel} < 10 Requires: libasan8%{_isa} >= 12.1.1 +%else +Requires: libasan%{_isa} >= 14.2.1 +%endif Obsoletes: libasan5 <= 8.3.1 %description -n %{?scl_prefix}libasan-devel @@ -616,7 +620,7 @@ which is used for -fsanitize=hwaddress instrumented programs. %package -n %{?scl_prefix}libhwasan-devel Summary: The Hardware-assisted Address Sanitizer static library -Requires: libhwasan >= 13.1.1 +Requires: libhwasan >= 14.2.1 %description -n %{?scl_prefix}libhwasan-devel This package contains Hardware-assisted Address Sanitizer static runtime @@ -631,7 +635,11 @@ which is used for -fsanitize=thread instrumented programs. %package -n %{?scl_prefix}libtsan-devel Summary: The Thread Sanitizer static library +%if 0%{?rhel} < 10 Requires: libtsan2%{_isa} >= 12.1.1 +%else +Requires: libtsan%{_isa} >= 14.2.1 +%endif %description -n %{?scl_prefix}libtsan-devel This package contains Thread Sanitizer static runtime library.