diff options
| -rw-r--r-- | meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/0001-Fix-system-header-includes.patch | 44 | ||||
| -rw-r--r-- | meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/0001-libtrace-Use-XSI-version-of-strerror_r-on-non-glibc-.patch | 35 | ||||
| -rw-r--r-- | meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.6.8.bb (renamed from meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.6.7.bb) | 8 |
3 files changed, 37 insertions, 50 deletions
diff --git a/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/0001-Fix-system-header-includes.patch b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/0001-Fix-system-header-includes.patch deleted file mode 100644 index 0164321312..0000000000 --- a/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/0001-Fix-system-header-includes.patch +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | From 18786db1ad03716267927d983c83275469a1478a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 8 May 2020 12:27:19 -0700 | ||
| 4 | Subject: [PATCH] Fix system header includes | ||
| 5 | |||
| 6 | Use poll.h instead of sys/poll.h | ||
| 7 | Fixes | ||
| 8 | warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] | ||
| 9 | |||
| 10 | Include limits.h for PATH_MAX | ||
| 11 | |||
| 12 | Fixes | ||
| 13 | ras-events.c:359:16: error: 'PATH_MAX' undeclared (first use in this function) | ||
| 14 | 359 | char pipe_raw[PATH_MAX]; | ||
| 15 | | ^~~~~~~~ | ||
| 16 | |||
| 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 18 | --- | ||
| 19 | ras-events.c | 3 ++- | ||
| 20 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/ras-events.c b/ras-events.c | ||
| 23 | index 511c93d..400e740 100644 | ||
| 24 | --- a/ras-events.c | ||
| 25 | +++ b/ras-events.c | ||
| 26 | @@ -18,13 +18,14 @@ | ||
| 27 | #include <dirent.h> | ||
| 28 | #include <errno.h> | ||
| 29 | #include <fcntl.h> | ||
| 30 | +#include <limits.h> | ||
| 31 | +#include <poll.h> | ||
| 32 | #include <stdio.h> | ||
| 33 | #include <stdlib.h> | ||
| 34 | #include <string.h> | ||
| 35 | #include <unistd.h> | ||
| 36 | #include <sys/stat.h> | ||
| 37 | #include <sys/types.h> | ||
| 38 | -#include <sys/poll.h> | ||
| 39 | #include <signal.h> | ||
| 40 | #include <sys/signalfd.h> | ||
| 41 | #include "libtrace/kbuffer.h" | ||
| 42 | -- | ||
| 43 | 2.26.2 | ||
| 44 | |||
diff --git a/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/0001-libtrace-Use-XSI-version-of-strerror_r-on-non-glibc-.patch b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/0001-libtrace-Use-XSI-version-of-strerror_r-on-non-glibc-.patch new file mode 100644 index 0000000000..fef71afde5 --- /dev/null +++ b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/0001-libtrace-Use-XSI-version-of-strerror_r-on-non-glibc-.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From e415152b51eacab8705b6b3274cc0d1a274772e0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 30 Aug 2022 19:54:35 -0700 | ||
| 4 | Subject: [PATCH] libtrace: Use XSI version of strerror_r on non glibc systems | ||
| 5 | |||
| 6 | The version used is glibc specific therefore make it so | ||
| 7 | and provide a fallback for non-glibc systems | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://github.com/mchehab/rasdaemon/pull/70] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | libtrace/event-parse.c | 6 ++++++ | ||
| 13 | 1 file changed, 6 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/libtrace/event-parse.c b/libtrace/event-parse.c | ||
| 16 | index 6c705c3..6b651d5 100644 | ||
| 17 | --- a/libtrace/event-parse.c | ||
| 18 | +++ b/libtrace/event-parse.c | ||
| 19 | @@ -5071,7 +5071,13 @@ int pevent_strerror(struct pevent *pevent, enum pevent_errno errnum, | ||
| 20 | const char *msg; | ||
| 21 | |||
| 22 | if (errnum >= 0) { | ||
| 23 | +#if defined(__GLIBC__) | ||
| 24 | msg = strerror_r(errnum, buf, buflen); | ||
| 25 | +#else | ||
| 26 | + if (strerror_r(errnum, buf, buflen) != 0) | ||
| 27 | + snprintf(buf, buflen, "unknown error %i", errnum); | ||
| 28 | + msg = buf; | ||
| 29 | +#endif | ||
| 30 | if (msg != buf) { | ||
| 31 | size_t len = strlen(msg); | ||
| 32 | memcpy(buf, msg, min(buflen - 1, len)); | ||
| 33 | -- | ||
| 34 | 2.37.3 | ||
| 35 | |||
diff --git a/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.6.7.bb b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.6.8.bb index f30822b06e..3a525e8a15 100644 --- a/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.6.7.bb +++ b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.6.8.bb | |||
| @@ -4,11 +4,11 @@ LICENSE = "GPL-2.0-only" | |||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d3070efe0afa3dc41608bd82c00bb0dc" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d3070efe0afa3dc41608bd82c00bb0dc" |
| 5 | 5 | ||
| 6 | SRC_URI = "git://github.com/mchehab/rasdaemon.git;branch=master;protocol=https \ | 6 | SRC_URI = "git://github.com/mchehab/rasdaemon.git;branch=master;protocol=https \ |
| 7 | file://0001-Fix-system-header-includes.patch \ | 7 | file://0001-libtrace-Use-XSI-version-of-strerror_r-on-non-glibc-.patch \ |
| 8 | file://rasdaemon.service \ | 8 | file://rasdaemon.service \ |
| 9 | file://init" | 9 | file://init" |
| 10 | 10 | ||
| 11 | SRCREV = "aa96737648d867a3d73e4151d05b54bbab494605" | 11 | SRCREV = "c2255178a49f62c53009a456bc37dd5e37332f09" |
| 12 | 12 | ||
| 13 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
| 14 | 14 | ||
| @@ -32,10 +32,6 @@ PACKAGECONFIG[abrt-report] = "--enable-abrt-report,--disable-abrt-report" | |||
| 32 | DEPENDS:append:libc-musl = " argp-standalone" | 32 | DEPENDS:append:libc-musl = " argp-standalone" |
| 33 | LDFLAGS:append:libc-musl = " -largp" | 33 | LDFLAGS:append:libc-musl = " -largp" |
| 34 | 34 | ||
| 35 | do_configure:prepend () { | ||
| 36 | ( cd ${S}; autoreconf -vfi ) | ||
| 37 | } | ||
| 38 | |||
| 39 | do_install:append() { | 35 | do_install:append() { |
| 40 | install -d ${D}${sysconfdir}/init.d | 36 | install -d ${D}${sysconfdir}/init.d |
| 41 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rasdaemon | 37 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rasdaemon |
