mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 17:39:24 +00:00
cc814c9fd1
WirePlumber 0.5.14
~~~~~~~~~~~~~~~~~~
Additions & Enhancements:
- Added per-device default volume configuration via the
``device.routes.default-{source,sink}-volume`` property, allowing device-specific volume
defaults (e.g. a comfortable default for internal speakers or no attenuation for HDMI) (!772)
- Added Lua 5.5 support; the bundled Lua subproject wrap has also been updated to 5.5.0
(!775, !788)
- Enhanced libcamera monitor to load camera nodes locally within the WirePlumber
process instead of the PipeWire daemon, eliminating race conditions that could occur
during initial enumeration and hotplug events (!790)
- Enhanced Bluetooth loopback nodes to always be created when a device supports both
A2DP and HSP/HFP profiles, simplifying the logic and making the BT profile autoswitch
setting take effect immediately without requiring device reconnection (!782)
- Enhanced Bluetooth loopback nodes to use ``target.object`` property instead of smart
filters, fixing issues that prevented users from setting them as default nodes and
also allowing smart filters to be used with them (#898; !792)
- Enhanced Bluetooth profile autoswitch logic with further robustness improvements,
including better headset profile detection using profile name patterns and resolving
race conditions by running profile switching after ``device/apply-profile`` in a
dedicated event hook (#926, #923; !776, !777, !808)
- Enhanced wpctl ``set-default`` command to accept virtual nodes (e.g.
``Audio/Source/Virtual``) in addition to regular device nodes (#896; !787)
- Improved stream linking to make the full graph rescan optional when linkable items
change, saving CPU on low-end systems and reducing audio startup latency when
connecting multiple streams in quick succession (!800)
- Allowed installation of systemd service units without libsystemd being present,
useful for distributions like Alpine Linux that allow systemd service subpackages
(!793)
- Allowed the ``mincore`` syscall in the WirePlumber systemd sandbox, required for
Mesa/EGL (e.g. for the libcamera GPUISP pipeline)
- Allowed passing ``WIREPLUMBER_CONFIG_DIR`` via the ``wp-uninstalled`` script,
useful for passing additional configuration paths in an uninstalled environment (!801)
Fixes:
- Removed Bluetooth sink loopback node, which was causing issues with KDE and GNOME (!794)
- Fixed default audio source selection to never automatically use ``Audio/Sink`` nodes
as the default source unless explicitly selected by the user (#886; !781)
- Fixed crash in ``state-stream`` when the Format parameter has a Choice for the
number of channels (#903; !795)
- Fixed BAP Bluetooth device set channel properties, where ``audio.position`` was
incorrectly serialized as a pointer address instead of the channel array (!786)
- Fixed memory leaks in ``wp_interest_event_hook_get_matching_event_types`` and in
the Lua ``LocalModule()`` implementation (!784, !810)
- Fixed HFP HF stream media class being incorrectly assigned due to
``api.bluez5.internal=true`` being set on HFP HF streams (!809)
- Fixed Lua 5.4 compatibility in ``state-stream`` script
- Updated translations: Bulgarian, Georgian, Kazakh, Swedish
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
174 lines
6.7 KiB
BlitzBasic
174 lines
6.7 KiB
BlitzBasic
SUMMARY = "Session / policy manager implementation for PipeWire"
|
|
HOMEPAGE = "https://gitlab.freedesktop.org/pipewire/wireplumber"
|
|
BUGTRACKER = "https://gitlab.freedesktop.org/pipewire/wireplumber/issues"
|
|
SECTION = "multimedia"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=17d1fe479cdec331eecbc65d26bc7e77"
|
|
|
|
DEPENDS = "glib-2.0 glib-2.0-native lua pipewire \
|
|
${@bb.utils.contains("DISTRO_FEATURES", "gobject-introspection-data", "python3-native python3-lxml-native doxygen-native", "", d)} \
|
|
"
|
|
|
|
SRCREV = "07e730b279ac7a520699ae9f6b0797848a731b30"
|
|
SRC_URI = " \
|
|
git://gitlab.freedesktop.org/pipewire/wireplumber.git;branch=master;protocol=https;tag=${PV} \
|
|
file://run-ptest \
|
|
file://90-OE-disable-session-dbus-dependent-features.lua \
|
|
"
|
|
|
|
|
|
inherit meson pkgconfig gobject-introspection systemd bash-completion ptest
|
|
|
|
GIR_MESON_ENABLE_FLAG = 'enabled'
|
|
GIR_MESON_DISABLE_FLAG = 'disabled'
|
|
|
|
# Enable system-lua to let wireplumber use OE's lua.
|
|
# Documentation needs python-sphinx, which is not in oe-core or meta-python2 for now.
|
|
# elogind is not (yet) available in OE, so disable support.
|
|
EXTRA_OEMESON += " \
|
|
-Ddoc=disabled \
|
|
-Dsystem-lua=true \
|
|
-Delogind=disabled \
|
|
-Dsystemd-system-unit-dir=${systemd_system_unitdir} \
|
|
-Dsystemd-user-unit-dir=${systemd_user_unitdir} \
|
|
"
|
|
|
|
PACKAGECONFIG ??= " dbus \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \
|
|
${@bb.utils.contains('PTEST_ENABLED', '1', 'test', '', d)} \
|
|
"
|
|
|
|
PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
|
|
PACKAGECONFIG[systemd-system-service] = "-Dsystemd-system-service=true,-Dsystemd-system-service=false,systemd"
|
|
# "systemd-user-service" packageconfig will only install service
|
|
# files to rootfs but not enable them as systemd.bbclass
|
|
# currently lacks the feature of enabling user services.
|
|
PACKAGECONFIG[systemd-user-service] = "-Dsystemd-user-service=true,-Dsystemd-user-service=false,systemd"
|
|
PACKAGECONFIG[dbus] = ""
|
|
PACKAGECONFIG[test] = "-Dtests=true,-Dtests=false"
|
|
|
|
PACKAGESPLITFUNCS:prepend = " split_dynamic_packages "
|
|
PACKAGESPLITFUNCS:append = " set_dynamic_metapkg_rdepends "
|
|
|
|
WP_MODULE_SUBDIR = "wireplumber-0.5"
|
|
|
|
do_install:append() {
|
|
if ${@bb.utils.contains('PACKAGECONFIG', 'dbus', 'false', 'true', d)}; then
|
|
install -m 0644 ${UNPACKDIR}/90-OE-disable-session-dbus-dependent-features.lua ${D}${datadir}/wireplumber/main.lua.d
|
|
fi
|
|
}
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/data/config
|
|
cd ${B}/tests
|
|
find . -maxdepth 2 -type f -executable -exec install -D {} ${D}${PTEST_PATH}/{} \;
|
|
|
|
install -m 644 ${S}/tests/wp/component-loader.conf ${D}${PTEST_PATH}/data/
|
|
cp -r ${S}/tests/scripts/scripts ${D}${PTEST_PATH}/scripts/
|
|
cp -r ${S}/tests/wplua/scripts ${D}${PTEST_PATH}/wplua/
|
|
cp -r ${S}/tests/wp/conf ${D}${PTEST_PATH}/data
|
|
cp -r ${S}/tests/wp/settings ${D}${PTEST_PATH}/data
|
|
install -m 644 ${S}/src/config/wireplumber.conf ${D}${PTEST_PATH}/data/config/
|
|
install -Dm 644 ${S}/tests/wplua/scripts/lib/testlib.lua ${D}${datadir}/wireplumber/scripts/lib/testlib.lua
|
|
install -Dm 644 ${S}/tests/scripts/scripts/lib/test-utils.lua ${D}${datadir}/wireplumber/scripts/lib/test-utils.lua
|
|
|
|
# this is not a test
|
|
rm -rf ${D}${PTEST_PATH}/examples
|
|
|
|
# Beside regular bianry executables, this package comes with lua tests also
|
|
# which need to be executed with specific parameters. Take the parameters
|
|
# from the meson.build files, and read them from run-ptest script.
|
|
grep args ${S}/tests/wplua/meson.build | cut -d[ -f2 | cut -d] -f1 | tr -d ",'" > ${D}${PTEST_PATH}/wplua/ptest-list
|
|
grep args ${S}/tests/scripts/meson.build | cut -d[ -f2 | cut -d] -f1 | tr -d ",'" > ${D}${PTEST_PATH}/scripts/ptest-list
|
|
}
|
|
|
|
python split_dynamic_packages () {
|
|
# Create packages for each WirePlumber module.
|
|
wp_module_libdir = d.expand('${libdir}/${WP_MODULE_SUBDIR}')
|
|
do_split_packages(d, wp_module_libdir, r'^libwireplumber-module-(.*)\.so$', d.expand('${PN}-modules-%s'), 'WirePlumber %s module', extra_depends='', recursive=False)
|
|
}
|
|
|
|
python set_dynamic_metapkg_rdepends () {
|
|
import os
|
|
import oe.utils
|
|
|
|
# Go through all generated WirePlumber module packages
|
|
# (excluding the main package and the -meta package itself)
|
|
# and add them to the -meta package as RDEPENDS.
|
|
|
|
base_pn = d.getVar('PN')
|
|
|
|
wp_module_pn = base_pn + '-modules'
|
|
wp_module_metapkg = wp_module_pn + '-meta'
|
|
|
|
d.setVar('ALLOW_EMPTY:' + wp_module_metapkg, "1")
|
|
d.setVar('FILES:' + wp_module_metapkg, "")
|
|
|
|
blacklist = [ wp_module_pn, wp_module_metapkg ]
|
|
wp_module_metapkg_rdepends = []
|
|
pkgdest = d.getVar('PKGDEST')
|
|
|
|
for pkg in oe.utils.packages_filter_out_system(d):
|
|
if pkg in blacklist:
|
|
continue
|
|
|
|
is_wp_module_pkg = pkg.startswith(wp_module_pn)
|
|
if not is_wp_module_pkg:
|
|
continue
|
|
|
|
if pkg in wp_module_metapkg_rdepends:
|
|
continue
|
|
|
|
# See if the package is empty by looking at the contents of its
|
|
# PKGDEST subdirectory. If this subdirectory is empty, then then
|
|
# package is empty as well. Empty packages do not get added to
|
|
# the meta package's RDEPENDS.
|
|
pkgdir = os.path.join(pkgdest, pkg)
|
|
if os.path.exists(pkgdir):
|
|
dir_contents = os.listdir(pkgdir) or []
|
|
else:
|
|
dir_contents = []
|
|
is_empty = len(dir_contents) == 0
|
|
if not is_empty:
|
|
if is_wp_module_pkg:
|
|
wp_module_metapkg_rdepends.append(pkg)
|
|
|
|
d.setVar('RDEPENDS:' + wp_module_metapkg, ' '.join(wp_module_metapkg_rdepends))
|
|
d.setVar('DESCRIPTION:' + wp_module_metapkg, wp_module_pn + ' meta package')
|
|
}
|
|
|
|
PACKAGES =+ "\
|
|
libwireplumber \
|
|
${PN}-default-config \
|
|
${PN}-scripts \
|
|
${PN}-modules \
|
|
${PN}-modules-meta \
|
|
"
|
|
|
|
PACKAGES_DYNAMIC = "^${PN}-modules.*"
|
|
|
|
CONFFILES:${PN} += " \
|
|
${datadir}/wireplumber/wireplumber.conf \
|
|
${datadir}/wireplumber/*.lua.d/* \
|
|
"
|
|
# Add pipewire to RRECOMMENDS, since WirePlumber expects a PipeWire daemon to
|
|
# be present. While in theory any application that uses libpipewire can configure
|
|
# itself to become a daemon, in practice, the PipeWire daemon is used.
|
|
RRECOMMENDS:${PN} += "pipewire ${PN}-scripts ${PN}-modules-meta"
|
|
|
|
FILES:${PN} += "${systemd_user_unitdir} ${systemd_system_unitdir} ${datadir}/zsh"
|
|
|
|
FILES:libwireplumber = " \
|
|
${libdir}/libwireplumber-*.so.* \
|
|
"
|
|
|
|
FILES:${PN}-scripts += "${datadir}/wireplumber/scripts/*"
|
|
|
|
# Dynamic packages (see set_dynamic_metapkg_rdepends).
|
|
FILES:${PN}-modules = ""
|
|
RRECOMMENDS:${PN}-modules += "${PN}-modules-meta"
|
|
|
|
FILES:${PN}-ptest += "${datadir}/wireplumber/scripts/lib/test-utils.lua ${datadir}/wireplumber/scripts/testlib.lua"
|
|
RDEPENDS:${PN}-ptest += "pipewire-modules-protocol-native ${PN}-scripts"
|