[packages/mcelog] Up to 213
arekm
arekm at pld-linux.org
Sat Nov 28 17:44:32 CET 2026
commit ad3f8492d269e7cda10db8456a4bed879fc9ce57
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 16:13:03 2026 +0100
Up to 213
bashism.patch | 17 -----------------
mcelog-FHS.patch | 11 -----------
mcelog.spec | 23 +++++++++--------------
3 files changed, 9 insertions(+), 42 deletions(-)
---
diff --git a/mcelog.spec b/mcelog.spec
index 2559b6f..2e11103 100644
--- a/mcelog.spec
+++ b/mcelog.spec
@@ -1,20 +1,20 @@
Summary: x86-64/x86 Machine Check Exceptions collector and decoder
Summary(pl.UTF-8): Narzędzie do zbierania i dekodowania wyjątków MCE na platformie x86-64/x86
Name: mcelog
-Version: 137
-Release: 2
+Version: 213
+Release: 1
License: GPL v2
Group: Applications/System
#Source0Download: https://github.com/andikleen/mcelog/releases
Source0: https://github.com/andikleen/mcelog/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 0412cc7f0169ca4fd9dde141a72dab1b
+# Source0-md5: 1ccfa3c153b7338c79356d9fa529dc25
Source1: %{name}.logrotate
Source2: %{name}.cron
Source3: %{name}.init
Source4: %{name}.sysconfig
-Patch1: %{name}-FHS.patch
-Patch2: bashism.patch
URL: http://www.mcelog.org/
+BuildRequires: bash
+BuildRequires: python3
BuildRequires: rpmbuild(macros) >= 1.228
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts
@@ -22,8 +22,6 @@ Suggests: crondaemon
ExclusiveArch: %{ix86} %{x8664} x32
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define statdir /var/lib/misc
-
%description
mcelog is the user space backend for logging machine check errors
reported by the hardware to the kernel. The kernel does the immediate
@@ -57,8 +55,8 @@ tych zdarzeń; loguje ono zdekodowane zdarzenia MCE do /var/log/mcelog.
%prep
%setup -q
-%patch -P1 -p1
-%patch -P2 -p1
+
+echo -n %{version} > .os_version
%build
%{__make} \
@@ -67,7 +65,7 @@ tych zdarzeń; loguje ono zdekodowane zdarzenia MCE do /var/log/mcelog.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,{cron,logrotate}.d},/var/log,%{statdir}}
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,{cron,logrotate}.d},/var/log}
%{__make} install \
prefix=$RPM_BUILD_ROOT%{_prefix} \
@@ -78,8 +76,6 @@ cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
-:> $RPM_BUILD_ROOT%{statdir}/memory-errors
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -95,7 +91,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc CHANGES README TODO TODO-diskdb mce.pdf
+%doc CHANGES README.md mce.pdf
%attr(755,root,root) %{_sbindir}/mcelog
%attr(640,root,root) /etc/cron.d/mcelog
%attr(754,root,root) /etc/rc.d/init.d/%{name}
@@ -106,6 +102,5 @@ fi
# do replace on upgrade, in fact, these should be moved to /lib/mcelog as they
# all support foo.local invocation at the end
%attr(755,root,root) %config %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*-trigger
-%attr(640,root,root) %ghost %{statdir}/memory-errors
%{_mandir}/man5/mcelog*.5*
%{_mandir}/man8/mcelog.8*
diff --git a/bashism.patch b/bashism.patch
deleted file mode 100644
index dea9fe6..0000000
--- a/bashism.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- mcelog-1.0/triggers/cache-error-trigger~ 2012-05-20 15:04:04.000000000 +0300
-+++ mcelog-1.0/triggers/cache-error-trigger 2012-05-20 15:04:25.668701513 +0300
-@@ -1,4 +1,4 @@
--#!/bin/bash
-+#!/bin/sh
- # cache error trigger. This shell script is executed by mcelog in daemon mode
- # when a CPU reports excessive corrected cache errors. This could be a indication
- # for future uncorrected errors.
-@@ -28,7 +28,7 @@
- logger -s -p daemon.crit -t mcelog "Offlining CPU $i due to cache error threshold"
- F=$(printf "/sys/devices/system/cpu/cpu%d/online" $i)
- echo 0 > $F
-- if [ "$(< $F)" != "0" ] ; then
-+ if [ "$(cat $F)" != "0" ]; then
- logger -s -p daemon.warn -t mcelog "Offlining CPU $i failed"
- EXIT=1
- fi
diff --git a/mcelog-FHS.patch b/mcelog-FHS.patch
deleted file mode 100644
index 05ba98e..0000000
--- a/mcelog-FHS.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- mcelog-1.0pre3/paths.h.orig 2010-01-21 03:36:52.000000000 +0100
-+++ mcelog-1.0pre3/paths.h 2010-02-01 22:38:22.000000000 +0100
-@@ -1,7 +1,7 @@
- #define PREFIX ""
-
- #define LOG_DEV_FILENAME "/dev/mcelog"
--#define DIMM_DB_FILENAME PREFIX "/var/lib/memory-errors"
-+#define DIMM_DB_FILENAME PREFIX "/var/lib/misc/memory-errors"
- #define CONFIG_FILENAME PREFIX "/etc/mcelog/mcelog.conf"
-
- #define SOCKET_PATH "/var/run/mcelog-client"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mcelog.git/commitdiff/ad3f8492d269e7cda10db8456a4bed879fc9ce57
More information about the pld-cvs-commit
mailing list