From 472550ce1e68b076632a26b15929f1d916bdcd678aecf1e40a0f6416e42b92ef Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 17 Jun 2021 09:38:51 +0000 Subject: [PATCH] - Fix Leap 15.3 i586 gdb:testsuite build, by not requiring fpc. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=283 --- gdb.changes | 5 +++++ gdb.spec | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gdb.changes b/gdb.changes index 41fd0cf..6a881c9 100644 --- a/gdb.changes +++ b/gdb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 17 09:36:06 UTC 2021 - Tom de Vries + +- Fix Leap 15.3 i586 gdb:testsuite build, by not requiring fpc. + ------------------------------------------------------------------- Wed Jun 16 10:47:16 UTC 2021 - Tom de Vries diff --git a/gdb.spec b/gdb.spec index 47798d8..8aa5e2a 100644 --- a/gdb.spec +++ b/gdb.spec @@ -482,13 +482,21 @@ BuildRequires: glibc-devel-static # versions. BuildRequires: gcc-go %endif -%if 0%{?suse_version} >= 1500 && 0%{?is_opensuse} -%ifarch %{ix86} x86_64 aarch64 armv7l + %if %{with fpc} +%if 0%{?suse_version} >= 1500 && 0%{?is_opensuse} +%ifarch x86_64 aarch64 armv7l +BuildRequires: fpc +%endif +%ifarch %{ix86} +# fpc is (currently?) unavailable for Leap 15.3/i586. +%if 0%{?sle_version} != 150300 && 0%{?is_opensuse} BuildRequires: fpc %endif %endif %endif +%endif + %if 0%{?suse_version} >= 1200 %ifnarch s390 # s390 (for SLE12) doesn't have valgrind