summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.1.bb
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2025-05-08 21:52:00 +0200
committerKhem Raj <raj.khem@gmail.com>2025-05-08 13:02:04 -0700
commitd5f076161b5f2cd66f70a73eb39f4ed09c4f3449 (patch)
tree050130ab643026b9722934763de133625b00b2d3 /meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.1.bb
parent6cf005f38654ca014377e08c770c11e2505d65a3 (diff)
downloadmeta-openembedded-d5f076161b5f2cd66f70a73eb39f4ed09c4f3449.tar.gz
pipewire: update 1.4.1 -> 1.4.2
PipeWire 1.4.2 (2025-04-14) This is a bugfix release that is API and ABI compatible with previous 1.x releases. Highlights - Do extra checks for MIDI to avoid 100% CPU usage on older kernels. - Fix some potential crashes in POD builder. - pw-cat streaming improvements on stdout/stdin. - Small fixes and improvements. PipeWire - Make the service files depend on DBus to avoid startup races. SPA - Do extra checks for MIDI to avoid 100% CPU usage on older kernels. - Use Header metadata by default in videoadapter. - Handle set_format result from v4l2 better. - Handle crash when POD builder overflows in the filter. - Work around a libebur128 bug. (#4646) Tools - pw-cat prefers AU format when streaming on stdout/stdin. (#4629) - Improve pw-cat verbose sndfile format debug. - Add the missing --channel-map long option to pw-loopback. GStreamer - Fix a leak in the deviceprovider. (#4616) - Fix negotiation and make renegotiation better. Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.1.bb')
-rw-r--r--meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.1.bb412
1 files changed, 0 insertions, 412 deletions
diff --git a/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.1.bb b/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.1.bb
deleted file mode 100644
index e1cf2a55ba..0000000000
--- a/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.1.bb
+++ /dev/null
@@ -1,412 +0,0 @@
1SUMMARY = "Multimedia processing server for Linux"
2DESCRIPTION = "Linux server for handling and routing audio and video streams between applications and multimedia I/O devices"
3HOMEPAGE = "https://pipewire.org/"
4BUGTRACKER = "https://gitlab.freedesktop.org/pipewire/pipewire/issues"
5SECTION = "multimedia"
6
7LICENSE = "MIT & LGPL-2.1-or-later & GPL-2.0-only"
8LIC_FILES_CHKSUM = " \
9 file://LICENSE;md5=2158739e172e58dc9ab1bdd2d6ec9c72 \
10 file://COPYING;md5=97be96ca4fab23e9657ffa590b931c1a \
11"
12
13DEPENDS = "dbus ncurses"
14
15SRCREV = "2eb8cf5dc780ca22b94545f1254497a428c412f5"
16BRANCH = "${@oe.utils.trim_version('${PV}', 2)}"
17SRC_URI = "git://gitlab.freedesktop.org/pipewire/pipewire.git;branch=${BRANCH};protocol=https"
18
19S = "${WORKDIR}/git"
20
21inherit meson pkgconfig systemd gettext useradd
22
23USERADD_PACKAGES = "${PN}"
24
25GROUPADD_PARAM:${PN} = "--system pipewire"
26
27USERADD_PARAM:${PN} = "--system --home / --no-create-home \
28 --comment 'PipeWire multimedia daemon' \
29 --gid pipewire --groups audio,video \
30 pipewire"
31
32SYSTEMD_PACKAGES = "${PN}"
33
34# For "EVL", look up https://evlproject.org/ . It involves
35# a specially prepared kernel, and is currently unavailable
36# in Yocto.
37#
38#
39# manpage generation requires xmltoman, which is not available.
40#
41# The session-managers list specifies which session managers Meson
42# shall download (via git clone) and build as subprojects. In OE,
43# this is not how a session manager should be built. Instead, they
44# should be integrated as separate OE recipes. To prevent PipeWire
45# from using this Meson feature, set an empty list.
46# This does not disable support or the need for session managers,
47# it just prevents this subproject feature.
48#
49# AptX and LDAC are not available in OE. Currently, neither
50# are lv2, ROC, and libmysofa.
51#
52# The RTKit module is deprecated in favor of the newer RT module.
53# It still exists for legacy setups that still include it in
54# their PipeWire configuration files.
55EXTRA_OEMESON += " \
56 -Devl=disabled \
57 -Dtests=disabled \
58 -Dudevrulesdir=${nonarch_base_libdir}/udev/rules.d/ \
59 -Dsystemd-system-unit-dir=${systemd_system_unitdir} \
60 -Dsystemd-user-unit-dir=${systemd_user_unitdir} \
61 -Dman=disabled \
62 -Dsession-managers='[]' \
63 -Dlv2=disabled \
64 -Droc=disabled \
65 -Dbluez5-codec-aptx=disabled \
66 -Dbluez5-codec-ldac=disabled \
67 -Dlegacy-rtkit=false \
68 -Dlibmysofa=disabled \
69"
70
71# spa alsa plugin code uses typedef redefinition, which is officially a C11 feature.
72# Pipewire builds with 'c_std=gnu99' by default. Recent versions of gcc don't issue this warning in gnu99
73# mode but it looks like clang still does
74CFLAGS:append = " -Wno-typedef-redefinition"
75
76# Specify linking with -latomic on architectures missing 64bit atomics.
77LDFLAGS += "${@bb.utils.contains_any('TUNE_FEATURES', 'riscv32 armv5 mips ppc32 m32', '-latomic', '', d)}"
78
79# According to wireplumber documentation only one session manager should be installed at a time
80# Possible options are media-session, which has fewer dependencies but is very simple,
81# or wireplumber, which is more powerful.
82PIPEWIRE_SESSION_MANAGER ??= "wireplumber"
83
84FFMPEG_AVAILABLE = "${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'ffmpeg', '', d)}"
85BLUETOOTH_AAC = "${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'bluez-aac', '', d)}"
86
87PACKAGECONFIG:class-target ??= " \
88 ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
89 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez bluez-opus ${BLUETOOTH_AAC}', '', d)} \
90 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \
91 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \
92 ${PIPEWIRE_SESSION_MANAGER} \
93 ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling libcamera readline \
94"
95
96# "jack" and "pipewire-jack" packageconfigs cannot be both enabled,
97# since "jack" imports libjack, and "pipewire-jack" generates
98# libjack.so* files, thus colliding with the libpack package. This
99# is why these two are marked in their respective packageconfigs
100# as being in conflict.
101PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib udev,,pipewire-alsa pipewire-alsa-card-profile"
102PACKAGECONFIG[avahi] = "-Davahi=enabled,-Davahi=disabled,avahi"
103PACKAGECONFIG[bluez] = "-Dbluez5=enabled,-Dbluez5=disabled,bluez5 sbc glib-2.0-native"
104PACKAGECONFIG[bluez-aac] = "-Dbluez5-codec-aac=enabled,-Dbluez5-codec-aac=disabled,fdk-aac"
105PACKAGECONFIG[bluez-opus] = "-Dbluez5-codec-opus=enabled,-Dbluez5-codec-opus=disabled,libopus"
106PACKAGECONFIG[bluez-lc3] = "-Dbluez5-codec-lc3=enabled,-Dbluez5-codec-lc3=disabled,liblc3"
107# From the pipewire git log:
108# "Some Linux phones doesn't use oFono but ModemManager to control the modem."
109# This packageconfig enables modemmanager specific code in the BlueZ backend.
110PACKAGECONFIG[bluez-backend-native-mm] = "-Dbluez5-backend-native-mm=enabled,-Dbluez5-backend-native-mm=disabled,modemmanager"
111PACKAGECONFIG[docs] = "-Ddocs=enabled,-Ddocs=disabled,doxygen-native graphviz-native"
112PACKAGECONFIG[ffmpeg] = "-Dffmpeg=enabled,-Dffmpeg=disabled,ffmpeg"
113PACKAGECONFIG[flatpak] = "-Dflatpak=enabled,-Dflatpak=disabled,glib-2.0"
114PACKAGECONFIG[gsettings] = "-Dgsettings=enabled,-Dgsettings=disabled,glib-2.0"
115PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-Dgstreamer=disabled,glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base,,gstreamer1.0-pipewire"
116PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack,,,pipewire-jack"
117PACKAGECONFIG[libcamera] = "-Dlibcamera=enabled,-Dlibcamera=disabled,libcamera libdrm"
118PACKAGECONFIG[libcanberra] = "-Dlibcanberra=enabled,-Dlibcanberra=disabled,libcanberra"
119PACKAGECONFIG[libusb] = "-Dlibusb=enabled,-Dlibusb=disabled,libusb"
120PACKAGECONFIG[media-session] = ",,,pipewire-media-session,,wireplumber"
121PACKAGECONFIG[pulseaudio] = "-Dlibpulse=enabled,-Dlibpulse=disabled,pulseaudio,,pipewire-pulse"
122PACKAGECONFIG[pipewire-alsa] = "-Dpipewire-alsa=enabled,-Dpipewire-alsa=disabled,alsa-lib"
123PACKAGECONFIG[pipewire-jack] = "-Dpipewire-jack=enabled -Dlibjack-path=${libdir}/${PW_MODULE_SUBDIR}/jack,-Dpipewire-jack=disabled,jack,,pipewire-jack,jack"
124PACKAGECONFIG[pw-cat] = "-Dpw-cat=enabled,-Dpw-cat=disabled"
125PACKAGECONFIG[raop] = "-Draop=enabled,-Draop=disabled,openssl"
126# Starting with version 0.3.60, readline usage can be turned off in pw-cli.
127# If it is disabled, getline() is used as a fallback.
128PACKAGECONFIG[readline] = "-Dreadline=enabled,-Dreadline=disabled,readline"
129PACKAGECONFIG[sdl2] = "-Dsdl2=enabled,-Dsdl2=disabled,virtual/libsdl2"
130PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1"
131PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
132PACKAGECONFIG[systemd-system-service] = "-Dsystemd-system-service=enabled,-Dsystemd-system-service=disabled,systemd"
133# "systemd-user-service" packageconfig will only install service
134# files to rootfs but not enable them as systemd.bbclass
135# currently lacks the feature of enabling user services.
136PACKAGECONFIG[systemd-user-service] = "-Dsystemd-user-service=enabled,-Dsystemd-user-service=disabled,systemd"
137# pw-cat needs sndfile packageconfig to be enabled
138PACKAGECONFIG[udev] = "-Dudev=enabled,-Dudev=disabled,udev"
139PACKAGECONFIG[v4l2] = "-Dv4l2=enabled,-Dv4l2=disabled,udev"
140PACKAGECONFIG[volume] = "-Dvolume=enabled,-Dvolume=disabled"
141PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-headers vulkan-loader"
142PACKAGECONFIG[webrtc-echo-cancelling] = "-Decho-cancel-webrtc=enabled,-Decho-cancel-webrtc=disabled,webrtc-audio-processing-1"
143PACKAGECONFIG[wireplumber] = ",,,wireplumber,,media-session"
144
145PACKAGESPLITFUNCS:prepend = " split_dynamic_packages "
146PACKAGESPLITFUNCS:append = " set_dynamic_metapkg_rdepends "
147
148SPA_SUBDIR = "spa-0.2"
149PW_MODULE_SUBDIR = "pipewire-0.3"
150
151remove_unused_installed_files() {
152 # jack.conf is used by pipewire-jack (not the JACK SPA plugin).
153 # Remove it if pipewire-jack is not built to avoid creating the
154 # pipewire-jack package.
155 if ${@bb.utils.contains('PACKAGECONFIG', 'pipewire-jack', 'false', 'true', d)}; then
156 rm -f "${D}${datadir}/pipewire/jack.conf"
157 fi
158
159 # minimal.conf is an example of how to minimally configure the
160 # daemon and is not meant to be used for production.
161 rm -f "${D}${datadir}/pipewire/minimal.conf"
162}
163
164do_install:append:class-target() {
165 # The pipewire-alsa plugin needs the following files in /etc/alsa/conf.d/ to
166 # be picked up by alsa.
167 install -d ${D}${sysconfdir}/alsa/conf.d
168 ln -sf ${datadir}/alsa/alsa.conf.d/50-pipewire.conf ${D}${sysconfdir}/alsa/conf.d/50-pipewire.conf
169 ln -sf ${datadir}/alsa/alsa.conf.d/99-pipewire-default.conf ${D}${sysconfdir}/alsa/conf.d/99-pipewire-default.conf
170}
171
172do_install[postfuncs] += "remove_unused_installed_files"
173
174python split_dynamic_packages () {
175 # Create packages for each SPA plugin. These plugins are located
176 # in individual subdirectories, so a recursive search is needed.
177 spa_libdir = d.expand('${libdir}/${SPA_SUBDIR}')
178 do_split_packages(d, spa_libdir, r'^libspa-(.*)\.so$', d.expand('${PN}-spa-plugins-%s'), 'PipeWire SPA plugin for %s', extra_depends='', recursive=True)
179
180 # Create packages for each PipeWire module.
181 pw_module_libdir = d.expand('${libdir}/${PW_MODULE_SUBDIR}')
182 do_split_packages(d, pw_module_libdir, r'^libpipewire-module-(.*)\.so$', d.expand('${PN}-modules-%s'), 'PipeWire %s module', extra_depends='', recursive=False)
183}
184
185python set_dynamic_metapkg_rdepends () {
186 import os
187 import oe.utils
188
189 if bb.data.inherits_class('nativesdk', d) or bb.data.inherits_class('native', d):
190 return
191
192 # Go through all generated SPA plugin and PipeWire module packages
193 # (excluding the main package and the -meta package itself) and
194 # add them to the -meta package as RDEPENDS.
195
196 base_pn = d.getVar('PN')
197
198 spa_pn = base_pn + '-spa-plugins'
199 spa_metapkg = spa_pn + '-meta'
200
201 pw_module_pn = base_pn + '-modules'
202 pw_module_metapkg = pw_module_pn + '-meta'
203
204 d.setVar('ALLOW_EMPTY:' + spa_metapkg, "1")
205 d.setVar('FILES:' + spa_metapkg, "")
206
207 d.setVar('ALLOW_EMPTY:' + pw_module_metapkg, "1")
208 d.setVar('FILES:' + pw_module_metapkg, "")
209
210 blacklist = [ spa_pn, spa_metapkg, pw_module_pn, pw_module_metapkg ]
211 spa_metapkg_rdepends = []
212 pw_module_metapkg_rdepends = []
213 pkgdest = d.getVar('PKGDEST')
214
215 for pkg in oe.utils.packages_filter_out_system(d):
216 if pkg in blacklist:
217 continue
218
219 is_spa_pkg = pkg.startswith(spa_pn)
220 is_pw_module_pkg = pkg.startswith(pw_module_pn)
221 if not is_spa_pkg and not is_pw_module_pkg:
222 continue
223
224 if pkg in spa_metapkg_rdepends or pkg in pw_module_metapkg_rdepends:
225 continue
226
227 # See if the package is empty by looking at the contents of its
228 # PKGDEST subdirectory. If this subdirectory is empty, then then
229 # package is empty as well. Empty packages do not get added to
230 # the meta package's RDEPENDS.
231 pkgdir = os.path.join(pkgdest, pkg)
232 if os.path.exists(pkgdir):
233 dir_contents = os.listdir(pkgdir) or []
234 else:
235 dir_contents = []
236 is_empty = len(dir_contents) == 0
237 if not is_empty:
238 if is_spa_pkg:
239 spa_metapkg_rdepends.append(pkg)
240 if is_pw_module_pkg:
241 pw_module_metapkg_rdepends.append(pkg)
242
243 d.setVar('RDEPENDS:' + spa_metapkg, ' '.join(spa_metapkg_rdepends))
244 d.setVar('DESCRIPTION:' + spa_metapkg, spa_pn + ' meta package')
245
246 d.setVar('RDEPENDS:' + pw_module_metapkg, ' '.join(pw_module_metapkg_rdepends))
247 d.setVar('DESCRIPTION:' + pw_module_metapkg, pw_module_pn + ' meta package')
248}
249
250PACKAGES =+ "\
251 libpipewire \
252 ${PN}-tools \
253 ${PN}-pulse \
254 ${PN}-alsa \
255 ${PN}-jack \
256 ${PN}-spa-plugins \
257 ${PN}-spa-plugins-meta \
258 ${PN}-spa-tools \
259 ${PN}-modules \
260 ${PN}-modules-meta \
261 ${PN}-alsa-card-profile \
262 ${PN}-v4l2 \
263 ${PN}-aes67 \
264 gstreamer1.0-pipewire \
265"
266
267PACKAGES_DYNAMIC = "^${PN}-spa-plugins.* ^${PN}-modules.*"
268PACKAGES_DYNAMIC:class-native = ""
269
270SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd-system-service', 'pipewire.service', '', d)}"
271CONFFILES:${PN} += "${datadir}/pipewire/pipewire.conf"
272FILES:${PN} = " \
273 ${datadir}/pipewire \
274 ${systemd_system_unitdir}/pipewire* \
275 ${systemd_user_unitdir} \
276 ${bindir}/pipewire \
277 ${bindir}/pipewire-avb \
278 ${bindir}/pipewire-vulkan \
279"
280
281RRECOMMENDS:${PN}:class-target += " \
282 pipewire-modules-meta \
283 pipewire-spa-plugins-meta \
284"
285
286FILES:${PN}-dev += " \
287 ${libdir}/${PW_MODULE_SUBDIR}/jack/libjack*.so \
288"
289
290CONFFILES:libpipewire += "${datadir}/pipewire/client.conf"
291FILES:libpipewire = " \
292 ${datadir}/pipewire/client.conf \
293 ${libdir}/libpipewire-*.so.* \
294 ${libdir}/${SPA_SUBDIR}/libspa.so \
295"
296# Add the bare minimum modules and plugins required to be able
297# to use libpipewire. Without these, it is essentially unusable.
298RDEPENDS:libpipewire += " \
299 ${PN}-modules-client-node \
300 ${PN}-modules-protocol-native \
301 ${PN}-spa-plugins-support \
302"
303
304FILES:${PN}-tools = " \
305 ${bindir}/pw-cat \
306 ${bindir}/pw-cli \
307 ${bindir}/pw-config \
308 ${bindir}/pw-container \
309 ${bindir}/pw-dot \
310 ${bindir}/pw-dsdplay \
311 ${bindir}/pw-dump \
312 ${bindir}/pw-encplay \
313 ${bindir}/pw-link \
314 ${bindir}/pw-loopback \
315 ${bindir}/pw-metadata \
316 ${bindir}/pw-mididump \
317 ${bindir}/pw-midiplay \
318 ${bindir}/pw-midirecord \
319 ${bindir}/pw-mon \
320 ${bindir}/pw-play \
321 ${bindir}/pw-profiler \
322 ${bindir}/pw-record \
323 ${bindir}/pw-reserve \
324 ${bindir}/pw-top \
325"
326
327# This is a shim daemon that is intended to be used as a
328# drop-in PulseAudio replacement, providing a pulseaudio-compatible
329# socket that can be used by applications that use libpulse.
330CONFFILES:${PN}-pulse += "${datadir}/pipewire/pipewire-pulse.conf"
331FILES:${PN}-pulse = " \
332 ${datadir}/pipewire/pipewire-pulse.conf \
333 ${systemd_system_unitdir}/pipewire-pulse.* \
334 ${systemd_user_unitdir}/pipewire-pulse.* \
335 ${bindir}/pipewire-pulse \
336"
337# This uses :append:class-target rather than += to avoid a dependency from
338# pipewire-native to pipewire.
339RDEPENDS:${PN}-pulse:append:class-target = " \
340 ${PN}-modules-protocol-pulse \
341"
342
343# ALSA plugin to redirect audio to pipewire.
344FILES:${PN}-alsa = "\
345 ${libdir}/alsa-lib/* \
346 ${datadir}/alsa/alsa.conf.d/* \
347 ${sysconfdir}/alsa/conf.d/50-pipewire.conf \
348 ${sysconfdir}/alsa/conf.d/99-pipewire-default.conf \
349"
350
351# JACK drop-in libraries to redirect audio to pipewire.
352CONFFILES:${PN}-jack = "${datadir}/pipewire/jack.conf"
353FILES:${PN}-jack = "\
354 ${bindir}/pw-jack \
355 ${datadir}/pipewire/jack.conf \
356 ${libdir}/${PW_MODULE_SUBDIR}/jack/libjack*.so.* \
357"
358
359# Dynamic SPA plugin packages (see set_dynamic_metapkg_rdepends).
360FILES:${PN}-spa-plugins = ""
361RRECOMMENDS:${PN}-spa-plugins += "${PN}-spa-plugins-meta"
362
363FILES:${PN}-spa-plugins-bluez5 += " \
364 ${datadir}/${SPA_SUBDIR}/bluez5/* \
365"
366
367FILES:${PN}-spa-tools = " \
368 ${bindir}/spa-* \
369"
370
371# Dynamic PipeWire module packages (see set_dynamic_metapkg_rdepends).
372FILES:${PN}-modules = ""
373RRECOMMENDS:${PN}-modules += "${PN}-modules-meta"
374
375CONFFILES:${PN}-modules-rt = "${datadir}/pipewire/client-rt.conf"
376FILES:${PN}-modules-rt += " \
377 ${datadir}/pipewire/client-rt.conf \
378 ${sysconfdir}/security/limits.d/* \
379 "
380
381CONFFILES:${PN}-modules-filter-chain = "${datadir}/pipewire/filter-chain/*"
382FILES:${PN}-modules-filter-chain += " \
383 ${datadir}/pipewire/filter-chain/* \
384"
385
386FILES:${PN}-alsa-card-profile = " \
387 ${datadir}/alsa-card-profile/* \
388 ${nonarch_base_libdir}/udev/rules.d/90-pipewire-alsa.rules \
389"
390
391# V4L2 interface emulator for sending/receiving data between PipeWire and V4L2 applications.
392FILES:${PN}-v4l2 += " \
393 ${bindir}/pw-v4l2 \
394 ${libdir}/${PW_MODULE_SUBDIR}/v4l2/libpw-v4l2.so \
395"
396
397# AES67 is a standard for audio over IP, from the Audio Engineering Society (AES).
398FILES:${PN}-aes67 += " \
399 ${bindir}/pipewire-aes67 \
400"
401
402FILES:gstreamer1.0-pipewire = " \
403 ${libdir}/gstreamer-1.0/* \
404"
405
406BBCLASSEXTEND = "native nativesdk"
407
408do_install:append() {
409 if ls ${D}${datadir}/doc/pipewire/html/dir_*html; then
410 sed -i "s,${WORKDIR},,g" ${D}${datadir}/doc/pipewire/html/dir_*html
411 fi
412}