@@ -12,6 +12,7 @@ RDEPENDS:packagegroup-meta-oe-extended += "\
"
RDEPENDS:packagegroup-meta-oe-support += "\
nvmetcli \
+ rasdaemon \
smem \
"
RDEPENDS:packagegroup-meta-oe-extended:remove:libc-musl = "lcdproc"
similarity index 100%
rename from meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/init
rename to meta-oe/dynamic-layers/meta-python/recipes-support/rasdaemon/files/init
new file mode 100644
@@ -0,0 +1,65 @@
+DESCRIPTION = "Tools to provide a way to get Platform Reliability, Availability and Serviceability (RAS) reports made via the Kernel tracing events"
+HOMEPAGE = "https://github.com/mchehab/rasdaemon"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d3070efe0afa3dc41608bd82c00bb0dc"
+
+SRC_URI = "git://github.com/mchehab/rasdaemon.git;branch=master;protocol=https;tag=v${PV} \
+ file://init"
+
+SRCREV = "83379997794e3ed6f613b91b188c754bc642de5d"
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+\.\d+\.[0-8]?\d)$"
+
+DEPENDS = "libtraceevent"
+DEPENDS:append:libc-musl = " argp-standalone"
+LDFLAGS:append:libc-musl = " -largp"
+RDEPENDS:${PN} = "python3-core python3-crypt python3-datetime python3-io python3-json \
+ python3-logging python3-netclient python3-sqlalchemy"
+
+inherit meson pkgconfig update-rc.d systemd
+
+EXTRA_OEMESON = "-Denable-arch=auto"
+
+PACKAGECONFIG ??= "sqlite3 mce aer extlog devlink diskerror"
+PACKAGECONFIG[sqlite3] = "-Dsqlite3=enabled,-Dsqlite3=disabled,sqlite3,python3-sqlite3"
+PACKAGECONFIG[mysql] = "-Dmysql=enabled,-Dmysql=disabled,mariadb"
+PACKAGECONFIG[postgresql] = "-Dpostgresql=enabled,-Dpostgresql=disabled,postgresql"
+PACKAGECONFIG[mce] = "-Dmce=enabled,-Dmce=disabled"
+PACKAGECONFIG[erst] = "-Derst=enabled,-Derst=disabled"
+PACKAGECONFIG[aer] = "-Daer=enabled,-Daer=disabled,pciutils"
+PACKAGECONFIG[pcie-edpc] = "-Dpcie-edpc=enabled,-Dpcie-edpc=disabled,pciutils"
+PACKAGECONFIG[extlog] = "-Dextlog=enabled,-Dextlog=disabled"
+PACKAGECONFIG[devlink] = "-Ddevlink=enabled,-Ddevlink=disabled"
+PACKAGECONFIG[diskerror] = "-Ddiskerror=enabled,-Ddiskerror=disabled"
+PACKAGECONFIG[cxl] = "-Dcxl=enabled,-Dcxl=disabled"
+PACKAGECONFIG[memory-failure] = "-Dmemory-failure=enabled,-Dmemory-failure=disabled"
+PACKAGECONFIG[memory-ce-pfa] = "-Dmemory-ce-pfa=enabled,-Dmemory-ce-pfa=disabled"
+PACKAGECONFIG[memory-row-ce-pfa] = "-Dmemory-row-ce-pfa=enabled,-Dmemory-row-ce-pfa=disabled"
+PACKAGECONFIG[cpu-fault-isolation] = "-Dcpu-fault-isolation=enabled,-Dcpu-fault-isolation=disabled"
+PACKAGECONFIG[signal] = "-Dsignal=enabled,-Dsignal=disabled"
+PACKAGECONFIG[abrt-report] = "-Dabrt-report=enabled,-Dabrt-report=disabled"
+PACKAGECONFIG[bmc-generic] = "-Dbmc-generic=enabled,-Dbmc-generic=disabled"
+PACKAGECONFIG[openbmc-unified-sel] = "-Dopenbmc-unified-sel=enabled,-Dopenbmc-unified-sel=disabled"
+PACKAGECONFIG[ampere-oem-sel] = "-Dampere-oem-sel=enabled,-Dampere-oem-sel=disabled"
+PACKAGECONFIG[arm] = "-Darm=enabled,-Darm=disabled"
+PACKAGECONFIG[reri] = "-Dreri=enabled,-Dreri=disabled"
+PACKAGECONFIG[amp-ns-decode] = "-Damp-ns-decode=enabled,-Damp-ns-decode=disabled"
+PACKAGECONFIG[hisi-ns-decode] = "-Dhisi-ns-decode=enabled,-Dhisi-ns-decode=disabled"
+PACKAGECONFIG[jaguar-ns-decode] = "-Djaguar-ns-decode=enabled,-Djaguar-ns-decode=disabled"
+PACKAGECONFIG[nvidia-ns-decode] = "-Dnvidia-ns-decode=enabled,-Dnvidia-ns-decode=disabled"
+PACKAGECONFIG[yitian-ns-decode] = "-Dyitian-ns-decode=enabled,-Dyitian-ns-decode=disabled"
+
+do_install:append() {
+ install -d ${D}${sysconfdir}/init.d
+ install -m 755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/rasdaemon
+}
+
+FILES:${PN} += "${datadir} \
+ ${PYTHON_SITEPACKAGES_DIR} \
+ ${systemd_system_unitdir}"
+
+SYSTEMD_SERVICE:${PN} = "rasdaemon.service"
+SYSTEMD_AUTO_ENABLE = "enable"
+
+INITSCRIPT_PACKAGES = "${PN}"
+INITSCRIPT_NAME:${PN} = "rasdaemon"
+INITSCRIPT_PARAMS:${PN} = "defaults 89"
deleted file mode 100644
@@ -1 +0,0 @@
-RDEPENDS:packagegroup-meta-oe-support += "rasdaemon"
deleted file mode 100644
@@ -1,12 +0,0 @@
-[Unit]
-Description=RAS daemon to log the RAS events
-After=syslog.target
-
-[Service]
-ExecStart=/usr/sbin/rasdaemon -f -r
-ExecStartPost=/usr/sbin/rasdaemon --enable
-ExecStop=/usr/sbin/rasdaemon --disable
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target
deleted file mode 100644
@@ -1,50 +0,0 @@
-DESCRIPTION = "Tools to provide a way to get Platform Reliability, Availability and Serviceability (RAS) reports made via the Kernel tracing events"
-HOMEPAGE = "https://github.com/mchehab/rasdaemon"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d3070efe0afa3dc41608bd82c00bb0dc"
-
-SRC_URI = "git://github.com/mchehab/rasdaemon.git;branch=master;protocol=https;tag=v${PV} \
- file://rasdaemon.service \
- file://init"
-
-SRCREV = "769593be915b4f00a9a7d56569df99bc0cff249a"
-
-DEPENDS = "libtraceevent pciutils"
-RDEPENDS:${BPN} = "perl perl-module-file-basename perl-module-file-find perl-module-file-spec perl-module-getopt-long \
- perl-module-posix perl-module-file-glob libdbi-perl libdbd-sqlite-perl"
-
-inherit autotools pkgconfig update-rc.d systemd
-
-PACKAGECONFIG ??= "sqlite3 mce aer extlog devlink diskerror"
-PACKAGECONFIG[sqlite3] = "--enable-sqlite3,--disable-sqlite3,sqlite3"
-PACKAGECONFIG[mce] = "--enable-mce,--disable-mce"
-PACKAGECONFIG[aer] = "--enable-aer,--disable-aer"
-PACKAGECONFIG[extlog] = "--enable-extlog,--disable-extlog"
-PACKAGECONFIG[devlink] = "--enable-devlink,--disable-devlink"
-PACKAGECONFIG[diskerror] = "--enable-diskerror,--disable-diskerror"
-PACKAGECONFIG[arm] = "--enable-arm,--disable-arm"
-PACKAGECONFIG[hisi-ns-decode] = "--enable-hisi-ns-decode,--disable-hisi-ns-decode"
-PACKAGECONFIG[non-standard] = "--enable-non-standard,--disable-non-standard"
-PACKAGECONFIG[abrt-report] = "--enable-abrt-report,--disable-abrt-report"
-
-DEPENDS:append:libc-musl = " argp-standalone"
-LDFLAGS:append:libc-musl = " -largp"
-
-do_install:append() {
- install -d ${D}${sysconfdir}/init.d
- install -m 755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/rasdaemon
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${UNPACKDIR}/rasdaemon.service ${D}${systemd_unitdir}/system
-}
-
-FILES:${PN} += "${sbindir}/rasdaemon \
- ${sysconfdir}/init.d \
- ${datadir} \
- ${systemd_unitdir}/system/rasdaemon.service"
-
-SYSTEMD_SERVICE:${PN} = "rasdaemon.service"
-SYSTEMD_AUTO_ENABLE = "enable"
-
-INITSCRIPT_PACKAGES = "${PN}"
-INITSCRIPT_NAME:${PN} = "rasdaemon"
-INITSCRIPT_PARAMS:${PN} = "defaults 89"
Upstream changes (ChangeLog): - The build system moved from autotools to Meson, with automatic dependency and architecture detection. - New modular database layer with SQLite, MySQL/MariaDB and PostgreSQL backends. - ras-mc-ctl was rewritten from Perl to Python 3 (SQLAlchemy based), with new database query, DIMM status, label and memory-layout commands. - More CXL, ARM and non-standard CPER decoders, memory-sparing events, PCIe eDPC support and BMC SEL reporting. - Self-registering modules and event consumers, plus many resource cleanup and error-handling fixes. Switch the recipe to meson and map the PACKAGECONFIG options to meson features, adding the new ones (cxl, erst, memory-failure, pcie-edpc, mysql, postgresql, more ns-decoders, ...). The defaults stay the same. Use -Denable-arch=auto so only the target architecture's events are built; upstream defaults to all. The non-standard option is gone, it is now implied by the ns-decode options. rasdaemon still uses argp, which musl lacks, and meson does not look it up, so keep argp-standalone and -largp for musl. ras-mc-ctl needs python3 and python3-sqlalchemy instead of perl and the DBI modules. Upstream now installs rasdaemon.service (and ras-mc-ctl.service), so drop the local copy. Since perl is no longer needed and python3-sqlalchemy comes from meta-python, move the recipe from dynamic-layers/perl-layer to dynamic-layers/meta-python, and move its packagegroup-meta-oe entry along with it. Nothing else lived in the perl-layer dynamic layer bbappend, so remove that file. Add an upstream version check. Add UPSTREAM_CHECK_GITTAGREGEX matching release tags only, skipping the v0.9.9x pre-releases. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- .../packagegroup-meta-oe.bbappend | 1 + .../recipes-support/rasdaemon/files/init | 0 .../rasdaemon/rasdaemon_1.0.0.bb | 65 +++++++++++++++++++ .../packagegroup-meta-oe.bbappend | 1 - .../rasdaemon/files/rasdaemon.service | 12 ---- .../rasdaemon/rasdaemon_0.8.5.bb | 50 -------------- 6 files changed, 66 insertions(+), 63 deletions(-) rename meta-oe/dynamic-layers/{perl-layer => meta-python}/recipes-support/rasdaemon/files/init (100%) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-support/rasdaemon/rasdaemon_1.0.0.bb delete mode 100644 meta-oe/dynamic-layers/perl-layer/recipes-core/packagegroups/packagegroup-meta-oe.bbappend delete mode 100644 meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/files/rasdaemon.service delete mode 100644 meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.5.bb