From patchwork Thu Dec 3 15:16:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Perrot X-Patchwork-Id: 107215 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.16353.1796310996785605483 for ; Thu, 03 Dec 2026 07:16:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=YBoWL5wh; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: thomas.perrot@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 9F1241A18F3 for ; Thu, 3 Dec 2026 15:16:34 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 60326604ED for ; Thu, 3 Dec 2026 15:16:34 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id BD9CF11EA174D; Thu, 03 Dec 2026 16:16:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796310994; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=iAao3vCcbXVC7zTAxO+p8C2HwEKAL4D+82Vv/3NU6kM=; b=YBoWL5whIRO7XMt60iMznoTYMmwSA2u5aVoD1f0ARKtFqSQdsMN79FZjy9toyQV/mcSCAJ nz257RUm1YjI/qdBzORRMMoHRDx7+d1ZewLZSUbp4iwodC+K2CIx+ojVlCXD/CZg4PFoMG BcCuq3hSchCkdel6FSylUofLWW7fgwvH545KSkjCvQyIgLZ7G3fdlVhSD1r7p1tH7hPK20 yAw/5SieqcFxLyxHK8i/IsZhaj9iVGumUxRvGSh/ADbUbD6sKoZFYWD9N/dTGiw7zNua8Y HIF5A/yw97jXbC/Ui30fj+0pgA/c2LN4Qwnk9fwfXQua9LK9rJhqfLrZdAVtwA== From: Thomas Perrot Date: Thu, 03 Dec 2026 16:16:26 +0100 Subject: [meta-oe][PATCH] rasdaemon: move ras-mc-ctl to its own package MIME-Version: 1.0 Message-Id: <20261203-b4-rasdaemon-ras-mc-ctl-v1-1-7c9668420c45@bootlin.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/4WOTQ7CIBCFr9KwdkwB21hX3qPpAobRYgoYwEbT9 O6WegB370ve38ISRUuJXaqFRZptssFvwA8Vw1H5O4E1GzNRi5aLWoI+QVTJKHLBFwUOAfMEXEk tm0aeTSfZln5Gutn33twPP04v/SDMpa53lBUEGop1tCmH+Nk/zLwE/s/NHDig6LBrDUopxFWHk CfrjxgcG9Z1/QJnOFie2wAAAA== X-Change-ID: 20261203-b4-rasdaemon-ras-mc-ctl-1a3b35538d93 To: openembedded-devel@lists.openembedded.org Cc: Thomas Petazzoni , Thomas Perrot X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 03 Dec 2026 15:16:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133986 ras-mc-ctl is a Python script which needs SQLAlchemy, while the daemon does not need Python. Split it out with its modules, unit, completions and DIMM labels, so that rasdaemon can be installed without Python. rasdaemon recommends ras-mc-ctl to keep the default content unchanged. Signed-off-by: Thomas Perrot --- ras-mc-ctl is a Python script which needs SQLAlchemy, while the daemon does not need Python. Split it out with its modules, unit, completions and DIMM labels, so that rasdaemon can be installed without Python. rasdaemon recommends ras-mc-ctl to keep the default content unchanged. --- .../recipes-support/rasdaemon/rasdaemon_1.0.1.bb | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) --- base-commit: 914fca8c896edcde152e8a77661840130bbcc517 change-id: 20261203-b4-rasdaemon-ras-mc-ctl-1a3b35538d93 Best regards, -- Thomas Perrot diff --git a/meta-oe/dynamic-recipes/meta-oe-python/recipes-support/rasdaemon/rasdaemon_1.0.1.bb b/meta-oe/dynamic-recipes/meta-oe-python/recipes-support/rasdaemon/rasdaemon_1.0.1.bb index 6ccefed7925f..522d5037655e 100644 --- a/meta-oe/dynamic-recipes/meta-oe-python/recipes-support/rasdaemon/rasdaemon_1.0.1.bb +++ b/meta-oe/dynamic-recipes/meta-oe-python/recipes-support/rasdaemon/rasdaemon_1.0.1.bb @@ -12,15 +12,13 @@ UPSTREAM_CHECK_GITTAGREGEX = "^v(?P\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[sqlite3] = "-Dsqlite3=enabled,-Dsqlite3=disabled,sqlite3" PACKAGECONFIG[mysql] = "-Dmysql=enabled,-Dmysql=disabled,mariadb" PACKAGECONFIG[postgresql] = "-Dpostgresql=enabled,-Dpostgresql=disabled,postgresql" PACKAGECONFIG[mce] = "-Dmce=enabled,-Dmce=disabled" @@ -59,8 +57,24 @@ do_install:append() { install -m 755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/rasdaemon } +# ras-mc-ctl is a Python script, keep it out of the daemon package so that +# rasdaemon can be installed without Python +PACKAGE_BEFORE_PN = "ras-mc-ctl" + +FILES:ras-mc-ctl = "${sbindir}/ras-mc-ctl \ + ${datadir}/${BPN} \ + ${datadir}/bash-completion \ + ${datadir}/zsh \ + ${sysconfdir}/ras/dimm_labels.d \ + ${systemd_system_unitdir}/ras-mc-ctl.service" + +RDEPENDS:ras-mc-ctl = "${PN} python3-core python3-crypt python3-datetime python3-io \ + python3-json python3-logging python3-netclient python3-sqlalchemy \ + ${@bb.utils.contains('PACKAGECONFIG', 'sqlite3', 'python3-sqlite3', '', d)}" + +RRECOMMENDS:${PN} = "ras-mc-ctl" + FILES:${PN} += "${datadir} \ - ${PYTHON_SITEPACKAGES_DIR} \ ${systemd_system_unitdir}" SYSTEMD_SERVICE:${PN} = "rasdaemon.service"