mctp: upgrade 2.5 -> 2.6
PATCH 1/1 mctp: upgrade 2.5 -> 2.6
mctp version 2.6 released on 2026-07-21, bump srcrev to the v2.6 tag.
The new version of mctpd can run as an unprivileged user with CAP_NET_BIND_SERVICE and CAP_NET_ADMIN added to the process' ambient capabilities. Added this unpriviledged user to the recipe when systemd is available.
---
.../recipes-support/mctp/{mctp_2.5.bb => mctp_2.6.bb} | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
rename meta-networking/recipes-support/mctp/{mctp_2.5.bb => mctp_2.6.bb} (82%)meta-networking/recipes-support/mctp/mctp_2.6.bb renamed from meta-networking/recipes-support/mctp/mctp_2.5.bb +5 -2
@@ -5,12 +5,12 @@ LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" -SRCREV = "07c7a5d526f686da89bc9ae9cad917e46652b272" +SRCREV = "31ac0e86b0e23d32abf34d191653a87a47f3c9a7" SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https;tag=v${PV}" -inherit meson pkgconfig systemd +inherit meson pkgconfig systemd useradd EXTRA_OEMESON = " \ -Dtests=false \
@@ -39,6 +39,9 @@ do_install:append () { fi } +USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', '${PN}', '', d)}" +USERADD_PARAM:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', '-r -U -s /bin/false mctpd', '', d)}" + FILES:${PN} += " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \
Signature · 1 line
2.47.3
this does not work when systemd is not in distro_features
Parsing recipes...ERROR:/srv/pokybuild/yocto-worker/meta-oe/build/meta-openembedded/meta-networking/recipes-support/mctp/mctp_2.6.bb:/srv/pokybuild/yocto-worker/meta-oe/build/meta-openembedded/meta-networking/recipes-support/mctp/mctp_2.6.bb inherits useradd but doesn't set USERADD_PACKAGES
Quoted 68 lines · James Lee via lists.openembedded.org
mctp version 2.6 released on 2026-07-21, bump srcrev to the v2.6 tag.
The new version of mctpd can run as an unprivileged user with
CAP_NET_BIND_SERVICEandCAP_NET_ADMINadded to the process' ambient capabilities. Added this unpriviledged user to the recipe when systemd is available.Signed-off-by James Lee <[email protected]>Acked-by Jeremy Kerr <[email protected]>--- .../recipes-support/mctp/{mctp_2.5.bb => mctp_2.6.bb} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename meta-networking/recipes-support/mctp/{mctp_2.5.bb => mctp_2.6.bb}(82%)
meta-networking/recipes-support/mctp/mctp_2.6.bb renamed from meta-networking/recipes-support/mctp/mctp_2.5.bb +1
-1@@ -5,12 +5,12 @@ LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" -SRCREV = "07c7a5d526f686da89bc9ae9cad917e46652b272" +SRCREV = "31ac0e86b0e23d32abf34d191653a87a47f3c9a7" SRC_URI = "git:// github.com/CodeConstruct/mctp;branch=main;protocol=https;tag=v${PV}<http://github.com/CodeConstruct/mctp;branch=main;protocol=https;tag=v$%7BPV%7D>
"meta-networking/recipes-support/mctp/mctp_2.6.bb renamed from meta-networking/recipes-support/mctp/mctp_2.5.bb +2
-1-inherit meson pkgconfig systemd +inherit meson pkgconfig systemd useradd EXTRA_OEMESON = " \ -Dtests=false \@@ -39,6 +39,9 @@ do_install:append () { fi } +USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'systemd','${PN}', '', d)}"
+USERADD_PARAM:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', '-r -U -s/bin/falsemctpd', '', d)}"
+FILES:${PN} += " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \--
2.47.3-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#128340):
https://lists.openembedded.org/g/openembedded-devel/message/128340
Mute This Topic: https://lists.openembedded.org/mt/120373276/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-