]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
systemd: add udev-bash-completion package
authorCorentin Guillevic <corentin.guillevic@smile.fr>
Mon, 8 Jan 2024 16:49:57 +0000 (17:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Jan 2024 16:58:21 +0000 (16:58 +0000)
Move the 'udevadm' autocompletion script into a dedicated package.
Indeed, bash (and therefore, the bash-completion package) is not
always installed. But the 'udevadm' autocompletion script remains
in ${datadir}/bash-completion.

Creating a dedicated package allows better split, and avoids
installing it if the bash-completion package is missing.

Signed-off-by: Corentin Guillevic <corentin.guillevic@smile.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/systemd/systemd_254.4.bb

index 0c12926befb9ce4ec8f109d21bf5d39f0ef23ce2..05cfc734bffa911d003f851756147fbddcd438d0 100644 (file)
@@ -408,6 +408,7 @@ PACKAGE_BEFORE_PN = "\
     ${PN}-zsh-completion \
     libsystemd-shared \
     udev \
+    udev-bash-completion \
     udev-hwdb \
 "
 
@@ -721,6 +722,7 @@ FILES:libsystemd-shared = "${rootlibdir}/systemd/libsystemd-shared*.so"
 
 RPROVIDES:udev = "hotplug"
 
+RDEPENDS:udev-bash-completion += "bash-completion"
 RDEPENDS:udev-hwdb += "udev"
 
 FILES:udev += "${base_sbindir}/udevd \
@@ -782,10 +784,10 @@ FILES:udev += "${base_sbindir}/udevd \
                ${base_bindir}/systemd-hwdb \
                ${base_bindir}/udevadm \
                ${base_sbindir}/udevadm \
-               ${datadir}/bash-completion/completions/udevadm \
                ${systemd_system_unitdir}/systemd-hwdb-update.service \
               "
 
+FILES:udev-bash-completion = "${datadir}/bash-completion/completions/udevadm"
 FILES:udev-hwdb = "${rootlibexecdir}/udev/hwdb.d \
                    "