diff mbox series

[meta-oe,2/3] libcanberra: Make udev support explicit and drop an empty bindir

Message ID 20261204063821.2452951-3-khem.raj@oss.qualcomm.com
State New
Headers show
Series meta-oe: ptest and packaging fixes | expand

Commit Message

Khem Raj Dec. 4, 2026, 6:38 a.m. UTC
Besides the gtk player, canberra-boot is the only program, and configure
builds it when it finds libudev. udev is not in DEPENDS; it used to
reach the sysroot through pulseaudio. With pulseaudio gone from
oe-core's DISTRO_FEATURES ("default-distrovars.inc: replace pulseaudio
with pipewire in DISTRO_FEATURES"), configure finds no libudev, nothing
is installed in ${bindir}, and do_package fails on qemuarm64 musl with

  libcanberra: Files/directories were installed but not shipped in any package:
    /usr/bin
  [installed-vs-shipped]

Add a udev PACKAGECONFIG, off by default, so the result no longer
depends on what else happens to be in the sysroot, and remove ${bindir}
when it is empty. Distros that want canberra-boot can enable udev.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-support/libcanberra/libcanberra_0.30-20.bb | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/libcanberra/libcanberra_0.30-20.bb b/meta-oe/recipes-support/libcanberra/libcanberra_0.30-20.bb
index 1e18c5c191..3bead00c39 100644
--- a/meta-oe/recipes-support/libcanberra/libcanberra_0.30-20.bb
+++ b/meta-oe/recipes-support/libcanberra/libcanberra_0.30-20.bb
@@ -36,6 +36,11 @@  PACKAGECONFIG[pulseaudio] = "--enable-pulse, --disable-pulse, pulseaudio"
 PACKAGECONFIG[gstreamer] = "--enable-gstreamer, --disable-gstreamer, gstreamer1.0"
 PACKAGECONFIG[gtk] = "--enable-gtk, --disable-gtk, gtk+"
 PACKAGECONFIG[gtk3] = "--enable-gtk3, --disable-gtk3, gtk+3"
+PACKAGECONFIG[udev] = "--enable-udev, --disable-udev, udev"
+
+do_install:append() {
+	rmdir --ignore-fail-on-non-empty ${D}${bindir}
+}
 
 FILES:${PN} += " \
 	${systemd_system_unitdir} \