From 1db359d99dae8b5442aa40c19fb21459609e1fa7 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 2 Nov 2021 22:54:17 -0400 Subject: [PATCH] import rasdaemon-0.6.4-6.el9 --- .gitignore | 1 + .rasdaemon.metadata | 1 + ...rasdaemon-avoid-multiple-definitions.patch | 24 +++ SPECS/rasdaemon.spec | 186 ++++++++++++++++++ 4 files changed, 212 insertions(+) create mode 100644 .gitignore create mode 100644 .rasdaemon.metadata create mode 100644 SOURCES/rasdaemon-avoid-multiple-definitions.patch create mode 100644 SPECS/rasdaemon.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c60f770 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rasdaemon-0.6.4.tar.bz2 diff --git a/.rasdaemon.metadata b/.rasdaemon.metadata new file mode 100644 index 0000000..f2e0d52 --- /dev/null +++ b/.rasdaemon.metadata @@ -0,0 +1 @@ +2f3c6815ec9e8aa04439ff95dca0e29e77ba44fb SOURCES/rasdaemon-0.6.4.tar.bz2 diff --git a/SOURCES/rasdaemon-avoid-multiple-definitions.patch b/SOURCES/rasdaemon-avoid-multiple-definitions.patch new file mode 100644 index 0000000..109587b --- /dev/null +++ b/SOURCES/rasdaemon-avoid-multiple-definitions.patch @@ -0,0 +1,24 @@ +commit fd982af0a307edc5d3e56011d2e045015b1efd4b +Author: Mauro Carvalho Chehab +Date: Mon Mar 30 01:22:24 2020 +0200 + + ras-record.h: define an external var as such + + Otherwise, newer versions of gcc will produce multiple symbols, + causing link breakages. + + Signed-off-by: Mauro Carvalho Chehab + +diff --git a/ras-record.h b/ras-record.h +index 5311c67caf44..0d2a481c23dd 100644 +--- a/ras-record.h ++++ b/ras-record.h +@@ -25,7 +25,7 @@ + + extern long user_hz; + +-struct ras_events *ras; ++extern struct ras_events *ras; + + struct ras_mc_event { + char timestamp[64]; diff --git a/SPECS/rasdaemon.spec b/SPECS/rasdaemon.spec new file mode 100644 index 0000000..13c4381 --- /dev/null +++ b/SPECS/rasdaemon.spec @@ -0,0 +1,186 @@ +Name: rasdaemon +Version: 0.6.4 +Release: 6%{?dist} +Summary: Utility to receive RAS error tracings +License: GPLv2 +URL: http://git.infradead.org/users/mchehab/rasdaemon.git +Source0: http://www.infradead.org/~mchehab/rasdaemon/%{name}-%{version}.tar.bz2 +Patch0: rasdaemon-avoid-multiple-definitions.patch + +ExcludeArch: s390 s390x +BuildRequires: make +BuildRequires: gcc +BuildRequires: gettext-devel +BuildRequires: perl-generators +BuildRequires: sqlite-devel +BuildRequires: systemd +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 + +%description +%{name} is a RAS (Reliability, Availability and Serviceability) logging tool. +It currently records memory errors, using the EDAC tracing events. +EDAC is drivers in the Linux kernel that handle detection of ECC errors +from memory controllers for most chipsets on i386 and x86_64 architectures. +EDAC drivers for other architectures like arm also exists. +This userspace component consists of an init script which makes sure +EDAC drivers and DIMM labels are loaded at system startup, as well as +an utility for reporting current error counts from the EDAC sysfs files. + +%prep +%setup -q +%patch0 -p1 + +%build +%ifarch %{arm} aarch64 +%configure --enable-sqlite3 --enable-aer --enable-mce --enable-extlog --enable-devlink --enable-diskerror --enable-abrt-report --enable-non-standard --enable-arm --enable-hisi-ns-decode +%else +%configure --enable-sqlite3 --enable-aer --enable-mce --enable-extlog --enable-devlink --enable-diskerror --enable-abrt-report +%endif +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +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 AUTHORS ChangeLog COPYING README TODO +%{_sbindir}/rasdaemon +%{_sbindir}/ras-mc-ctl +%{_mandir}/*/* +%{_unitdir}/*.service +%{_sharedstatedir}/rasdaemon +%{_sysconfdir}/ras/dimm_labels.d + +%changelog +* Tue Aug 10 2021 Mohan Boddu - 0.6.4-6 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 0.6.4-5 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.6.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.6.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.6.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + + +* Thu Oct 10 2019 Mauro Carvalho Chehab 0.6.4-1 +- Bump to version 0.6.4 with some DB changes for hip08 and some fixes + +* Fri Aug 23 2019 Mauro Carvalho Chehab 0.6.3-1 +- Bump to version 0.6.3 with new ARM events, plus disk I/O and netlink support + +* Fri Jul 26 2019 Fedora Release Engineering - 0.6.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Aug 14 2018 Mauro Carvalho Chehab 0.6.2-1 +- Bump to version 0.6.2 with improvements for PCIe AER parsing and at ras-mc-ctl tool + +* Sat Jul 14 2018 Fedora Release Engineering - 0.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Apr 25 2018 Mauro Carvalho Chehab 0.6.1-1 +- Bump to version 0.6.1 adding support for Skylake Xeon MSCOD, a bug fix and some new DELL labels + +* Fri Feb 09 2018 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Oct 14 2017 Mauro Carvalho Chehab 0.6.0-1 +- Bump to version 0.6.0 adding support for Arm and Hisilicon events and update Dell Skylate labels + +* Thu Aug 03 2017 Fedora Release Engineering - 0.5.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.5.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.5.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Apr 15 2016 Mauro Carvalho Chehab 0.5.8-3 +- Add a virtual provide, per BZ#104132 + +* Fri Apr 15 2016 Mauro Carvalho Chehab 0.5.8-2 +- Bump to version 0.5.8 with support for Broadwell EP/EX MSCOD/DE MSCOD + +* Thu Feb 04 2016 Fedora Release Engineering - 0.5.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jul 03 2015 Mauro Carvalho Chehab 0.5.6-1 +- Bump to version 0.5.6 with support for LMCE and some fixes + +* Thu Jun 18 2015 Fedora Release Engineering - 0.5.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 03 2015 Mauro Carvalho Chehab 0.5.5-1 +- Bump to version 0.5.5 with support for newer Intel platforms & some fixes + +* Tue Sep 16 2014 Peter Robinson 0.5.4-3 +- aarch64/ppc64 have edac capabilities +- spec cleanups +- No need to run autoreconf + +* Sun Aug 17 2014 Fedora Release Engineering - 0.5.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Fri Aug 15 2014 Mauro Carvalho Chehab 0.5.4-1 +- Bump to version 0.5.4 with some fixes, mainly for amd64 + +* Sun Aug 10 2014 Mauro Carvalho Chehab 0.5.3-1 +- Bump to version 0.5.3 and enable ABRT and ExtLog + +* Sun Jun 08 2014 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Apr 03 2014 Mauro Carvalho Chehab 0.5.2-1 +- fix and enable ABRT report support + +* Fri Mar 28 2014 Mauro Carvalho Chehab 0.5.1-1 +- Do some fixes at the service files and add some documentation for --record + +* Sun Feb 16 2014 Mauro Carvalho Chehab 0.5.0-1 +- Add experimental ABRT support + +* Tue Sep 10 2013 Mauro Carvalho Chehab 0.4.2-1 +- Fix ras-mc-ctl layout filling + +* Sun Aug 04 2013 Fedora Release Engineering - 0.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 0.4.1-4 +- Perl 5.18 rebuild + +* Sun Jun 2 2013 Peter Robinson 0.4.1-3 +- ARM has EDMA drivers (currently supported in Calxeda highbank) + +* Wed May 29 2013 Mauro Carvalho Chehab 0.4.1-2 +- Fix the name of perl-DBD-SQLite package + +* Wed May 29 2013 Mauro Carvalho Chehab 0.4.1-1 +- Updated to version 0.4.1 with contains some bug fixes + +* Tue May 28 2013 Mauro Carvalho Chehab 0.4.0-1 +- Updated to version 0.4.0 and added support for mce, aer and sqlite3 storage + +* Mon May 20 2013 Mauro Carvalho Chehab 0.3.0-1 +- Package created +