Sync from SUSE:SLFO:Main crash revision 8857b4224a8f6fd06d0556bb5329aa5f
This commit is contained in:
BIN
crash-8.0.4.tar.gz
(Stored with Git LFS)
BIN
crash-8.0.4.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
crash-8.0.6.tar.gz
(Stored with Git LFS)
Normal file
BIN
crash-8.0.6.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 20 17:48:41 UTC 2025 - David Mair <dmair@suse.com>
|
||||
|
||||
- Updated to crash 8.0.6
|
||||
- Update deprecated %patch syntax
|
||||
- Added the folowing patch to resolve a library change in crash
|
||||
as used by the gcore extension, copied from unreleased upstream
|
||||
gcore:
|
||||
* gcore-fix-use-of-set_context.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 18 09:32:27 UTC 2025 - Wolfgang Frisch <wolfgang.frisch@suse.com>
|
||||
|
||||
|
43
crash.spec
43
crash.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package crash
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -61,7 +61,7 @@ URL: https://crash-utility.github.io/
|
||||
Summary: Crash utility for live systems; netdump, diskdump, LKCD or mcore dumpfiles
|
||||
License: GFDL-1.2-only AND GPL-3.0-or-later
|
||||
Group: Development/Tools/Debuggers
|
||||
Version: 8.0.4
|
||||
Version: 8.0.6
|
||||
Release: 0
|
||||
Source: https://github.com/crash-utility/crash/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: https://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz
|
||||
@@ -95,7 +95,9 @@ Patch30: %{name}-enable-zstd-support.patch
|
||||
Patch32: %{name}-extensions-rule-for-defs.patch
|
||||
Patch90: %{name}-sial-ps-2.6.29.diff
|
||||
Patch99: %{name}-usrmerge.patch
|
||||
Patch111: fix_extensions_makefile_race_condition.patch
|
||||
Patch100: gcore-fix-use-of-set_context.patch
|
||||
|
||||
Patch101: fix_extensions_makefile_race_condition.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gcc-c++
|
||||
@@ -231,26 +233,26 @@ Authors:
|
||||
%prep
|
||||
%setup -q -a 2 -a 4
|
||||
ln -s %{SOURCE1} .
|
||||
%patch -P1 -p1
|
||||
%patch -P2 -p1
|
||||
%patch -P4 -p1
|
||||
%patch -P9 -p1
|
||||
%patch -P10 -p1
|
||||
%patch -P11 -p1
|
||||
%patch -P13 -p1
|
||||
%patch -P18 -p1
|
||||
%patch -P21 -p1
|
||||
%patch -P 1 -p1
|
||||
%patch -P 2 -p1
|
||||
%patch -P 4 -p1
|
||||
%patch -P 9 -p1
|
||||
%patch -P 10 -p1
|
||||
%patch -P 11 -p1
|
||||
%patch -P 13 -p1
|
||||
%patch -P 18 -p1
|
||||
%patch -P 21 -p1
|
||||
# Patches for SLE 15 SP1 potentially break support for SLE15 and SLE 12 SP4
|
||||
# Don't apply on these (and earlier) versions - see bsc#1148197
|
||||
%if 0%{?sle_version} > 120400 && 0%{?sle_version} != 150000
|
||||
%patch -P23 -p1
|
||||
%patch -P24 -p1
|
||||
%patch -P 23 -p1
|
||||
%patch -P 24 -p1
|
||||
%endif
|
||||
%if %{have_snappy}
|
||||
%patch -P15 -p1
|
||||
%patch -P 15 -p1
|
||||
%endif
|
||||
%if %{have_zstd}
|
||||
%patch -P30 -p1
|
||||
%patch -P 30 -p1
|
||||
%endif
|
||||
## GDB patches
|
||||
for f in %{S:100} %{S:101}; do
|
||||
@@ -258,24 +260,25 @@ for f in %{S:100} %{S:101}; do
|
||||
cp "$f" "${base#%{name}-}"
|
||||
done
|
||||
|
||||
%patch -P32 -p1
|
||||
%patch -P 32 -p1
|
||||
|
||||
## SIAL patches
|
||||
cd sial-scripts-%{scripts_version}
|
||||
%patch -P90 -p1
|
||||
%patch -P 90 -p1
|
||||
cd -
|
||||
cd extensions
|
||||
## gcore extension
|
||||
tar xfvj %{S:5}
|
||||
cd -
|
||||
%patch -P 100 -p1
|
||||
cp %{S:3} .
|
||||
mkdir kbuild
|
||||
cp %{S:6} memory_driver
|
||||
%if 0%{?suse_version} > 1550
|
||||
%patch -P99 -p1
|
||||
%patch -P 99 -p1
|
||||
%endif
|
||||
|
||||
%patch -P111 -p1
|
||||
%patch -P 101 -p1
|
||||
|
||||
%build
|
||||
%ifarch ppc64le ppc64
|
||||
|
21
gcore-fix-use-of-set_context.patch
Normal file
21
gcore-fix-use-of-set_context.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff -Nur a/extensions/gcore.c b/extensions/gcore.c
|
||||
--- a/extensions/gcore.c
|
||||
+++ b/extensions/gcore.c
|
||||
@@ -306,7 +306,7 @@
|
||||
|
||||
if (tc != CURRENT_CONTEXT()) {
|
||||
gcore->orig_task = CURRENT_TASK();
|
||||
- (void) set_context(tc->task, NO_PID);
|
||||
+ (void) set_context(tc->task, NO_PID, FALSE);
|
||||
}
|
||||
|
||||
snprintf(gcore->corename, CORENAME_MAX_SIZE + 1, "core.%lu.%s",
|
||||
@@ -340,7 +340,7 @@
|
||||
}
|
||||
|
||||
if (gcore->orig_task)
|
||||
- (void)set_context(gcore->orig_task, NO_PID);
|
||||
+ (void)set_context(gcore->orig_task, NO_PID, FALSE);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user