From 8b87f86b6e6803bd34c6837abe7e5899aab30a35b41f016b6be0c2f8dd962f65 Mon Sep 17 00:00:00 2001
From: Michael Matz <matz@suse.com>
Date: Tue, 10 Sep 2019 15:47:42 +0000
Subject: [PATCH] - Disable use of valgrind on old s390 (31bit) distros.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=223
---
 gdb.changes | 5 +++++
 gdb.spec    | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/gdb.changes b/gdb.changes
index 56096ec..d5c27eb 100644
--- a/gdb.changes
+++ b/gdb.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Tue Sep 10 15:45:17 UTC 2019 - matz@suse.com
+
+- Disable use of valgrind on old s390 (31bit) distros.
+
 -------------------------------------------------------------------
 Fri Aug 23 16:00:18 UTC 2019 - Tom de Vries <tdevries@suse.com>
 
diff --git a/gdb.spec b/gdb.spec
index d716700..b4f739a 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -377,8 +377,11 @@ BuildRequires:  fpc
 %endif
 %endif
 %if 0%{?suse_version} >= 1200
+%ifnarch s390
+# s390 (for SLE12) doesn't have valgrind
 BuildRequires:  valgrind
 %endif
+%endif
 
 %endif # %%{with testsuite}