2019-09-30 10:35:57 -04:00
|
|
|
Name: crash
|
2024-01-25 09:51:31 +08:00
|
|
|
Version: 8.0.4
|
2024-12-05 10:44:09 +08:00
|
|
|
Release: 10
|
2019-09-30 10:35:57 -04:00
|
|
|
Summary: Linux kernel crash utility.
|
|
|
|
|
License: GPLv3
|
2020-12-12 10:06:22 +08:00
|
|
|
URL: https://crash-utility.github.io
|
2021-02-01 11:37:13 +08:00
|
|
|
Source0: https://github.com/crash-utility/crash/archive/%{version}.tar.gz
|
2023-01-29 14:30:19 +08:00
|
|
|
Source1: http://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz
|
2019-09-30 10:35:57 -04:00
|
|
|
|
2024-01-25 09:51:31 +08:00
|
|
|
Patch0: 0000-lzo_snappy.patch
|
|
|
|
|
Patch1: 0001-add-SDEI-stack-resolution.patch
|
2024-12-05 10:44:09 +08:00
|
|
|
##%ifarch sw_64
|
2024-01-25 09:51:31 +08:00
|
|
|
Patch2: 0002-crash-8.0.2-sw.patch
|
2024-12-05 10:44:09 +08:00
|
|
|
##%endif
|
|
|
|
|
##%ifarch loongarch64
|
2024-04-16 09:57:29 +08:00
|
|
|
Patch3: 0003-crash-8.0.4-add-support-for-loongarch64.patch
|
2024-07-30 14:41:24 +08:00
|
|
|
Patch4: 0004-support-vmp_area_list-replaced-with-VMALLOC_START.patch
|
2024-12-05 10:44:09 +08:00
|
|
|
##%endif
|
2024-07-27 05:39:51 +08:00
|
|
|
Patch5: 0005-gdb-ignore-Wenum-constexpr-conversion-in-enum-flags.patch
|
2024-11-12 05:57:22 +00:00
|
|
|
Patch6: 0006-arm64-fix-a-potential-segfault-when-unwind-frame.patch
|
2024-11-29 06:35:14 +00:00
|
|
|
Patch7: 0007-arm64-fix-SDEI-stack-frame-unwind-while-UNW_4_14-is-.patch
|
2019-09-30 10:35:57 -04:00
|
|
|
|
2023-01-29 14:30:19 +08:00
|
|
|
BuildRequires: ncurses-devel zlib-devel lzo-devel snappy-devel texinfo libzstd-devel
|
2022-02-23 19:23:13 +08:00
|
|
|
BuildRequires: gcc gcc-c++ bison m4
|
2019-09-30 10:35:57 -04:00
|
|
|
Requires: binutils
|
2019-11-06 19:04:54 +08:00
|
|
|
|
2023-01-29 14:30:19 +08:00
|
|
|
Provides: bundled(libiberty) bundled(gdb) = 10.2
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The core analysis suite is a self-contained tool that can be used to
|
|
|
|
|
investigate either live systems, kernel core dumps created from dump
|
|
|
|
|
creation facilities such as kdump, kvmdump, xendump, the netdump and
|
|
|
|
|
diskdump packages offered by Red Hat, the LKCD kernel patch, the mcore
|
|
|
|
|
kernel patch created by Mission Critical Linux, as well as other formats
|
|
|
|
|
created by manufacturer-specific firmware.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: the development kit of crash.
|
|
|
|
|
Requires: %{name} = %{version}, zlib-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The core analysis suite is a self-contained tool that can be used to
|
|
|
|
|
investigate either live systems, kernel core dumps created from dump
|
|
|
|
|
creation facilities such as kdump, kvmdump, xendump, the netdump and
|
|
|
|
|
diskdump packages offered by Red Hat, the LKCD kernel patch, the mcore
|
|
|
|
|
kernel patch created by Mission Critical Linux, as well as other formats
|
|
|
|
|
created by manufacturer-specific firmware.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-12-05 10:44:09 +08:00
|
|
|
%setup -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%patch 0 -p1
|
|
|
|
|
%patch 1 -p1
|
|
|
|
|
|
|
|
|
|
%ifarch sw_64
|
|
|
|
|
%patch 2 -p1
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch loongarch64
|
|
|
|
|
%patch 3 -p1
|
|
|
|
|
%patch 4 -p1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%autopatch -m5 -p1
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
%build
|
2020-12-12 10:06:22 +08:00
|
|
|
cp %{SOURCE1} .
|
2023-01-29 14:30:19 +08:00
|
|
|
make -j`nproc` RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}"
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
%make_install
|
|
|
|
|
install -D -m 0644 crash.8 %{buildroot}%{_mandir}/man8/crash.8
|
2019-11-06 19:04:54 +08:00
|
|
|
install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%postun
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
%files
|
2019-11-06 19:04:54 +08:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%doc README
|
|
|
|
|
%license COPYING3
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man8/crash.8*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-12-05 10:44:09 +08:00
|
|
|
* Thu Dec 05 2024 shenzhongwei <shenzhongwei@kylinos.cn> - 8.0.4-10
|
|
|
|
|
- remove the architecture judgment in the patches section;
|
|
|
|
|
- include all patches in the source package.
|
|
|
|
|
|
2024-11-29 06:35:14 +00:00
|
|
|
* Fri Nov 29 2024 wangxiao <wangxiao184@h-partners.com> - 8.0.4-9
|
|
|
|
|
- arm64: fix SDEI stack frame unwind while UNW_4_14 is set
|
|
|
|
|
|
2024-11-13 06:45:43 +00:00
|
|
|
* Wed Nov 13 2024 wangxiao <wangxiao184@h-partners.com> - 8.0.4-8
|
|
|
|
|
- use autosetup instead of setup in prep stage
|
|
|
|
|
|
2024-11-12 05:57:22 +00:00
|
|
|
* Tue Nov 12 2024 wangxiao <wangxiao184@h-partners.com> - 8.0.4-7
|
|
|
|
|
- arm64: fix a potential segfault when unwind frame
|
|
|
|
|
|
2024-10-28 14:41:06 +08:00
|
|
|
* Fri Oct 25 2024 duanchenghao <duanchenghao@kylinos.cn> - 8.0.4-6
|
|
|
|
|
- Fix crash vmlinux /proc/kcore failed for loongarch64
|
|
|
|
|
|
2024-07-27 05:39:51 +08:00
|
|
|
* Fri Sep 06 2024 yanying <201250106@smail.nju.edu.cn> - 8.0.4-5
|
|
|
|
|
- Add gdbsupport ignore Wenum-constexpr-conversion in enum-flags.h to fix clang build error
|
|
|
|
|
|
2024-07-30 14:41:24 +08:00
|
|
|
* Tue Jul 30 2024 zhangzikang <zhangzikang@kylinos.cn> - 8.0.4-4
|
|
|
|
|
- Fix crash parsing vmcore file failed for loongarch64
|
|
|
|
|
|
2024-05-28 09:24:21 +00:00
|
|
|
* Tue May 28 2024 shaojiansong <shaojiansong@kylinos.cn> - 8.0.4-3
|
|
|
|
|
- Fix lack of loongarch64 and sw_64 patch files in src.rpm package which is build from any platform.
|
|
|
|
|
|
2024-04-16 09:57:29 +08:00
|
|
|
* Tue Apr 16 2024 Pengda Dou <doupengda@loongson.cn> - 8.0.4-2
|
|
|
|
|
- Resolve loongarch64 patch add error
|
|
|
|
|
- add support for loongarch64
|
|
|
|
|
|
2024-01-25 09:51:31 +08:00
|
|
|
* Thu Jan 25 2024 chenhaixiang<chenhaixiang3@huawei.com> - 8.0.4-1
|
|
|
|
|
- Upgrade to crash-8.0.4
|
|
|
|
|
|
2023-08-01 07:33:54 -04:00
|
|
|
* Tue Aug 1 2023 chenhaixiang<chenhaixiang3@huawei.com> - 8.0.2-4
|
|
|
|
|
- Fix compilation error due to new strlcpy function that glibc added
|
|
|
|
|
|
2023-07-10 15:56:39 +08:00
|
|
|
* Mon Jul 10 2023 wangming <wangming01@loongson.cn> - 8.0.2-3
|
|
|
|
|
- add LoongArch64 support.
|
|
|
|
|
|
2023-07-07 11:40:27 +08:00
|
|
|
* Fri Jul 7 2023 EastDong <xudong23@iscas.ac.cn> - 8.0.2-2
|
|
|
|
|
- add riscv64 support
|
|
|
|
|
|
2023-01-29 14:30:19 +08:00
|
|
|
* Sun Jan 29 2023 chenhaixiang<chenhaixiang3@huawei.com> - 8.0.2-1
|
|
|
|
|
- update to crash-8.0.2
|
|
|
|
|
|
2023-01-04 15:52:06 +08:00
|
|
|
* Wed Jan 4 2023 lijianglin<lijianglin2@huawei.com> - 7.3.0-12
|
|
|
|
|
- fix segfault by "bt" command with offline cpus
|
|
|
|
|
|
2022-12-29 14:42:54 +08:00
|
|
|
* Thu Dec 29 2022 huskartang <tanly6@chinatelecom.cn> - 7.3.0-11
|
|
|
|
|
- Fix the value of TIF_SIGPENDING macro
|
|
|
|
|
|
2022-12-29 11:47:25 +08:00
|
|
|
* Thu Dec 29 2022 huskartang <tanly6@chinatelecom.cn> - 7.3.0-10
|
|
|
|
|
- Fix "kmem -s|-S" option on Linux 5.7 and later kernels
|
|
|
|
|
|
2022-12-29 10:01:52 +08:00
|
|
|
* Thu Dec 29 2022 huskartang <tanly6@chinatelecom.cn> - 7.3.0-9
|
|
|
|
|
- Add lowercase tcr_el1_t1sz
|
|
|
|
|
|
|
|
|
|
* Wed Dec 28 2022 huskartang <tanly6@chinatelecom.cn> - 7.3.0-8
|
2022-12-28 21:43:36 +08:00
|
|
|
- rename pathes to keep in order
|
|
|
|
|
|
2022-12-01 19:58:54 +08:00
|
|
|
* Thu Dec 1 2022 Ding Hui <dinghui@sangfor.com.cn> - 7.3.0-7
|
|
|
|
|
- fix backtraces of arm64 KASAN kernel dumpfile truncated
|
|
|
|
|
|
2022-10-19 14:34:47 +08:00
|
|
|
* Wed Oct 19 2022 wuzx<wuzx1226@qq.com> - 7.3.0-6
|
|
|
|
|
- add sw64 patch
|
|
|
|
|
|
2022-02-23 19:23:13 +08:00
|
|
|
* Wed Feb 23 2022 wangbin <wangbin224@huawei.com> - 7.3.0-5
|
|
|
|
|
- Handle task_struct cpu member changes for kernels >= 5.16-rc1
|
|
|
|
|
and delete use_system_readline_v3.patch
|
|
|
|
|
|
2022-02-08 11:23:34 +08:00
|
|
|
* Tue Feb 8 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 7.3.0-4
|
|
|
|
|
- revert to fix null pointer reference when CONFIG_KASAN is open
|
|
|
|
|
|
2021-12-31 11:30:02 +08:00
|
|
|
* Fri Dec 31 2021 zhouwenpei <zhouwenpei1@huawei.com> - 7.3.0-3
|
|
|
|
|
- add SDEI stack resolution
|
|
|
|
|
|
2021-12-30 17:22:50 +08:00
|
|
|
* Thu Dec 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 7.3.0-2
|
|
|
|
|
- fix seek error "IRQ stack pointer"
|
|
|
|
|
|
2021-11-30 20:13:30 +08:00
|
|
|
* Tue Nov 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 7.3.0-1
|
|
|
|
|
- Upgrade version to 7.3.0
|
|
|
|
|
|
2021-09-03 16:14:17 +08:00
|
|
|
* Fri Sep 03 2021 wangbin <wangbin224@huawei.com> - 7.2.9-5
|
|
|
|
|
- fix null pointer reference when CONFIG_KASAN is open
|
|
|
|
|
|
2021-06-29 15:42:34 +08:00
|
|
|
* Tue Jun 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 7.2.9-4
|
|
|
|
|
- add buildrequires m4
|
|
|
|
|
|
2021-05-10 19:21:50 +08:00
|
|
|
* Mon May 10 2021 shixuantong <shixuantong@huawei.com> - 7.2.9-3
|
|
|
|
|
- add -j option for building efficiency optimization
|
|
|
|
|
|
2021-04-08 22:59:03 +08:00
|
|
|
* Thu Apr 08 2021 shixuantong <shixuantong@huawei.com> - 7.2.9-2
|
|
|
|
|
- fix patch issue in upgrade version commit
|
|
|
|
|
|
2021-02-01 11:37:13 +08:00
|
|
|
* Mon Feb 1 2021 liudabo <liudabo1@huawei.com> - 7.2.9-1
|
|
|
|
|
- Upgrade version to 7.2.9
|
|
|
|
|
|
2020-12-12 10:06:22 +08:00
|
|
|
* Sat Dec 12 2020 shixuantong <shixuantong@huawei.com> - 7.2.8-4
|
|
|
|
|
- Update Source0, URL, add Source1 and update tarball from upstream release
|
|
|
|
|
|
2020-09-08 17:19:25 +08:00
|
|
|
* Tue Sep 8 2020 shixuantong <shixuantong@huawei.com> - 7.2.8-3
|
|
|
|
|
- Restore Source0 and URL
|
|
|
|
|
|
2020-07-28 09:52:14 +08:00
|
|
|
* Tue Jul 28 2020 xinghe <xinghe1@huawei.com> - 7.2.8-2
|
|
|
|
|
- repair the source0
|
|
|
|
|
|
2020-06-13 19:20:03 +08:00
|
|
|
* Mon Jul 27 2020 xinghe <xinghe1@huawei.com> - 7.2.8-1
|
|
|
|
|
- update version to 7.2.8
|
|
|
|
|
|
2020-01-19 11:51:27 +08:00
|
|
|
* Sun Jan 19 2020 Yeqing Peng <pengyeqing@huawei.com> - 7.2.6-3
|
|
|
|
|
- fix parse vmcore fail.
|
|
|
|
|
|
2019-11-06 19:04:54 +08:00
|
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 7.2.6-2
|
|
|
|
|
- Package rebuild.
|
|
|
|
|
|
2019-09-30 10:35:57 -04:00
|
|
|
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 7.2.6-1
|
2019-11-06 19:04:54 +08:00
|
|
|
- Package init.
|