From: Martin Jansa Date: Fri, 10 Apr 2026 08:26:54 +0000 (+0200) Subject: dbus: use ${PN} in pkg_postinst instead of 'dbus' X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=efec0447c8e8a6003f00642b33a71ed94fc4ec82;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git dbus: use ${PN} in pkg_postinst instead of 'dbus' All pkg_postinst in oe-core where the package name matches the recipe name use ${PN} already. We have a bbclass used by some recipes which does: pkg_postinst:${PN}:append() which works reasonably well for most of the recipes, except for dbus where it causes: WARNING: meta/recipes-core/dbus/dbus_1.16.2.bb: Variable key pkg_postinst:${PN} (...) replaces original key pkg_postinst:dbus (...) Signed-off-by: Martin Jansa Signed-off-by: Mathieu Dubois-Briand --- diff --git a/meta/recipes-core/dbus/dbus_1.16.2.bb b/meta/recipes-core/dbus/dbus_1.16.2.bb index abe4196d9a..7425bd2364 100644 --- a/meta/recipes-core/dbus/dbus_1.16.2.bb +++ b/meta/recipes-core/dbus/dbus_1.16.2.bb @@ -99,7 +99,7 @@ FILES:${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool ${datadi RDEPENDS:${PN}-ptest += "bash make dbus" -pkg_postinst:dbus() { +pkg_postinst:${PN}() { if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then /etc/init.d/populate-volatile.sh update fi