diff --git a/crash.spec b/crash.spec index a295d7243a156817f0516cac56958fb788de0ee7..6bd14448a538104c595c2904b4786f3897eed448 100644 --- a/crash.spec +++ b/crash.spec @@ -1,6 +1,6 @@ Name: crash Version: 8.0.5 -Release: 5 +Release: 6 Summary: Linux kernel crash utility. License: GPLv3 URL: https://crash-utility.github.io @@ -9,12 +9,12 @@ Source1: http://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz Patch0: 0000-lzo_snappy.patch Patch1: 0001-add-SDEI-stack-resolution.patch -%ifarch sw_64 +## %ifarch sw_64 Patch2: 0002-crash-8.0.2-sw.patch -%endif -%ifarch loongarch64 +## %endif +## %ifarch loongarch64 Patch3: 0003-crash-8.0.4-add-support-for-loongarch64.patch -%endif +## %endif Patch4: 0004-arm64-fix-a-potential-segfault-when-unwind-frame.patch Patch5: 0005-arm64-fix-SDEI-stack-frame-unwind-while-UNW_4_14-is-.patch @@ -47,7 +47,19 @@ created by manufacturer-specific firmware. %package_help %prep -%autosetup -n %{name}-%{version} -p1 +%setup -n %{name}-%{version} + +%patch 0 -p1 +%patch 1 -p1 + +%ifarch sw_64 +%patch 2 -p1 +%endif +%ifarch loongarch64 +%patch 3 -p1 +%endif + +%autopatch -m4 -p1 %build cp %{SOURCE1} . @@ -82,6 +94,10 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h %{_mandir}/man8/crash.8* %changelog +* Wed Dec 04 2024 yangzhenyu - 8.0.5-6 +- remove the architecture judgment in the patches section; +- include all patches in the source package. + * Wed Nov 20 2024 Xiaoguang Wang - 8.0.5-5 - arm64: fix SDEI stack frame unwind while UNW_4_14 is set