diff mbox series

systemd: Populate udev-bash-completion before bash-completion

Message ID de1882c9707fc37289f2dce772fb2df0cde60e43.1773810932.git.joerg.sommer@navimatix.de
State Under Review
Headers show
Series systemd: Populate udev-bash-completion before bash-completion | expand

Commit Message

Jörg Sommer March 18, 2026, 5:16 a.m. UTC
From: Jörg Sommer <joerg.sommer@navimatix.de>

The `inherit bash-completion` places its package at the front of
PACKAGE_BEFORE_PN. So this picks up the udevadm file before
udev-bash-completion is populated. Therefore, u-b-c has to go to the front
of PACKAGE_BEFORE_PN.

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
---

An alternative solution would be to use PACKAGE_BEFORE_PN:append in bash-completion.bbclass.

 meta/recipes-core/systemd/systemd_259.3.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/systemd_259.3.bb b/meta/recipes-core/systemd/systemd_259.3.bb
index bcb8fe3d9c..4663753476 100644
--- a/meta/recipes-core/systemd/systemd_259.3.bb
+++ b/meta/recipes-core/systemd/systemd_259.3.bb
@@ -387,10 +387,14 @@  PACKAGE_BEFORE_PN += "\
     ${PN}-zsh-completion \
     libsystemd-shared \
     udev \
-    udev-bash-completion \
     udev-hwdb \
 "
 
+# pick the files before bash-completion.bbclass
+PACKAGE_BEFORE_PN =+ "\
+    udev-bash-completion \
+"
+
 SUMMARY:${PN}-container = "Tools for containers and VMs"
 DESCRIPTION:${PN}-container = "Systemd tools to spawn and manage containers and virtual machines."