2019-09-30 11:16:11 -04:00
|
|
|
Name: rasdaemon
|
2020-07-24 16:39:38 +08:00
|
|
|
Version: 0.6.6
|
2021-04-28 11:59:49 +08:00
|
|
|
Release: 4
|
2019-09-30 11:16:11 -04:00
|
|
|
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
|
2020-09-25 01:13:15 -07:00
|
|
|
Source0: https://github.com/mchehab/rasdaemon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2019-09-30 11:16:11 -04:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
2020-07-24 16:39:38 +08:00
|
|
|
Patch1: bugfix-ras-events-memory-leak.patch
|
|
|
|
|
Patch2: bugfix-rasdaemon-wait-for-file-access.patch
|
|
|
|
|
Patch3: bugfix-fix-fd-check.patch
|
2021-03-31 10:49:55 -07:00
|
|
|
Patch4: backport-0001-ras-page-isolation-do_page_offline-always-considers-.patch
|
|
|
|
|
Patch5: backport-0002-ras-page-isolation-page-which-is-PAGE_OFFLINE_FAILED.patch
|
2021-04-28 11:59:49 +08:00
|
|
|
Patch6: backport-rasdaemon-Fix-error-print.patch
|
2019-09-30 11:16:11 -04:00
|
|
|
|
|
|
|
|
%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
|
2020-07-24 16:39:38 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 11:16:11 -04:00
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%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
|
2019-11-06 19:51:08 +08:00
|
|
|
%doc ChangeLog README TODO
|
|
|
|
|
%license AUTHORS COPYING
|
2019-09-30 11:16:11 -04:00
|
|
|
%{_sbindir}/rasdaemon
|
|
|
|
|
%{_sbindir}/ras-mc-ctl
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
|
%{_sharedstatedir}/rasdaemon
|
|
|
|
|
%{_sysconfdir}/ras/dimm_labels.d
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-04-28 11:59:49 +08:00
|
|
|
* 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.
|
|
|
|
|
|
2021-03-31 10:49:55 -07:00
|
|
|
* 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
|
|
|
|
|
|
2020-09-25 01:13:15 -07:00
|
|
|
* Fri Sep 25 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.6-2
|
|
|
|
|
- Update software source URL
|
|
|
|
|
|
2020-07-24 16:39:38 +08:00
|
|
|
* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.6-1
|
|
|
|
|
- Update software to v0.6.6
|
|
|
|
|
|
2020-03-11 16:38:47 +08:00
|
|
|
* 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()
|
|
|
|
|
|
2019-09-30 11:16:11 -04:00
|
|
|
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6.3-1
|
|
|
|
|
- Package init
|