BZ #1333295 - FTBFS due compiler warnings in elf64-s390.c

This commit is contained in:
Dave Anderson 2016-05-05 09:13:34 -04:00
parent 724c5fe93a
commit 877f9912a5
2 changed files with 40 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
Name: crash Name: crash
Version: 7.1.5 Version: 7.1.5
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv3 License: GPLv3
Group: Development/Debuggers Group: Development/Debuggers
Source: http://people.redhat.com/anderson/crash-%{version}.tar.gz Source: http://people.redhat.com/anderson/crash-%{version}.tar.gz
@ -17,6 +17,7 @@ Requires: binutils
Provides: bundled(libiberty) Provides: bundled(libiberty)
Patch0: lzo_snappy.patch Patch0: lzo_snappy.patch
Patch1: use_system_readline_v3.patch Patch1: use_system_readline_v3.patch
Patch2: elf64-s390.patch
%description %description
The core analysis suite is a self-contained tool that can be used to The core analysis suite is a self-contained tool that can be used to
@ -39,6 +40,7 @@ offered by Mission Critical Linux, or the LKCD kernel patch.
%setup -n %{name}-%{version} -q %setup -n %{name}-%{version} -q
%patch0 -p1 -b lzo_snappy.patch %patch0 -p1 -b lzo_snappy.patch
%patch1 -p1 -b use_system_readline_v3.patch %patch1 -p1 -b use_system_readline_v3.patch
%patch2 -p1 -b elf64-s390.patch
%build %build
make RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}" make RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}"
@ -67,6 +69,9 @@ rm -rf %{buildroot}
%{_includedir}/* %{_includedir}/*
%changelog %changelog
* Thu May 5 2016 Dave Anderson <anderson@redhat.com> - 7.1.5-2
- BZ #1333295 - FTBFS due compiler warnings in elf64-s390.c
* Thu Apr 28 2016 Dave Anderson <anderson@redhat.com> - 7.1.5-1 * Thu Apr 28 2016 Dave Anderson <anderson@redhat.com> - 7.1.5-1
- Update to latest upstream release - Update to latest upstream release

34
elf64-s390.patch Normal file
View File

@ -0,0 +1,34 @@
commit 5649088bccc35f1a824e2b0c6482397b13c94abd
Author: Dave Anderson <anderson@redhat.com>
Date: Thu May 5 09:01:35 2016 -0400
Fix for a "[-Werror=misleading-indentation]" compiler warning that
is generated by gdb-7.6/bfd/elf64-s390.c when building S390X in a
Fedora Rawhide environment with gcc-6.0.0.
(anderson@redhat.com)
diff --git a/gdb-7.6.patch b/gdb-7.6.patch
index 920ea1c..794555f 100644
--- a/gdb-7.6.patch
+++ b/gdb-7.6.patch
@@ -2206,3 +2206,20 @@ diff -up gdb-7.6/bfd/elf64-ppc.c.orig gdb-7.6/bfd/elf64-ppc.c
+ gi->finished = 1;
+}
#endif
+--- gdb-7.6/bfd/elf64-s390.c.orig
++++ gdb-7.6/bfd/elf64-s390.c
+@@ -323,10 +323,10 @@ elf_s390_reloc_name_lookup (bfd *abfd AT
+ && strcasecmp (elf_howto_table[i].name, r_name) == 0)
+ return &elf_howto_table[i];
+
+- if (strcasecmp (elf64_s390_vtinherit_howto.name, r_name) == 0)
+- return &elf64_s390_vtinherit_howto;
+- if (strcasecmp (elf64_s390_vtentry_howto.name, r_name) == 0)
+- return &elf64_s390_vtentry_howto;
++ if (strcasecmp (elf64_s390_vtinherit_howto.name, r_name) == 0)
++ return &elf64_s390_vtinherit_howto;
++ if (strcasecmp (elf64_s390_vtentry_howto.name, r_name) == 0)
++ return &elf64_s390_vtentry_howto;
+
+ return NULL;
+ }