Accepting request 705251 from home:tomdevries:branches:devel:gcc

Update to 8.3 release

OBS-URL: https://build.opensuse.org/request/show/705251
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=204
This commit is contained in:
2019-05-24 13:40:33 +00:00
committed by Git OBS Bridge
parent 15e61520b4
commit 630d3f35be
85 changed files with 2777 additions and 16075 deletions

316
gdb.spec
View File

@@ -27,7 +27,7 @@ License: GPL-3.0-or-later AND GPL-3.0-with-GCC-exception AND LGPL-2.1-or-
Group: Development/Tools/Debuggers
Name: gdb
Version: 8.2
Version: 8.3
Release: 0
# The release always contains a leading reserved number, start it at 1.
@@ -35,7 +35,7 @@ Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Do not provide URL for snapshots as the file lasts there only for 2 days.
# ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.gz
# ftp://sourceware.org/pub/gdb/releases/gdb-%%{version}.tar.gz
Source: gdb-%{version}.tar.bz2
Url: http://gnu.org/software/gdb/
@@ -102,141 +102,116 @@ Patch1: gdb-6.3-rh-testversion-20041202.patch
Patch2: gdb-vla-intel-fortran-strides.patch
Patch3: gdb-vla-intel-fortran-vla-strings.patch
Patch4: gdb-vla-intel-stringbt-fix.patch
Patch5: gdb-6.3-ppc64syscall-20040622.patch
Patch6: gdb-6.3-ppc64displaysymbol-20041124.patch
Patch7: gdb-6.3-gstack-20050411.patch
Patch8: gdb-6.3-test-pie-20050107.patch
Patch9: gdb-6.3-test-self-20050110.patch
Patch10: gdb-6.3-test-dtorfix-20050121.patch
Patch11: gdb-6.3-test-movedir-20050125.patch
Patch12: gdb-6.3-threaded-watchpoints2-20050225.patch
Patch13: gdb-6.3-inferior-notification-20050721.patch
Patch14: gdb-6.3-inheritancetest-20050726.patch
Patch15: gdb-6.3-readnever-20050907.patch
Patch16: gdb-6.5-bz203661-emit-relocs.patch
Patch17: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
Patch18: gdb-6.5-sharedlibrary-path.patch
Patch19: gdb-6.5-BEA-testsuite.patch
Patch20: gdb-6.5-last-address-space-byte-test.patch
Patch21: gdb-6.5-readline-long-line-crash-test.patch
Patch22: gdb-6.5-bz216711-clone-is-outermost.patch
Patch23: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
Patch24: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
Patch25: gdb-6.5-bz109921-DW_AT_decl_file-test.patch
Patch26: gdb-6.3-bz140532-ppc-unwinding-test.patch
Patch27: gdb-6.3-bz202689-exec-from-pthread-test.patch
Patch28: gdb-6.6-bz230000-power6-disassembly-test.patch
Patch29: gdb-6.6-bz229517-gcore-without-terminal.patch
Patch30: gdb-6.6-testsuite-timeouts.patch
Patch31: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
Patch32: gdb-6.6-scheduler_locking-step-is-default.patch
Patch33: gdb-6.3-attach-see-vdso-test.patch
Patch34: gdb-6.5-bz243845-stale-testing-zombie-test.patch
Patch35: gdb-6.6-buildid-locate.patch
Patch36: gdb-6.6-buildid-locate-solib-missing-ids.patch
Patch37: gdb-6.6-buildid-locate-rpm.patch
Patch38: gdb-6.7-charsign-test.patch
Patch39: gdb-6.7-ppc-clobbered-registers-O2-test.patch
Patch40: gdb-6.7-testsuite-stable-results.patch
Patch41: gdb-6.5-ia64-libunwind-leak-test.patch
Patch42: gdb-6.5-missed-trap-on-step-test.patch
Patch43: gdb-6.5-gcore-buffer-limit-test.patch
Patch44: gdb-6.3-mapping-zero-inode-test.patch
Patch45: gdb-6.3-focus-cmd-prev-test.patch
Patch46: gdb-6.8-bz442765-threaded-exec-test.patch
Patch47: gdb-6.8-sparc64-silence-memcpy-check.patch
Patch48: gdb-6.5-section-num-fixup-test.patch
Patch49: gdb-6.8-bz436037-reg-no-longer-active.patch
Patch50: gdb-6.8-watchpoint-conditionals-test.patch
Patch51: gdb-6.8-bz466901-backtrace-full-prelinked.patch
Patch52: gdb-simultaneous-step-resume-breakpoint-test.patch
Patch53: gdb-core-open-vdso-warning.patch
Patch54: gdb-x86_64-i386-syscall-restart.patch
Patch55: gdb-bz533176-fortran-omp-step.patch
Patch56: gdb-follow-child-stale-parent.patch
Patch57: gdb-ccache-workaround.patch
Patch58: gdb-archer-pie-addons.patch
Patch59: gdb-archer-pie-addons-keep-disabled.patch
Patch60: gdb-lineno-makeup-test.patch
Patch61: gdb-ppc-power7-test.patch
Patch62: gdb-bz541866-rwatch-before-run.patch
Patch63: gdb-moribund-utrace-workaround.patch
Patch64: gdb-archer-next-over-throw-cxx-exec.patch
Patch65: gdb-bz601887-dwarf4-rh-test.patch
Patch66: gdb-6.6-buildid-locate-core-as-arg.patch
Patch67: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
Patch68: gdb-test-bt-cfi-without-die.patch
Patch69: gdb-bz568248-oom-is-error.patch
Patch70: gdb-bz634108-solib_address.patch
Patch71: gdb-test-pid0-core.patch
Patch72: gdb-test-dw2-aranges.patch
Patch73: gdb-test-expr-cumulative-archer.patch
Patch74: gdb-physname-pr11734-test.patch
Patch75: gdb-physname-pr12273-test.patch
Patch76: gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
Patch77: gdb-test-ivy-bridge.patch
Patch78: gdb-runtest-pie-override.patch
Patch79: gdb-attach-fail-reasons-5of5.patch
Patch80: gdb-glibc-strstr-workaround.patch
Patch81: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
Patch82: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
Patch83: gdb-rhbz795424-bitpos-20of25.patch
Patch84: gdb-rhbz795424-bitpos-21of25.patch
Patch85: gdb-rhbz795424-bitpos-22of25.patch
Patch86: gdb-rhbz795424-bitpos-23of25.patch
Patch87: gdb-rhbz795424-bitpos-25of25.patch
Patch88: gdb-rhbz795424-bitpos-25of25-test.patch
Patch89: gdb-rhbz795424-bitpos-lazyvalue.patch
Patch90: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch
Patch91: gdb-gnat-dwarf-crash-3of3.patch
Patch92: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch
Patch93: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch
Patch94: gdb-archer-vla-tests.patch
Patch95: gdb-vla-intel-tests.patch
Patch96: gdb-btrobust.patch
Patch97: gdb-fortran-frame-string.patch
Patch98: gdb-python-gil.patch
Patch99: gdb-rhbz1156192-recursive-dlopen-test.patch
Patch100: gdb-jit-reader-multilib.patch
Patch101: gdb-rhbz1149205-catch-syscall-after-fork-test.patch
Patch102: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
Patch103: gdb-rhbz1350436-type-printers-error.patch
Patch104: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
Patch105: gdb-bz1219747-attach-kills.patch
Patch106: gdb-fedora-libncursesw.patch
Patch107: gdb-opcodes-clflushopt-test.patch
Patch108: gdb-dts-rhel6-python-compat.patch
Patch109: gdb-6.6-buildid-locate-rpm-scl.patch
Patch110: gdb-readline62-ask-more-rh.patch
Patch111: gdb-6.8-quit-never-aborts.patch
Patch112: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
Patch113: gdb-container-rh-pkg.patch
Patch114: gdb-rhbz1325795-framefilters-test.patch
Patch115: gdb-linux_perf-bundle.patch
Patch116: gdb-libexec-add-index.patch
Patch117: gdb-rhbz1398387-tab-crash-test.patch
Patch118: gdb-testsuite-readline63-sigint.patch
Patch119: gdb-archer.patch
Patch120: gdb-vla-intel-fix-print-char-array.patch
Patch121: gdb-rhbz1553104-s390x-arch12-test.patch
Patch122: gdb-rhbz881849-ipv6-1of3.patch
Patch123: gdb-rhbz881849-ipv6-2of3.patch
Patch124: gdb-rhbz881849-ipv6-3of3.patch
Patch125: gdb-rhbz1187581-power8-regs-1of7.patch
Patch126: gdb-rhbz1187581-power8-regs-2of7.patch
Patch127: gdb-rhbz1187581-power8-regs-3of7.patch
Patch128: gdb-rhbz1187581-power8-regs-4of7.patch
Patch129: gdb-rhbz1187581-power8-regs-5of7.patch
Patch130: gdb-rhbz1187581-power8-regs-6of7.patch
Patch131: gdb-rhbz1187581-power8-regs-7of7.patch
Patch132: gdb-rhbz1491128-batch-mode-exit-status-1of2.patch
Patch133: gdb-rhbz1491128-batch-mode-exit-status-2of2.patch
Patch134: gdb-use-pulongest-aarch64-linux-tdep.patch
Patch137: gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-1of5.patch
Patch138: gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-2of5.patch
Patch139: gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-3of5.patch
Patch140: gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-4of5.patch
Patch141: gdb-rhbz1560010-fix-assertion-symbol-language-dict-language-5of5.patch
Patch5: gdb-6.3-gstack-20050411.patch
Patch6: gdb-6.3-test-pie-20050107.patch
Patch7: gdb-6.3-test-self-20050110.patch
Patch8: gdb-6.3-test-dtorfix-20050121.patch
Patch9: gdb-6.3-test-movedir-20050125.patch
Patch10: gdb-6.3-threaded-watchpoints2-20050225.patch
Patch11: gdb-6.3-inferior-notification-20050721.patch
Patch12: gdb-6.3-inheritancetest-20050726.patch
Patch13: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
Patch14: gdb-6.5-sharedlibrary-path.patch
Patch15: gdb-6.5-BEA-testsuite.patch
Patch16: gdb-6.5-last-address-space-byte-test.patch
Patch17: gdb-6.5-readline-long-line-crash-test.patch
Patch18: gdb-6.5-bz216711-clone-is-outermost.patch
Patch19: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
Patch20: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
Patch21: gdb-6.5-bz109921-DW_AT_decl_file-test.patch
Patch22: gdb-6.3-bz140532-ppc-unwinding-test.patch
Patch23: gdb-6.3-bz202689-exec-from-pthread-test.patch
Patch24: gdb-6.6-bz230000-power6-disassembly-test.patch
Patch25: gdb-6.6-bz229517-gcore-without-terminal.patch
Patch26: gdb-6.6-testsuite-timeouts.patch
Patch27: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
Patch28: gdb-6.6-scheduler_locking-step-is-default.patch
Patch29: gdb-6.3-attach-see-vdso-test.patch
Patch30: gdb-6.5-bz243845-stale-testing-zombie-test.patch
Patch31: gdb-6.6-buildid-locate.patch
Patch32: gdb-6.6-buildid-locate-solib-missing-ids.patch
Patch33: gdb-6.6-buildid-locate-rpm.patch
Patch34: gdb-6.7-charsign-test.patch
Patch35: gdb-6.7-ppc-clobbered-registers-O2-test.patch
Patch36: gdb-6.7-testsuite-stable-results.patch
Patch37: gdb-6.5-ia64-libunwind-leak-test.patch
Patch38: gdb-6.5-missed-trap-on-step-test.patch
Patch39: gdb-6.5-gcore-buffer-limit-test.patch
Patch40: gdb-6.3-mapping-zero-inode-test.patch
Patch41: gdb-6.3-focus-cmd-prev-test.patch
Patch42: gdb-6.8-bz442765-threaded-exec-test.patch
Patch43: gdb-6.5-section-num-fixup-test.patch
Patch44: gdb-6.8-bz436037-reg-no-longer-active.patch
Patch45: gdb-6.8-bz466901-backtrace-full-prelinked.patch
Patch46: gdb-simultaneous-step-resume-breakpoint-test.patch
Patch47: gdb-core-open-vdso-warning.patch
Patch49: gdb-bz533176-fortran-omp-step.patch
Patch50: gdb-follow-child-stale-parent.patch
Patch51: gdb-ccache-workaround.patch
Patch52: gdb-archer-pie-addons.patch
Patch53: gdb-archer-pie-addons-keep-disabled.patch
Patch54: gdb-lineno-makeup-test.patch
Patch55: gdb-ppc-power7-test.patch
Patch56: gdb-bz541866-rwatch-before-run.patch
Patch57: gdb-moribund-utrace-workaround.patch
Patch58: gdb-archer-next-over-throw-cxx-exec.patch
Patch59: gdb-bz601887-dwarf4-rh-test.patch
Patch60: gdb-6.6-buildid-locate-core-as-arg.patch
Patch61: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
Patch62: gdb-test-bt-cfi-without-die.patch
Patch63: gdb-bz568248-oom-is-error.patch
Patch64: gdb-bz634108-solib_address.patch
Patch65: gdb-test-pid0-core.patch
Patch66: gdb-test-dw2-aranges.patch
Patch67: gdb-test-expr-cumulative-archer.patch
Patch68: gdb-physname-pr11734-test.patch
Patch69: gdb-physname-pr12273-test.patch
Patch70: gdb-test-ivy-bridge.patch
Patch71: gdb-runtest-pie-override.patch
Patch72: gdb-attach-fail-reasons-5of5.patch
Patch73: gdb-glibc-strstr-workaround.patch
Patch74: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
Patch75: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
Patch76: gdb-rhbz795424-bitpos-20of25.patch
Patch77: gdb-rhbz795424-bitpos-21of25.patch
Patch78: gdb-rhbz795424-bitpos-22of25.patch
Patch79: gdb-rhbz795424-bitpos-23of25.patch
Patch80: gdb-rhbz795424-bitpos-25of25.patch
Patch81: gdb-rhbz795424-bitpos-25of25-test.patch
Patch82: gdb-rhbz795424-bitpos-lazyvalue.patch
Patch83: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch
Patch84: gdb-gnat-dwarf-crash-3of3.patch
Patch85: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch
Patch86: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch
Patch87: gdb-archer-vla-tests.patch
Patch88: gdb-vla-intel-tests.patch
Patch89: gdb-btrobust.patch
Patch90: gdb-fortran-frame-string.patch
Patch91: gdb-rhbz1156192-recursive-dlopen-test.patch
Patch92: gdb-jit-reader-multilib.patch
Patch93: gdb-rhbz1149205-catch-syscall-after-fork-test.patch
Patch94: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
Patch95: gdb-rhbz1350436-type-printers-error.patch
Patch96: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
Patch97: gdb-bz1219747-attach-kills.patch
Patch98: gdb-fedora-libncursesw.patch
Patch99: gdb-opcodes-clflushopt-test.patch
Patch100: gdb-dts-rhel6-python-compat.patch
Patch101: gdb-6.6-buildid-locate-rpm-scl.patch
Patch102: gdb-readline62-ask-more-rh.patch
Patch103: gdb-6.8-quit-never-aborts.patch
Patch104: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
Patch105: gdb-container-rh-pkg.patch
Patch106: gdb-rhbz1325795-framefilters-test.patch
Patch107: gdb-linux_perf-bundle.patch
Patch108: gdb-libexec-add-index.patch
Patch109: gdb-rhbz1398387-tab-crash-test.patch
Patch110: gdb-testsuite-readline63-sigint.patch
Patch111: gdb-archer.patch
Patch112: gdb-vla-intel-fix-print-char-array.patch
Patch113: gdb-rhbz1553104-s390x-arch12-test.patch
Patch114: gdb-rhbz795424-bitpos-arrayview.patch
Patch115: gdb-rhbz1371380-gcore-elf-headers.patch
#Fedora Packages end
# Upstream patch to fix gcc -Werror
@@ -244,19 +219,21 @@ Patch1002: gdb-6.6-buildid-locate-rpm-suse.patch
Patch1004: gdb-fix-buf-overflow.diff
Patch1005: gdb-7.10-swo18929.patch
Patch1007: gdb-fix-s390-build.diff
Patch1008: gdb-gcc9-fix-build-with-latest-GCC-9.0-tree.patch
Patch1009: gdb-gcc9-warning-on-elf32-arm.c-elf32_arm_final_link.patch
# Backports from master
Patch2000: gdb-fix-crash-when-reading-core.patch
Patch2001: power8-registers.diff
Patch2000: gdb-handle-vfork-in-thread-with-follow-fork-mode-child.patch
Patch2001: gdb-fix-riscv-tdep.patch
Patch2002: gdb-x86_64-i386-syscall-restart-master.patch
# Submitted for master
Patch2500: gdb-fix-heap-use-after-free-in-typename-concat.patch
Patch2501: gdb-symtab-fix-symbol-loading-performance-regression.patch
# libipt support
Patch3000: v1.5-libipt-static.patch
# Testsuite fixes
Patch4000: gdb-fix-multidictionary.exp-for-gdb-8.2.patch
BuildRequires: bison
BuildRequires: flex
%if 0%{suse_version} > 1110
@@ -282,6 +259,7 @@ BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: rpm-devel
BuildRequires: zlib-devel
BuildRequires: mpfr-devel
%if 0%{!?_without_python:1}
%if 0%{suse_version} > 1000
Requires: %{python}-base
@@ -370,6 +348,18 @@ GDB, the GNU debugger, allows you to debug programs written in C, C++,
Java, and other languages, by executing them in a controlled fashion
and printing their data.
%ifarch riscv64
# Work around RPM build error:
# ...
# Installed (but unpackaged) file(s) found:
# /usr/share/man/man1/gdbserver.1.gz
# ...
# Filed at PR24575 - "gdbserver.1 should only be installed if gdbserver was
# build" ( https://sourceware.org/bugzilla/show_bug.cgi?id=24575 ).
%define _unpackaged_files_terminate_build 0
%endif
%ifnarch riscv64
%if %{suse_version} > 1010
%package -n gdbserver
Summary: A standalone server for GDB (the GNU source-level debugger)
@@ -384,6 +374,7 @@ and printing their data.
This package provides a program that allows you to run GDB on a different
machine than the one which is running the program being debugged.
%endif
%endif
%package doc
Summary: Documentation for GDB (the GNU source-level debugger)
@@ -474,7 +465,6 @@ find -name "*.info*"|xargs rm -f
%patch45 -p1
%patch46 -p1
%patch47 -p1
%patch48 -p1
%patch49 -p1
%patch50 -p1
%patch51 -p1
@@ -542,41 +532,19 @@ find -name "*.info*"|xargs rm -f
%patch113 -p1
%patch114 -p1
%patch115 -p1
%patch116 -p1
%patch117 -p1
%patch118 -p1
%patch119 -p1
%patch120 -p1
%patch121 -p1
%patch122 -p1
%patch123 -p1
%patch124 -p1
%patch125 -p1
%patch126 -p1
%patch127 -p1
%patch128 -p1
%patch129 -p1
%patch130 -p1
%patch131 -p1
%patch132 -p1
%patch133 -p1
%patch134 -p1
%patch137 -p1
%patch138 -p1
%patch139 -p1
%patch140 -p1
%patch141 -p1
#Fedora patching end
%patch1002 -p1
%patch1004 -p1
%patch1005 -p1
%patch1007 -p1
%patch1008 -p1
%patch1009 -p1
%patch2000 -p1
%patch2001 -p1
%patch2002 -p1
%patch2500 -p1
%patch2501 -p1
#unpack libipt
%if 0%{have_libipt}
@@ -587,8 +555,6 @@ tar xzf %{SOURCE7}
)
%endif
%patch4000 -p1
find -name "*.orig" | xargs rm -f
! find -name "*.rej" # Should not happen.
@@ -1098,6 +1064,7 @@ fi
%{_datadir}/gdb
%{_infodir}/annotate.info*
%{_infodir}/gdb.info*
%ifnarch riscv64
# In SLE10 gdbserver is not in a separate package
%if %{suse_version} <= 1010
%{_bindir}/gdbserver
@@ -1106,6 +1073,7 @@ fi
%{_libdir}/libinproctrace.so
%endif
%endif
%endif
%if %{with testsuite}
%files testresults
@@ -1116,6 +1084,7 @@ fi
# don't include the files in include, they are part of binutils
%ifnarch riscv64
%if %{suse_version} > 1010
%ifnarch sparcv9 hppa
%files -n gdbserver
@@ -1127,6 +1096,7 @@ fi
%endif # %{have_inproctrace}
%endif
%endif
%endif
%post doc
# This step is part of the installation of the RPM. Not to be confused