155 lines
5.7 KiB
RPMSpec
155 lines
5.7 KiB
RPMSpec
Name: rasdaemon
|
|
Version: 0.6.7
|
|
Release: 4
|
|
License: GPLv2
|
|
Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events
|
|
URL: https://github.com/mchehab/rasdaemon.git
|
|
Source0: https://github.com/mchehab/rasdaemon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
ExcludeArch: s390 s390x
|
|
BuildRequires: gcc, gettext-devel, perl-generators, sqlite-devel, systemd, git, libtool
|
|
Provides: bundled(kernel-event-lib)
|
|
Requires: hwdata
|
|
Requires: perl-DBD-SQLite
|
|
%ifarch %{ix86} x86_64
|
|
Requires: dmidecode
|
|
%endif
|
|
|
|
Requires(post): systemd
|
|
Requires(preun): systemd
|
|
Requires(postun): systemd
|
|
|
|
Patch1: bugfix-rasdaemon-wait-for-file-access.patch
|
|
Patch2: bugfix-fix-fd-check.patch
|
|
Patch3: bugfix-fix-disk-error-log-storm.patch
|
|
Patch4: backport-configure.ac-fix-SYSCONFDEFDIR-default-value.patch
|
|
Patch5: 0001-Support-cpu-fault-isolation-for-corrected-errors.patch
|
|
Patch6: 0002-Support-cpu-fault-isolation-for-recoverable-errors.patch
|
|
Patch7: 0001-rasdaemon-Fix-the-issue-of-sprintf-data-type-mismatc.patch
|
|
Patch8: 0002-rasdaemon-Fix-the-issue-of-command-option-r-for-hip0.patch
|
|
Patch9: 0003-rasdaemon-Fix-some-print-format-issues-for-hisi-comm.patch
|
|
Patch10: 0004-rasdaemon-Add-some-modules-supported-by-hisi-common-.patch
|
|
Patch11: 0001-rasdaemon-Modify-recording-Hisilicon-common-error-da.patch
|
|
Patch12: 0002-rasdaemon-ras-mc-ctl-Modify-error-statistics-for-HiS.patch
|
|
Patch13: 0003-rasdaemon-ras-mc-ctl-Reformat-error-info-of-the-HiSi.patch
|
|
Patch14: 0004-rasdaemon-ras-mc-ctl-Add-printing-usage-if-necessary.patch
|
|
Patch15: 0005-rasdaemon-ras-mc-ctl-Add-support-to-display-the-HiSi.patch
|
|
Patch16: 0006-rasdaemon-ras-mc-ctl-Relocate-reading-and-display-Ku.patch
|
|
|
|
%description
|
|
The rasdaemon program is a daemon which monitors the platform
|
|
Reliablity, Availability and Serviceability (RAS) reports from the
|
|
Linux kernel trace events. These trace events are logged in
|
|
/sys/kernel/debug/tracing, reporting them via syslog/journald.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
autoscan
|
|
aclocal
|
|
autoconf
|
|
autoheader
|
|
libtoolize --automake --copy --debug --force
|
|
automake --add-missing
|
|
%ifarch %{arm} aarch64
|
|
%configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog --enable-abrt-report --enable-devlink --enable-diskerror --enable-non-standard --enable-hisi-ns-decode --enable-arm --enable-memory-failure --enable-memory-ce-pfa
|
|
%else
|
|
%configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog --enable-abrt-report --enable-devlink --enable-diskerror
|
|
%endif
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
install -D -p -m 0644 misc/rasdaemon.env %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
|
install -D -p -m 0644 misc/rasdaemon.service %{buildroot}/%{_unitdir}/rasdaemon.service
|
|
install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service
|
|
rm INSTALL %{buildroot}/usr/include/*.h
|
|
|
|
%files
|
|
%doc ChangeLog README TODO
|
|
%license AUTHORS COPYING
|
|
%{_sbindir}/rasdaemon
|
|
%{_sbindir}/ras-mc-ctl
|
|
%{_mandir}/*/*
|
|
%{_unitdir}/*.service
|
|
%{_sysconfdir}/ras/dimm_labels.d
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
|
%post
|
|
/usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || :
|
|
|
|
%changelog
|
|
* Mon Mar 07 2022 Shiju Jose<shiju.jose@huawei.com> - 0.6.7-4
|
|
- Type:feature
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:
|
|
1. Modify recording Hisilicon common error data in the rasdaemon and
|
|
2. In the ras-mc-ctl,
|
|
2.1. Improve Hisilicon common error statistics.
|
|
2.2. Add support to display the HiSilicon vendor-errors for a specified module.
|
|
2.3. Add printing usage if necessary parameters are not passed for the HiSilicon vendor-errors options.
|
|
2.4. Reformat error info of the HiSilicon Kunpeng920.
|
|
2.5. Relocate reading and display Kunpeng920 errors to under Kunpeng9xx.
|
|
|
|
* Wed Mar 2 2022 tanxiaofei<tanxiaofei@huawei.com> - 0.6.7-3
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:
|
|
1. Backport 4 patches from openEuler master branch.
|
|
1) Fix the issue of sprintf data type mismatch in uuid_le()
|
|
2) Fix the issue of command option -r for hip08
|
|
3) Fix some print format issues for hisi common error section
|
|
4) Add some modules supported by hisi common error section
|
|
2.Enable compilation of the feature memory fault prediction based on
|
|
corrected error.
|
|
3.Fix changelog date error of this spec file.
|
|
|
|
* Wed Feb 23 2022 luoshengwei<luoshengwei@huawei.com> - 0.6.7-2
|
|
- Type:feature
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: Add cpu online fault isolation for arm event.
|
|
|
|
* Wed Dec 8 2021 xujing <xujing99@huawei.com> - 0.6.7-1
|
|
- Update software to v0.6.7
|
|
|
|
* Thu Jul 29 2021 tanxiaofei<tanxiaofei@huawei.com> - 0.6.6-6
|
|
- Type:feature
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Add support for hisilicon common section that some IIO devices may
|
|
- used in new firmware of Kunpeng920, and Kunpeng930 will also use it too.
|
|
|
|
* Sat May 15 2021 xujing<17826839720@163.com> - 0.6.6-5
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:fix disk error log storm
|
|
|
|
* Wed Apr 28 2021 Lv Ying <lvying6@huawei.com> - 0.6.6-4
|
|
- backport bugfix patches from community:
|
|
1. Fix error print handle_ras_events.
|
|
|
|
* Wed Mar 31 2021 Lv Ying <lvying6@huawei.com> - 0.6.6-3
|
|
- backport bugfix patches from community:
|
|
1. ras-page-isolation: do_page_offline always considers page offline was successful
|
|
2. ras-page-isolation: page which is PAGE_OFFLINE_FAILED can be offlined again
|
|
|
|
* Fri Sep 25 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.6-2
|
|
- Update software source URL
|
|
|
|
* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.6-1
|
|
- Update software to v0.6.6
|
|
|
|
* Tue Feb 25 2020 lvying<lvying6@huawei.com> - 0.6.3-2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:fix file descriptor leak in ras-report.c:setup_report_socket()
|
|
|
|
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6.3-1
|
|
- Package init
|