diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /app-admin/rasdaemon | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'app-admin/rasdaemon')
| -rw-r--r-- | app-admin/rasdaemon/Manifest | 2 | ||||
| -rw-r--r-- | app-admin/rasdaemon/files/ras-mc-ctl.openrc-r1 | 23 | ||||
| -rw-r--r-- | app-admin/rasdaemon/files/rasdaemon-0.8.3-fortify-add_event_handler.patch | 40 | ||||
| -rw-r--r-- | app-admin/rasdaemon/files/rasdaemon-0.8.3-fortify-followup.patch | 64 | ||||
| -rw-r--r-- | app-admin/rasdaemon/files/rasdaemon.confd | 2 | ||||
| -rw-r--r-- | app-admin/rasdaemon/files/rasdaemon.openrc-r2 | 21 | ||||
| -rw-r--r-- | app-admin/rasdaemon/metadata.xml | 23 | ||||
| -rw-r--r-- | app-admin/rasdaemon/rasdaemon-0.8.3-r1.ebuild | 75 | ||||
| -rw-r--r-- | app-admin/rasdaemon/rasdaemon-0.8.4.ebuild | 71 |
9 files changed, 0 insertions, 321 deletions
diff --git a/app-admin/rasdaemon/Manifest b/app-admin/rasdaemon/Manifest deleted file mode 100644 index e70a84771f77..000000000000 --- a/app-admin/rasdaemon/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST rasdaemon-0.8.3.tar.bz2 449504 BLAKE2B 307f5d02f2e7634f5d3f1baa37f56caa3d43a509a898b936570cd7410f4871663e18bd9c48afd52c850d9320f4d93c33588610cd0815442c20ad1f568f5c4580 SHA512 4f9186a14e90ef9a5dad9acfa03a29375501b5ae2cf525052dea3a42c193cfec5520bd41de118f5318a20582122346d015a49791bf10fbaceb221ae6dffa28f6 -DIST rasdaemon-0.8.4.tar.bz2 468134 BLAKE2B fcee5bb02b2f54867441f837c920e11746a57ca89c7b569559e1f23fb1b0e621e523ddf0c7d956691e34f9a19d97be7b3847e87a7bd2d65ee0e10887bf629869 SHA512 b1c52d747a21b2fd48c960b5086e6e9e0245f164db4fd49a6a94d85301a1e18d622ae701ebb28c7f3827f9bf5c6279347fe59add293a9c4655d5a9ef361fefb2 diff --git a/app-admin/rasdaemon/files/ras-mc-ctl.openrc-r1 b/app-admin/rasdaemon/files/ras-mc-ctl.openrc-r1 deleted file mode 100644 index 316b28ad7143..000000000000 --- a/app-admin/rasdaemon/files/ras-mc-ctl.openrc-r1 +++ /dev/null @@ -1,23 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -description="Loads Motherboard DIMM labels into EDAC driver" - -depend() { - keyword -stop - need sysfs -} - -command="/usr/sbin/ras-mc-ctl" -command_args="--register-labels" - -start() { - ebegin "Loading Motherboard DIMM labels into EDAC driver" - "${command}" "${command_args}" - eend $? -} - -stop() { - : -} diff --git a/app-admin/rasdaemon/files/rasdaemon-0.8.3-fortify-add_event_handler.patch b/app-admin/rasdaemon/files/rasdaemon-0.8.3-fortify-add_event_handler.patch deleted file mode 100644 index 86b09304f09a..000000000000 --- a/app-admin/rasdaemon/files/rasdaemon-0.8.3-fortify-add_event_handler.patch +++ /dev/null @@ -1,40 +0,0 @@ -https://bugs.gentoo.org/955453 -https://github.com/mchehab/rasdaemon/issues/214 -https://github.com/mchehab/rasdaemon/pull/212 - -From 46bed1b6845bcb560d760b4cacea7df67cd6d1fd Mon Sep 17 00:00:00 2001 -From: Thomas Renninger <trenn@suse.de> -Date: Wed, 23 Apr 2025 16:40:43 +0200 -Subject: [PATCH] Fix buffer overflow in add_event_handler read - -If the first read in ras-events.c:862 is successful, it will be tried -to read more out of the fd, without re-allocating more memory. - -Signed-off-by: Thomas Renninger <trenn@suse.de> ---- - ras-events.c | 11 +++++++++++ - 1 file changed, 11 insertions(+) - -diff --git a/ras-events.c b/ras-events.c -index 6692a31..c7ee801 100644 ---- a/ras-events.c -+++ b/ras-events.c -@@ -859,6 +859,17 @@ static int add_event_handler(struct ras_events *ras, struct tep_handle *pevent, - } - - do { -+ if (size > 0) { -+ page = realloc(page, page_size + size); -+ if (!page) { -+ rc = -errno; -+ log(TERM, LOG_ERR, -+ "Can't reallocate page to read %s:%s" -+ " format\n", group, event); -+ close(fd); -+ return rc; -+ } -+ } - rc = read(fd, page + size, page_size); - if (rc < 0) { - log(TERM, LOG_ERR, "Can't get arch page size\n"); - diff --git a/app-admin/rasdaemon/files/rasdaemon-0.8.3-fortify-followup.patch b/app-admin/rasdaemon/files/rasdaemon-0.8.3-fortify-followup.patch deleted file mode 100644 index e88af3616ad2..000000000000 --- a/app-admin/rasdaemon/files/rasdaemon-0.8.3-fortify-followup.patch +++ /dev/null @@ -1,64 +0,0 @@ -https://bugs.gentoo.org/955453 -https://github.com/mchehab/rasdaemon/issues/214 -https://github.com/mchehab/rasdaemon/pull/215 - -From eb08c94a1b563c69415cb82d73d4d97f64d92d91 Mon Sep 17 00:00:00 2001 -From: Shiju Jose <shiju.jose@huawei.com> -Date: Tue, 3 Jun 2025 16:47:39 +0100 -Subject: [PATCH 1/2] rasdaemon: Fix for return error code in - add_event_handler() - -Fix for return the error code in add_event_handler(). - -Signed-off-by: Shiju Jose <shiju.jose@huawei.com> ---- - ras-events.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ras-events.c b/ras-events.c -index 6692a31..3d3a4d1 100644 ---- a/ras-events.c -+++ b/ras-events.c -@@ -864,7 +864,7 @@ static int add_event_handler(struct ras_events *ras, struct tep_handle *pevent, - log(TERM, LOG_ERR, "Can't get arch page size\n"); - free(page); - close(fd); -- return size; -+ return rc; - } - size += rc; - } while (rc > 0); - -From 3deaaa3b3c38e594b28d696b37a64d7f79d782b4 Mon Sep 17 00:00:00 2001 -From: Shiju Jose <shiju.jose@huawei.com> -Date: Tue, 3 Jun 2025 16:57:34 +0100 -Subject: [PATCH 2/2] rasdaemon: Revert page_size to 4096 in get_pagesize() - -Revert page_size to 4096, which was modified in commit -c4cee52ef7392a259cf76bc24a7aeefaf276cdfb -("rasdaemon: Fix for parsing error when trace event's format file is -larger than PAGE_SIZE") - -Note: -This will work when the event data exceed 4096, only after following -fix is merged. -https://github.com/mchehab/rasdaemon/pull/212 - -Signed-off-by: Shiju Jose <shiju.jose@huawei.com> ---- - ras-events.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ras-events.c b/ras-events.c -index 3d3a4d1..154ec5f 100644 ---- a/ras-events.c -+++ b/ras-events.c -@@ -376,7 +376,7 @@ static int filter_ras_mc_event(struct ras_events *ras, char *group, char *event, - - static int get_pagesize(struct ras_events *ras, struct tep_handle *pevent) - { -- int fd, len, page_size = 8192; -+ int fd, len, page_size = 4096; - char buf[page_size]; - - fd = open_trace(ras, "events/header_page", O_RDONLY); diff --git a/app-admin/rasdaemon/files/rasdaemon.confd b/app-admin/rasdaemon/files/rasdaemon.confd deleted file mode 100644 index 413f9f742cd4..000000000000 --- a/app-admin/rasdaemon/files/rasdaemon.confd +++ /dev/null @@ -1,2 +0,0 @@ -# pass the --record option if sqlite is enabled and you wish store events in sqlite -RASDAEMON_ARGS=--record diff --git a/app-admin/rasdaemon/files/rasdaemon.openrc-r2 b/app-admin/rasdaemon/files/rasdaemon.openrc-r2 deleted file mode 100644 index c8a2bc4b0e65..000000000000 --- a/app-admin/rasdaemon/files/rasdaemon.openrc-r2 +++ /dev/null @@ -1,21 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -description="Starts Reliablity, Availability and Serviceability (RAS) service" - -depend() { - need localmount - use logger -} - -command="/usr/sbin/rasdaemon" -command_args="${RASDAEMON_ARGS}" - -start_post() { - "${command}" --enable >/dev/null 2>&1 -} - -stop_post() { - "${command}" --disable >/dev/null 2>&1 -} diff --git a/app-admin/rasdaemon/metadata.xml b/app-admin/rasdaemon/metadata.xml deleted file mode 100644 index 4ab4f092e582..000000000000 --- a/app-admin/rasdaemon/metadata.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>base-system@gentoo.org</email> - <name>Gentoo Base System</name> - </maintainer> - <maintainer type="person"> - <email>prometheanfire@gentoo.org</email> - <name>Matthew Thode</name> - </maintainer> - <longdescription lang="en"> - Rasdaemon 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. - </longdescription> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/app-admin/rasdaemon/rasdaemon-0.8.3-r1.ebuild b/app-admin/rasdaemon/rasdaemon-0.8.3-r1.ebuild deleted file mode 100644 index 38d690893d68..000000000000 --- a/app-admin/rasdaemon/rasdaemon-0.8.3-r1.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic linux-info systemd - -DESCRIPTION="Reliability, Availability and Serviceability logging tool" -HOMEPAGE="https://github.com/mchehab/rasdaemon" -SRC_URI="https://www.infradead.org/~mchehab/rasdaemon/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" -IUSE="selinux" - -DEPEND=" - dev-db/sqlite - dev-libs/libtraceevent - elibc_musl? ( sys-libs/argp-standalone ) -" -RDEPEND=" - ${DEPEND} - dev-perl/DBI - dev-perl/DBD-SQLite - sys-apps/dmidecode - selinux? ( sec-policy/selinux-rasdaemon ) -" -BDEPEND="sys-devel/gettext" - -PATCHES=( - "${FILESDIR}"/${PN}-0.8.3-fortify-add_event_handler.patch - "${FILESDIR}"/${PN}-0.8.3-fortify-followup.patch -) - -pkg_setup() { - linux-info_pkg_setup - local CONFIG_CHECK="~ACPI_EXTLOG ~DEBUG_FS" - check_extra_config -} - -src_configure() { - local myconfargs=( - --enable-sqlite3 - --enable-abrt-report - --enable-aer - --enable-arm - --enable-extlog - --enable-hisi-ns-decode - --enable-mce - --enable-non-standard - --enable-devlink - --enable-diskerror - --enable-memory-ce-pfa - --includedir="${EPREFIX}/usr/include/${PN}" - --localstatedir=/var - ) - - use elibc_musl && append-libs -largp - - # More bashisms snuck into 0.8.2, not yet reported upstream - CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconfargs[@]}" -} - -src_install() { - default - - keepdir "/var/lib/${PN}" - - systemd_dounit misc/*.service - - newinitd "${FILESDIR}/rasdaemon.openrc-r2" rasdaemon - newinitd "${FILESDIR}/ras-mc-ctl.openrc-r1" ras-mc-ctl - newconfd "${FILESDIR}"/rasdaemon.confd rasdaemon -} diff --git a/app-admin/rasdaemon/rasdaemon-0.8.4.ebuild b/app-admin/rasdaemon/rasdaemon-0.8.4.ebuild deleted file mode 100644 index ba8922ab8ddf..000000000000 --- a/app-admin/rasdaemon/rasdaemon-0.8.4.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic linux-info systemd - -DESCRIPTION="Reliability, Availability and Serviceability logging tool" -HOMEPAGE="https://github.com/mchehab/rasdaemon" -SRC_URI="https://www.infradead.org/~mchehab/rasdaemon/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 x86" -IUSE="selinux" - -DEPEND=" - dev-db/sqlite - dev-libs/libtraceevent - sys-apps/pciutils - elibc_musl? ( sys-libs/argp-standalone ) -" -RDEPEND=" - ${DEPEND} - dev-perl/DBI - dev-perl/DBD-SQLite - sys-apps/dmidecode - selinux? ( sec-policy/selinux-rasdaemon ) -" -BDEPEND="sys-devel/gettext" - -pkg_setup() { - linux-info_pkg_setup - local CONFIG_CHECK="~ACPI_EXTLOG ~DEBUG_FS ~BLK_DEV_IO_TRACE" - check_extra_config -} - -src_configure() { - local myconfargs=( - --enable-sqlite3 - --enable-abrt-report - --enable-aer - --enable-arm - --enable-extlog - --enable-hisi-ns-decode - --enable-mce - --enable-non-standard - --enable-devlink - --enable-diskerror - --enable-memory-ce-pfa - --includedir="${EPREFIX}/usr/include/${PN}" - --localstatedir=/var - ) - - use elibc_musl && append-libs -largp - - # More bashisms snuck into 0.8.2, not yet reported upstream - CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconfargs[@]}" -} - -src_install() { - default - - keepdir "/var/lib/${PN}" - - systemd_dounit misc/*.service - - newinitd "${FILESDIR}/rasdaemon.openrc-r2" rasdaemon - newinitd "${FILESDIR}/ras-mc-ctl.openrc-r1" ras-mc-ctl - newconfd "${FILESDIR}"/rasdaemon.confd rasdaemon -} |
