Accepting request 1173886 from Base:System

OBS-URL: https://build.opensuse.org/request/show/1173886
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mcelog?expand=0&rev=66
This commit is contained in:
Ana Guerrero 2024-05-15 19:25:44 +00:00 committed by Git OBS Bridge
commit cc9c285c7d
11 changed files with 70 additions and 52 deletions

View File

@ -1,12 +1,12 @@
<services>
<service name="obs_scm" mode="localonly">
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionformat">@PARENT_TAG@</param>
</service>
<service name="set_version" mode="localonly"/>
<service name="set_version" mode="manual"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>

View File

@ -7,4 +7,4 @@
<param name="url">https://github.com/andikleen/mcelog.git</param>
<param name="changesrevision">1f3a769c8fb736815a56ea104b7b751c5565cb88</param></service><service name="tar_scm">
<param name="url">https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git</param>
<param name="changesrevision">f5615e9a2f840ad1238e8a7edc25f2f9fc4c3ba3</param></service></servicedata>
<param name="changesrevision">23c24878c2e004f360575d564b825753212a09e5</param></service></servicedata>

View File

@ -8,10 +8,10 @@ Signed-off-by: Borislav Petkov <bp@suse.de>
mcelog.h | 1
4 files changed, 506 insertions(+), 51 deletions(-)
Index: mcelog-189/amd.c
Index: mcelog-198/amd.c
===================================================================
--- mcelog-189.orig/amd.c
+++ mcelog-189/amd.c
--- mcelog-198.orig/amd.c
+++ mcelog-198/amd.c
@@ -14,7 +14,7 @@
#include "mcelog.h"
#include "amd.h"
@ -561,10 +561,10 @@ Index: mcelog-189/amd.c
+ }
+ return 1;
}
Index: mcelog-189/amd.h
Index: mcelog-198/amd.h
===================================================================
--- mcelog-189.orig/amd.h
+++ mcelog-189/amd.h
--- mcelog-198.orig/amd.h
+++ mcelog-198/amd.h
@@ -1,6 +1,25 @@
+#include <stdbool.h>
+
@ -628,11 +628,11 @@ Index: mcelog-189/amd.h
enum tt_ids {
TT_INSTR = 0,
Index: mcelog-189/mcelog.c
Index: mcelog-198/mcelog.c
===================================================================
--- mcelog-189.orig/mcelog.c
+++ mcelog-189/mcelog.c
@@ -152,8 +152,8 @@ static int mce_filter(struct mce *m, uns
--- mcelog-198.orig/mcelog.c
+++ mcelog-198/mcelog.c
@@ -151,8 +151,8 @@ static int mce_filter(struct mce *m, uns
/* Filter out known broken MCEs */
if (cputype >= CPU_INTEL)
return mce_filter_intel(m, recordlen);

View File

@ -7,10 +7,10 @@
msg.c | 8 ++
6 files changed, 346 insertions(+), 3 deletions(-)
Index: mcelog-195/Makefile
Index: mcelog-198/Makefile
===================================================================
--- mcelog-195.orig/Makefile
+++ mcelog-195/Makefile
--- mcelog-198.orig/Makefile
+++ mcelog-198/Makefile
@@ -1,3 +1,4 @@
+CONFIG_EMAIL := 1
CFLAGS := -g -Os
@ -51,10 +51,10 @@ Index: mcelog-195/Makefile
version.tmp: FORCE
( printf "char version[] = \"" ; \
Index: mcelog-195/email.c
Index: mcelog-198/email.c
===================================================================
--- /dev/null
+++ mcelog-195/email.c
+++ mcelog-198/email.c
@@ -0,0 +1,200 @@
+#include <unistd.h>
+#include <signal.h>
@ -256,10 +256,10 @@ Index: mcelog-195/email.c
+ smtp_destroy_session (session);
+ return 0;
+}
Index: mcelog-195/email.h
Index: mcelog-198/email.h
===================================================================
--- /dev/null
+++ mcelog-195/email.h
+++ mcelog-198/email.h
@@ -0,0 +1,34 @@
+#ifndef _MCELOG_EMAIL_H_
+#define _MCELOG_EMAIL_H_
@ -295,10 +295,10 @@ Index: mcelog-195/email.h
+#endif
+
+#endif
Index: mcelog-195/mcelog.c
Index: mcelog-198/mcelog.c
===================================================================
--- mcelog-195.orig/mcelog.c
+++ mcelog-195/mcelog.c
--- mcelog-198.orig/mcelog.c
+++ mcelog-198/mcelog.c
@@ -37,6 +37,7 @@
#include <assert.h>
#include <signal.h>
@ -307,7 +307,7 @@ Index: mcelog-195/mcelog.c
#include <fnmatch.h>
#include "mcelog.h"
#include "paths.h"
@@ -60,6 +61,9 @@
@@ -59,6 +60,9 @@
#include "bus.h"
#include "unknown.h"
@ -317,7 +317,7 @@ Index: mcelog-195/mcelog.c
enum cputype cputype = CPU_GENERIC;
char *logfn = LOG_DEV_FILENAME;
@@ -71,7 +75,7 @@ static double cpumhz;
@@ -70,7 +74,7 @@ static double cpumhz;
static int cpumhz_forced;
int ascii_mode;
int dump_raw_ascii;
@ -326,7 +326,7 @@ Index: mcelog-195/mcelog.c
static char *inputfile;
char *processor_flags;
static int foreground;
@@ -906,6 +910,7 @@ void usage(void)
@@ -912,6 +916,7 @@ void usage(void)
"--max-corr-err-counters Max page correctable error counters\n"
"--help Display this message.\n"
);
@ -334,7 +334,7 @@ Index: mcelog-195/mcelog.c
printf("\n");
print_cputypes();
}
@@ -977,6 +982,7 @@ static struct option options[] = {
@@ -985,6 +990,7 @@ static struct option options[] = {
{ "max-corr-err-counters", 1, NULL, O_MAX_CORR_ERR_COUNTERS },
{ "help", 0, NULL, O_HELP },
{ "is-cpu-supported", 0, NULL, O_IS_CPU_SUPPORTED },
@ -342,7 +342,7 @@ Index: mcelog-195/mcelog.c
{}
};
@@ -1171,11 +1177,86 @@ static void drop_cred(void)
@@ -1179,11 +1185,86 @@ static void drop_cred(void)
}
}
@ -429,7 +429,7 @@ Index: mcelog-195/mcelog.c
if (recordlen == 0) {
Wprintf("no data in mce record\n");
@@ -1202,12 +1283,16 @@ static void process(int fd, unsigned rec
@@ -1210,12 +1291,16 @@ static void process(int fd, unsigned rec
finish = 1;
if (!mce_filter(mce, recordlen))
continue;
@ -446,7 +446,7 @@ Index: mcelog-195/mcelog.c
flushlog();
}
@@ -1321,6 +1406,8 @@ int main(int ac, char **av)
@@ -1340,6 +1425,8 @@ int main(int ac, char **av)
noargs(ac, av);
fprintf(stderr, "mcelog %s\n", MCELOG_VERSION);
exit(0);
@ -455,7 +455,7 @@ Index: mcelog-195/mcelog.c
} else if (opt == 0)
break;
}
@@ -1355,6 +1442,10 @@ int main(int ac, char **av)
@@ -1374,6 +1461,10 @@ int main(int ac, char **av)
usage();
exit(1);
}
@ -466,10 +466,10 @@ Index: mcelog-195/mcelog.c
checkdmi();
general_setup();
Index: mcelog-195/mcelog.h
Index: mcelog-198/mcelog.h
===================================================================
--- mcelog-195.orig/mcelog.h
+++ mcelog-195/mcelog.h
--- mcelog-198.orig/mcelog.h
+++ mcelog-198/mcelog.h
@@ -118,6 +118,7 @@ extern int open_logfile(char *fn);
enum option_ranges {
O_COMMON = 500,
@ -478,10 +478,10 @@ Index: mcelog-195/mcelog.h
};
enum syslog_opt {
Index: mcelog-195/msg.c
Index: mcelog-198/msg.c
===================================================================
--- mcelog-195.orig/msg.c
+++ mcelog-195/msg.c
--- mcelog-198.orig/msg.c
+++ mcelog-198/msg.c
@@ -8,10 +8,13 @@
#include "mcelog.h"
#include "msg.h"
@ -496,7 +496,7 @@ Index: mcelog-195/msg.c
static char *output_fn;
int need_stdout(void)
@@ -135,6 +138,11 @@ int Wprintf(char *fmt, ...)
@@ -137,6 +140,11 @@ int Wprintf(char *fmt, ...)
n = vfprintf(output_fh ? output_fh : stdout, fmt, ap);
va_end(ap);
}

