%define _hardened_build 1 Name: rasdaemon Version: 0.4.1 Release: 14%{?dist} Summary: Utility to receive RAS error tracings Group: Applications/System License: GPLv2 URL: https://git.fedorahosted.org/git/rasdaemon.git Source0: http://mchehab.fedorapeople.org/%{name}-%{version}.tar.bz2 ExclusiveArch: %{ix86} x86_64 aarch64 %{power64} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, automake, gettext-devel, libtool, sqlite-devel Requires: hwdata, perl-DBD-SQLite %ifnarch %{arm} %ifnarch ppc64le Requires: dmidecode %endif %endif Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Patch1: 0001-ras-mc-ctl-Improve-error-summary-to-show-label-and-m.patch Patch2: 0002-ras-record-make-the-code-more-generic.patch Patch3: 0003-ras-record-rename-stmt-to-stmt_mc_event.patch Patch4: 0004-ras-record-reorder-functions.patch Patch5: 0005-ras-record-Make-the-code-easier-to-add-support-for-o.patch Patch6: 0006-Add-support-to-record-AER-events.patch Patch7: 0007-Add-support-to-store-MCE-events-at-the-database.patch Patch8: 0008-ras-mc-ctl-add-summary-for-MCE-and-PCIe-AER-errors.patch Patch9: 0009-ras-mc-ctl-report-errors-also-for-PCIe-AER-and-MCE.patch Patch10: 0010-ras-mc-ctl-Fix-the-name-of-the-error-table-data.patch Patch11: 0013-ras-mc-ctl-Improve-parser.patch Patch12: 0014-ras-mc-ctl-Fix-label-register-with-2-layers.patch Patch13: 0015-Add-an-example-of-labels-file.patch Patch14: 0017-ras-mc-ctl-Fix-the-DIMM-layout-display.patch Patch15: 0019-ras-mc-ctl-remove-completely-use-of-modprobe.patch Patch16: 0022-mce-amd-k8.c-fix-a-warning.patch Patch17: 0023-add-abrt-suppport-for-rasdaemon.patch Patch18: 0026-rasdaemon-Add-record-option-to-rasdaemon-man-page.patch Patch19: 0027-ras-mc-ctl-Print-useful-message-when-run-without-ras.patch Patch20: 0028-Make-paths-in-the-systemd-services-configurable.patch Patch21: 0031-Correct-ABRT-report-data.patch Patch22: 0032-rasdaemon-handle-failures-of-snprintf.patch Patch23: 0033-rasdaemon-correct-range-while-parsing-top-middle-and.patch Patch24: 0034-rasdaemon-enable-recording-by-default.patch Patch25: 0035-eMCA-support.patch Patch26: 0036-rasdaemon-fix-some-errors-in-sqlite.patch Patch27: 0037-rasdaemon-sqlite-truncates-some-MCE-fields-to-32-bit.patch Patch28: 0038-rasdaemon-fix-mce-numfield-decoded-error.patch Patch29: 0039-rasdaemon-do-not-assume-dimmX-directories-will-be-pr.patch Patch30: 0040-rasdaemon-add-more-dell-labels.patch %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 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 %patch23 -p1 %patch24 -p1 %patch25 -p1 %patch26 -p1 %patch27 -p1 %patch28 -p1 %patch29 -p1 %patch30 -p1 %build autoreconf -vfi %configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog 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 install -D -p -m 0655 labels/* %{buildroot}%{_sysconfdir}/ras/dimm_labels.d rm INSTALL %{buildroot}/usr/include/*.h %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING README TODO %{_sbindir}/rasdaemon %{_sbindir}/ras-mc-ctl %{_mandir}/*/* %{_unitdir}/*.service %{_sharedstatedir}/rasdaemon %{_sysconfdir}/ras/dimm_labels.d %changelog * Tue Dec 16 2014 Aristeu Rozanski 0.4.1-14.el7 - properly install the labels so it can be packaged [1073090] * Tue Dec 02 2014 Aristeu Rozanski 0.4.1-13.el7 - updated labels patch to the new version submitted upstream [1073090] * Tue Nov 25 2014 Aristeu Rozanski 0.4.1-12.el7 - fix on how sysfs tree is parsed for DIMMs [1073090] - include new Dell labels [1073090] * Fri Oct 10 2014 Aristeu Rozanski 0.4.1-11.el7 - don't require dmidecode for ppc64le [1151385] * Fri Aug 22 2014 Aristeu Rozanski 0.4.1-10.el7 - use power64 macro instead, we have a driver enabled on ppc64 [1125663] * Mon Aug 18 2014 Aristeu Rozanski 0.4.1-9.el7 - eMCA support [1085519] - enable ppc64le [1125663] * Mon Jun 09 2014 Aristeu Rozanski 0.4.1-8.el7 - Revert patch in 0.4.1-7.el7, replaced by a better patch - Fix sizeof() usage on pointer [1035742] - Added macro to build the package with stack protector [1092558] - Handle failures of snprintf() [1035741] - Fix range checking on signed char variables [1035746] - Added aarch64 as architecture [1070973] - Start recording by default [1117366] [1117367] * Fri Jan 17 2014 Aristeu Rozanski 0.4.1-7.el7 - Fixed rasdaemon.service executable path [1043478] * Fri Dec 27 2013 Daniel Mach - 0.4.1-6 - Mass rebuild 2013-12-27 * Tue Aug 20 2013 Aristeu Rozanski 0.4.1-5.el7 - Applied Jarod Wilson fixes required to pass rpmlint tests * Thu Aug 15 2013 Aristeu Rozanski 0.4.1-4.el7 - Rebuild * Sun Jun 2 2013 Peter Robinson 0.4.1-3 - ARM has EDMA drivers (currently supported in Calxeda highbank) * Tue May 28 2013 Mauro Carvalho Chehab 0.4.1-2 - Fix the name of perl-DBD-SQLite package * Tue May 28 2013 Mauro Carvalho Chehab 0.4.1-1 - Updated to version 0.4.1 with contains some bug fixes * Mon May 27 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