- Maintenance script qa.sh:
* Add PR31214 kfail. * Add kfail for fails in gdb.reverse/solib-precsave.exp / gdb.reverse/solib-reverse.exp fixed by commit fe6356def67 ("PowerPC and aarch64: Fix reverse stepping failure"). * Extend PR31004 kfail. - Don't require %{python}-base for gdb-testresults package. - Fix debuginfod handling: * Enable for sle_version >= 150400 (bsc#1185605, jsc#PED-1149, jsc#PED-1138), SLE15-SP4 and later. * Enable for suse_version >= 1600, ALP and Tumbleweed. * Add back "BuildRequires: libdebuginfod1" to prevent selecting dummy variant. * Add "BuildRequires: debuginfod-client" to prevent unresolved due to conflict with dummy variant. * Add --with-debuginfod=yes to prevent silently dropping support. - Patches added (backport from master): * gdb-testsuite-add-missing-no-prompt-anchor-in-gdb.ba.patch * gdb-testsuite-remove-spurious-in-save_vars.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=375
This commit is contained in:
25
gdb.spec
25
gdb.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2012 RedHat
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -349,6 +349,8 @@ Patch2071: gdb-symtab-add-producer_is_gas.patch
|
||||
Patch2072: gdb-symtab-work-around-gas-pr28629.patch
|
||||
Patch2073: gdb-tdep-fix-nr-array-elements-in-ppc64_aggregate_ca.patch
|
||||
Patch2074: gdb-tui-fix-wmaybe-uninitialized-in-tui_find_disasse.patch
|
||||
Patch2075: gdb-testsuite-add-missing-no-prompt-anchor-in-gdb.ba.patch
|
||||
Patch2076: gdb-testsuite-remove-spurious-in-save_vars.patch
|
||||
|
||||
# Backport from gdb-patches
|
||||
|
||||
@@ -428,17 +430,28 @@ BuildRequires: rpm-devel
|
||||
BuildRequires: xz-devel
|
||||
%endif
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
%if 0%{!?_without_python:1}
|
||||
%if %{build_testsuite}
|
||||
BuildRequires: %{python}-base
|
||||
%else
|
||||
Requires: %{python}-base
|
||||
%endif
|
||||
BuildRequires: %{python}-devel
|
||||
%endif # 0%{!?_without_python:1}
|
||||
|
||||
%global have_libdebuginfod 0
|
||||
%if 0%{?suse_version} > 1500
|
||||
# Enable for SLE15-SP4/Leap-15.4, ALP/Factory.
|
||||
%if 0%{?sle_version} >= 150400 || 0%{?suse_version} >= 1600
|
||||
%global have_libdebuginfod 1
|
||||
%endif
|
||||
|
||||
%if 0%{have_libdebuginfod}
|
||||
BuildRequires: libdebuginfod-devel
|
||||
# Indicate that we prefer libdebuginfod1 over libdebuginfod1-dummy.
|
||||
BuildRequires: libdebuginfod1
|
||||
%endif
|
||||
|
||||
%global have_libipt 0
|
||||
%if 0%{suse_version} > 1110
|
||||
%ifarch %{ix86} x86_64
|
||||
@@ -586,6 +599,9 @@ BuildRequires: systemtap-sdt-devel
|
||||
%if 0%{have_libdebuginfod}
|
||||
BuildRequires: curl
|
||||
BuildRequires: elfutils-debuginfod
|
||||
# Fix: unresolvable: have choice for debuginfod-client needed by
|
||||
# elfutils-debuginfod: debuginfod-client debuginfod-dummy-client.
|
||||
BuildRequires: debuginfod-client
|
||||
%endif
|
||||
|
||||
# SLE-10 doesn't have xz.
|
||||
@@ -817,6 +833,8 @@ find -name "*.info*"|xargs rm -f
|
||||
%patch2072 -p1
|
||||
%patch2073 -p1
|
||||
%patch2074 -p1
|
||||
%patch2075 -p1
|
||||
%patch2076 -p1
|
||||
|
||||
%patch2100 -p1
|
||||
%patch2101 -p1
|
||||
@@ -979,6 +997,9 @@ EXTRA_TARGETS=
|
||||
%endif
|
||||
%endif
|
||||
--with-separate-debug-dir=/usr/lib/debug \
|
||||
%if 0%{have_libdebuginfod}
|
||||
--with-debuginfod=yes \
|
||||
%endif
|
||||
--disable-sim \
|
||||
--disable-rpath \
|
||||
--with-system-zlib \
|
||||
|
Reference in New Issue
Block a user