!145 [sync] PR-144: crash: add support for sw64

From: @openeuler-sync-bot 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
This commit is contained in:
openeuler-ci-bot 2025-04-28 02:51:42 +00:00 committed by Gitee
commit b17fc1f05f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 105898 additions and 3114 deletions

File diff suppressed because it is too large Load Diff

105884
0002-crash-8.0.4-sw64.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
Name: crash Name: crash
Version: 8.0.4 Version: 8.0.4
Release: 10 Release: 11
Summary: Linux kernel crash utility. Summary: Linux kernel crash utility.
License: GPLv3 License: GPLv3
URL: https://crash-utility.github.io URL: https://crash-utility.github.io
@ -9,16 +9,17 @@ Source1: http://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz
Patch0: 0000-lzo_snappy.patch Patch0: 0000-lzo_snappy.patch
Patch1: 0001-add-SDEI-stack-resolution.patch Patch1: 0001-add-SDEI-stack-resolution.patch
##%ifarch sw_64 %ifarch sw_64
Patch2: 0002-crash-8.0.2-sw.patch Patch2: 0002-crash-8.0.4-sw64.patch
##%endif %else
##%ifarch loongarch64 %ifarch loongarch64
Patch3: 0003-crash-8.0.4-add-support-for-loongarch64.patch Patch3: 0003-crash-8.0.4-add-support-for-loongarch64.patch
Patch4: 0004-support-vmp_area_list-replaced-with-VMALLOC_START.patch Patch4: 0004-support-vmp_area_list-replaced-with-VMALLOC_START.patch
##%endif %endif
Patch5: 0005-gdb-ignore-Wenum-constexpr-conversion-in-enum-flags.patch Patch5: 0005-gdb-ignore-Wenum-constexpr-conversion-in-enum-flags.patch
Patch6: 0006-arm64-fix-a-potential-segfault-when-unwind-frame.patch Patch6: 0006-arm64-fix-a-potential-segfault-when-unwind-frame.patch
Patch7: 0007-arm64-fix-SDEI-stack-frame-unwind-while-UNW_4_14-is-.patch Patch7: 0007-arm64-fix-SDEI-stack-frame-unwind-while-UNW_4_14-is-.patch
%endif
BuildRequires: ncurses-devel zlib-devel lzo-devel snappy-devel texinfo libzstd-devel BuildRequires: ncurses-devel zlib-devel lzo-devel snappy-devel texinfo libzstd-devel
BuildRequires: gcc gcc-c++ bison m4 BuildRequires: gcc gcc-c++ bison m4
@ -49,20 +50,21 @@ created by manufacturer-specific firmware.
%package_help %package_help
%prep %prep
%ifarch sw_64
%autosetup -n %{name}-%{version} -p1
%else
%setup -n %{name}-%{version} %setup -n %{name}-%{version}
%patch 0 -p1 %patch 0 -p1
%patch 1 -p1 %patch 1 -p1
%ifarch sw_64
%patch 2 -p1
%endif
%ifarch loongarch64 %ifarch loongarch64
%patch 3 -p1 %patch 3 -p1
%patch 4 -p1 %patch 4 -p1
%endif %endif
%autopatch -m5 -p1 %autopatch -m5 -p1
%endif
%build %build
cp %{SOURCE1} . cp %{SOURCE1} .
@ -97,6 +99,9 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h
%{_mandir}/man8/crash.8* %{_mandir}/man8/crash.8*
%changelog %changelog
* Tue Apr 15 2025 Gu Zitao <guzitao@wxiat.com> - 8.0.4-11
- crash: add support for sw64
* Thu Dec 05 2024 shenzhongwei <shenzhongwei@kylinos.cn> - 8.0.4-10 * Thu Dec 05 2024 shenzhongwei <shenzhongwei@kylinos.cn> - 8.0.4-10
- remove the architecture judgment in the patches section; - remove the architecture judgment in the patches section;
- include all patches in the source package. - include all patches in the source package.