[dts] [rhel6] Do not use mpfr as rhel6 has mpfr-2 while GDB requires mpfr-3.

This commit is contained in:
Jan Kratochvil 2018-07-12 12:25:43 +02:00
parent 5cc516897b
commit 138f53b360
1 changed files with 11 additions and 1 deletions

View File

@ -26,7 +26,7 @@ Version: 8.1.90.%{snapsrc}
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
Release: 32%{?dist}
Release: 33%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL
Group: Development/Debuggers
@ -244,8 +244,11 @@ BuildRequires: libipt-devel%{buildisa}
%endif
%endif
%endif
%if 0%{!?rhel:1} || 0%{?rhel} > 6
# See https://bugzilla.redhat.com/show_bug.cgi?id=1593280
# DTS RHEL-6 has mpfr-2 while GDB requires mpfr-3.
BuildRequires: mpfr-devel%{buildisa}
%endif
%if 0%{?_with_testsuite:1}
@ -614,7 +617,11 @@ $(: ppc64 host build crashes on ppc variant of libexpat.so ) \
%else
--without-intel-pt \
%endif
%if 0%{!?rhel:1} || 0%{?rhel} > 6
--with-mpfr \
%else
--without-mpfr \
%endif
--with-auto-load-dir='$debugdir:$datadir/auto-load%{?scl::%{_root_datadir}/gdb/auto-load}' \
--with-auto-load-safe-path='$debugdir:$datadir/auto-load%{?scl::%{_root_datadir}/gdb/auto-load}' \
%ifarch sparc sparcv9
@ -1023,6 +1030,9 @@ fi
%endif
%changelog
* Thu Jul 12 2018 Jan Kratochvil <jan.kratochvil@redhat.com> - 8.1.90.20180708-33.fc29
- [dts] [rhel6] Do not use mpfr as rhel6 has mpfr-2 while GDB requires mpfr-3.
* Thu Jul 12 2018 Jan Kratochvil <jan.kratochvil@redhat.com> - 8.1.90.20180708-32.fc29
- Remove as no longer needed:
Workaround gcc-8.0: -Wno-error=cast-function-type,stringop-truncation