Pin Requires to same major version of GTS main package

Resolves: RHEL-94762
This commit is contained in:
Siddhesh Poyarekar 2025-06-23 17:37:56 -04:00
parent 0424e3f492
commit 7b26c22d77

View File

@ -4,6 +4,7 @@
%global have_scl_utils 0
%endif
%global gts_ver 15
%global gts_next %(v="%{gts_ver}"; echo $((++v)))
%{?scl_package:%global scl gcc-toolset-%{gts_ver}}
%global scl_prefix gcc-toolset-%{gts_ver}-
%if %have_scl_utils
@ -300,7 +301,7 @@ Requires: libgcc >= 4.1.2-43
Requires: libgomp >= 4.4.4-13
# lto-wrapper invokes make
Requires: make
Requires: %{?scl_prefix}runtime >= %{gts_ver}.0
Requires: (%{?scl_prefix}runtime >= %{gts_ver} with %{?scl_prefix}runtime < %{gts_next})
AutoReq: true
# Various libraries are imported. #1859893 asks us to list them all.
Provides: bundled(libiberty)