View File

@ -2,10 +2,10 @@
mcelog.c | 9 +++++++++
1 file changed, 9 insertions(+)
Index: mcelog-189/mcelog.c
Index: mcelog-198/mcelog.c
===================================================================
--- mcelog-189.orig/mcelog.c
+++ mcelog-189/mcelog.c
--- mcelog-198.orig/mcelog.c
+++ mcelog-198/mcelog.c
@@ -37,6 +37,7 @@
#include <assert.h>
#include <signal.h>
@ -14,7 +14,7 @@ Index: mcelog-189/mcelog.c
#include <sys/wait.h>
#include <fnmatch.h>
#include "mcelog.h"
@@ -1155,6 +1156,14 @@ static void general_setup(void)
@@ -1163,6 +1164,14 @@ static void general_setup(void)
static void drop_cred(void)
{

BIN
mcelog-197.obscpio (Stored with Git LFS)

Binary file not shown.

3
mcelog-198.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8a0fb636f73e4110a63c5150d5084d7ae8a9593e5d97d48389f80721b677931a
size 642572

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Mon May 13 12:47:27 UTC 2024 - trenn@suse.de
- Update to version 198:
* Remove obsolete on disk dimm database code
* page.c: Disable gcc warnings
* page.c: Remove obsolete comment
* mcelog: Fix clang warnings
* mcelog: mempage_replace missing initialization of mempage fields
* mcelog: Add third model number for Arrowlake
- Refresh patches according to mainline:
M add-f10h-support.patch
M email.patch
M fix_setgroups_missing_call.patch
M mcelog_invert_prefill_db_warning.patch
-------------------------------------------------------------------
Mon Feb 12 06:23:11 UTC 2024 - trenn@suse.de

View File

@ -1,4 +1,4 @@
name: mcelog
version: 197
mtime: 1705598790
commit: f5615e9a2f840ad1238e8a7edc25f2f9fc4c3ba3
version: 198
mtime: 1711644509
commit: 23c24878c2e004f360575d564b825753212a09e5

View File

@ -21,7 +21,7 @@
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Name: mcelog
Version: 197
Version: 198
Release: 0
Summary: Log Machine Check Events
License: GPL-2.0-only

View File

@ -2,9 +2,11 @@
memdb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--- a/memdb.c
+++ b/memdb.c
@@ -431,11 +431,11 @@
Index: mcelog-198/memdb.c
===================================================================
--- mcelog-198.orig/memdb.c
+++ mcelog-198/memdb.c
@@ -440,11 +440,11 @@ void prefill_memdb(int do_dmi)
md->location = xstrdup(bl);
md->name = xstrdup(dmi_getstring(&d->header, d->device_locator));
}