]> git.pld-linux.org Git - packages/mcelog.git/commitdiff
- avoid bash dep, rel 2 auto/ac/mcelog-1_0-0_pre3_2
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 10 Aug 2010 10:42:34 +0000 (10:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bashism.patch -> 1.1
    mcelog.spec -> 1.23

bashism.patch [new file with mode: 0644]
mcelog.spec

diff --git a/bashism.patch b/bashism.patch
new file mode 100644 (file)
index 0000000..1804182
--- /dev/null
@@ -0,0 +1,17 @@
+--- mcelog-1.0pre3/triggers/cache-error-trigger~       2010-01-21 04:36:52.000000000 +0200
++++ mcelog-1.0pre3/triggers/cache-error-trigger        2010-08-10 13:40:29.531631113 +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.
+@@ -25,7 +25,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"
+       fi
+ done
index 5eb074e8373404db3348539b4fcfc82796134343..841926bb8f3a5a2510aca6492466d84ae01b2491 100644 (file)
@@ -1,7 +1,7 @@
 # TODO
 # - sync pl
 %define                subver  pre3
-%define                rel             1.1
+%define                rel             2
 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
@@ -17,6 +17,7 @@ Source3:      %{name}.init
 Source4:       %{name}.sysconfig
 Patch1:                %{name}-FHS.patch
 Patch2:                manual.patch
+Patch3:                bashism.patch
 BuildRequires: rpmbuild(macros) >= 1.228
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
@@ -60,6 +61,7 @@ Xeon).
 %setup -q -n %{name}-%{version}%{subver}
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__make} \
This page took 0.22048 seconds and 4 git commands to generate.