From c5a9fdc6a7f6c1e103f46e27d81965279999fd48 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 22 Jan 2010 01:26:39 +0000 Subject: [PATCH] - Adjust BuildRequires for RHELs, add ExcludeArch on ia64. - Disable one PIE-introduced assertion on RHELs. --- gdb-archer-pie-assert-temp-workaround.patch | 17 ++++++++++++++ gdb.spec | 25 +++++++++++++++++---- 2 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 gdb-archer-pie-assert-temp-workaround.patch diff --git a/gdb-archer-pie-assert-temp-workaround.patch b/gdb-archer-pie-assert-temp-workaround.patch new file mode 100644 index 0000000..42a9275 --- /dev/null +++ b/gdb-archer-pie-assert-temp-workaround.patch @@ -0,0 +1,17 @@ +--- gdb-7.0.50.20100121/gdb/solib-svr4.c-orig 2010-01-21 21:09:54.000000000 +0100 ++++ gdb-7.0.50.20100121/gdb/solib-svr4.c 2010-01-21 21:10:01.000000000 +0100 +@@ -596,7 +596,14 @@ scan_dyntag (int dyntag, bfd *abfd, CORE + target_section++) + if (sect == target_section->the_bfd_section) + break; ++ /* FIXME: https://bugzilla.redhat.com/show_bug.cgi?id=556310 ++ It may crash here but it is not understood why. */ ++#if 0 + gdb_assert (target_section < current_target_sections->sections_end); ++#else ++ if (target_section == current_target_sections->sections_end) ++ return 0; ++#endif + + /* Read in .dynamic from the BFD. We will get the actual value + from memory later. */ diff --git a/gdb.spec b/gdb.spec index 70fb9a1..f85644f 100644 --- a/gdb.spec +++ b/gdb.spec @@ -36,7 +36,7 @@ Version: 7.0.50.20100121 # 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: 3%{?_with_upstream:.upstream}%{dist} +Release: 4%{?_with_upstream:.upstream}%{dist} License: GPLv3+ Group: Development/Debuggers @@ -45,6 +45,7 @@ Group: Development/Debuggers Source: ftp://sourceware.org/pub/gdb/snapshots/branch/gdb-%{version}.tar.bz2 Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) URL: http://gnu.org/software/gdb/ +ExcludeArch: ia64 # For our convenience %define gdb_src gdb-%{version} @@ -431,6 +432,9 @@ Patch412: gdb-unused-revert.patch # Revert FSF GDB gdbserver tracepoints as incomplete now. Patch413: gdb-gdbserver-tracepoint-revert.patch +# It may crash here but it is not understood why. +Patch414: gdb-archer-pie-assert-temp-workaround.patch + BuildRequires: ncurses-devel%{?_isa} texinfo gettext flex bison expat-devel%{?_isa} Requires: readline%{?_isa} BuildRequires: readline-devel%{?_isa} @@ -459,6 +463,7 @@ BuildRequires: libstdc++%{?_isa} # Ensure the devel libraries are installed for both multilib arches. %define bits_local %{?_isa} %define bits_other %{?_isa} +%if 0%{!?el5:1} %ifarch s390x %define bits_other (%{__isa_name}-31) %else #!s390x @@ -470,6 +475,7 @@ BuildRequires: libstdc++%{?_isa} %endif #sparc64 ppc64 s390x x86_64 %endif #!ppc %endif #!s390x +%endif #!el5 BuildRequires: sharutils dejagnu # gcc-objc++ is not covered by the GDB testsuite. @@ -497,14 +503,17 @@ BuildRequires: libgcc%{bits_local} libgcc%{bits_other} # libstdc++-devel of matching bits is required only for g++ -static. BuildRequires: libstdc++%{bits_local} libstdc++%{bits_other} BuildRequires: libgcj%{bits_local} libgcj%{bits_other} +%if 0%{!?el5:1} BuildRequires: glibc-static%{bits_local} -# multilib glibc-static is open Bug 488472: -%if 0%{?el5:1} -BuildRequires: glibc-static%{bits_other} %endif +# multilib glibc-static is open Bug 488472: +#BuildRequires: glibc-static%{bits_other} # for gcc-java linkage: BuildRequires: zlib-devel%{bits_local} zlib-devel%{bits_other} +# Copied from valgrind-3.5.0-1. +%ifarch %{ix86} x86_64 ppc ppc64 BuildRequires: valgrind%{bits_local} valgrind%{bits_other} +%endif %endif # 0%{?_with_testsuite:1} @@ -678,6 +687,10 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c %patch412 -p1 %patch413 -p1 # Always verify its applicability. +%patch414 -p1 +%if 0%{!?rhel:1} +%patch414 -p1 -R +%endif %patch393 -p1 %patch335 -p1 %if 0%{!?el5:1} @@ -1002,6 +1015,10 @@ fi %endif %changelog +* Fri Jan 22 2010 Jan Kratochvil - 7.0.50.20100121-4.fc13 +- Adjust BuildRequires for RHELs, add ExcludeArch on ia64. +- Disable one PIE-introduced assertion on RHELs. + * Thu Jan 21 2010 Jan Kratochvil - 7.0.50.20100121-3.fc13 - Revert FSF GDB gdbserver tracepoints as incomplete now.