From a6e7b2b18f7881f593c911a933000c04576b9e20 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Tue, 28 Jun 2022 12:52:52 -0700 Subject: [PATCH] Disable -minimal RPM on RHEL9 GTS. This patch disables the gdb-minimal package on GTS for RHEL9. Since the -minimal package only exists to shrink the buildroot size and we don't use GTS in the buildroot, there's no reason to build it. --- gdb.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb.spec b/gdb.spec index 22e38de..22109df 100644 --- a/gdb.spec +++ b/gdb.spec @@ -35,7 +35,8 @@ ExcludeArch: aarch64 } # If we're on Fedora or RHEL 9+, we will build the gdb-minimal package. -%if 0%{?fedora} || 0%{?rhel} > 8 +# Never build the -minimal package on SCLs, since it's unneeded there. +%if 0%{?fedora} || (0%{?rhel} > 8 && 0%{!?scl:1}) %global _build_minimal 1 %endif