]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
dbus: use ${PN} in pkg_postinst instead of 'dbus'
authorMartin Jansa <martin.jansa@gmail.com>
Fri, 10 Apr 2026 08:26:54 +0000 (10:26 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Apr 2026 10:09:38 +0000 (11:09 +0100)
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 <martin.jansa@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-core/dbus/dbus_1.16.2.bb

index abe4196d9ad1c47e57f58e9d8e3b31291639e736..7425bd2364213d590b264d4b261c1e745f25f167 100644 (file)
@@ -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