1 |
commit: 862212573c933db7f5e7d7a965031a56ef341dda |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 16:08:13 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 16:08:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86221257 |
7 |
|
8 |
media-video/pipewire: drop 0.3.50-r1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
media-video/pipewire/pipewire-0.3.50-r1.ebuild | 356 ------------------------- |
13 |
1 file changed, 356 deletions(-) |
14 |
|
15 |
diff --git a/media-video/pipewire/pipewire-0.3.50-r1.ebuild b/media-video/pipewire/pipewire-0.3.50-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 486d6073c4d1..000000000000 |
18 |
--- a/media-video/pipewire/pipewire-0.3.50-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,356 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=8 |
25 |
- |
26 |
-PYTHON_COMPAT=( python3_{8..10} ) |
27 |
- |
28 |
-inherit flag-o-matic meson-multilib optfeature prefix python-any-r1 systemd udev |
29 |
- |
30 |
-if [[ ${PV} == 9999 ]]; then |
31 |
- EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git" |
32 |
- inherit git-r3 |
33 |
-else |
34 |
- if [[ ${PV} == *_p* ]] ; then |
35 |
- MY_COMMIT="" |
36 |
- SRC_URI="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${MY_COMMIT}/pipewire-${MY_COMMIT}.tar.bz2 -> ${P}.tar.bz2" |
37 |
- S="${WORKDIR}"/${PN}-${MY_COMMIT} |
38 |
- else |
39 |
- SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz" |
40 |
- fi |
41 |
- |
42 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
43 |
-fi |
44 |
- |
45 |
-DESCRIPTION="Multimedia processing graphs" |
46 |
-HOMEPAGE="https://pipewire.org/" |
47 |
- |
48 |
-LICENSE="MIT LGPL-2.1+ GPL-2" |
49 |
-# ABI was broken in 0.3.42 for https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/49 |
50 |
-SLOT="0/0.4" |
51 |
-IUSE="bluetooth doc echo-cancel extra gstreamer jack-client jack-sdk lv2 pipewire-alsa ssl system-service systemd test v4l X zeroconf" |
52 |
- |
53 |
-# Once replacing system JACK libraries is possible, it's likely that |
54 |
-# jack-client IUSE will need blocking to avoid users accidentally |
55 |
-# configuring their systems to send PW sink output to the emulated |
56 |
-# JACK's sink - doing so is likely to yield no audio, cause a CPU |
57 |
-# cycles consuming loop (and may even cause GUI crashes)! |
58 |
- |
59 |
-REQUIRED_USE=" |
60 |
- jack-sdk? ( !jack-client ) |
61 |
- system-service? ( systemd ) |
62 |
-" |
63 |
- |
64 |
-RESTRICT="!test? ( test )" |
65 |
- |
66 |
-BDEPEND=" |
67 |
- >=dev-util/meson-0.59 |
68 |
- virtual/pkgconfig |
69 |
- ${PYTHON_DEPS} |
70 |
- $(python_gen_any_dep 'dev-python/docutils[${PYTHON_USEDEP}]') |
71 |
- doc? ( |
72 |
- app-doc/doxygen |
73 |
- media-gfx/graphviz |
74 |
- ) |
75 |
-" |
76 |
-RDEPEND=" |
77 |
- acct-group/audio |
78 |
- media-libs/alsa-lib |
79 |
- sys-apps/dbus[${MULTILIB_USEDEP}] |
80 |
- sys-libs/readline:= |
81 |
- sys-libs/ncurses:=[unicode(+)] |
82 |
- virtual/libintl[${MULTILIB_USEDEP}] |
83 |
- virtual/libudev[${MULTILIB_USEDEP}] |
84 |
- bluetooth? ( |
85 |
- media-libs/fdk-aac |
86 |
- media-libs/libldac |
87 |
- media-libs/libfreeaptx |
88 |
- media-libs/sbc |
89 |
- >=net-wireless/bluez-4.101:= |
90 |
- virtual/libusb:1 |
91 |
- ) |
92 |
- echo-cancel? ( media-libs/webrtc-audio-processing:0 ) |
93 |
- extra? ( |
94 |
- >=media-libs/libsndfile-1.0.20 |
95 |
- ) |
96 |
- gstreamer? ( |
97 |
- >=dev-libs/glib-2.32.0:2 |
98 |
- >=media-libs/gstreamer-1.10.0:1.0 |
99 |
- media-libs/gst-plugins-base:1.0 |
100 |
- ) |
101 |
- jack-client? ( >=media-sound/jack2-1.9.10:2[dbus] ) |
102 |
- jack-sdk? ( |
103 |
- !media-sound/jack-audio-connection-kit |
104 |
- !media-sound/jack2 |
105 |
- ) |
106 |
- lv2? ( media-libs/lilv ) |
107 |
- pipewire-alsa? ( |
108 |
- >=media-libs/alsa-lib-1.1.7[${MULTILIB_USEDEP}] |
109 |
- !media-plugins/alsa-plugins[${MULTILIB_USEDEP},pulseaudio] |
110 |
- ) |
111 |
- !pipewire-alsa? ( media-plugins/alsa-plugins[${MULTILIB_USEDEP},pulseaudio] ) |
112 |
- ssl? ( dev-libs/openssl:= ) |
113 |
- systemd? ( sys-apps/systemd ) |
114 |
- system-service? ( |
115 |
- acct-user/pipewire |
116 |
- acct-group/pipewire |
117 |
- ) |
118 |
- v4l? ( media-libs/libv4l ) |
119 |
- X? ( |
120 |
- media-libs/libcanberra |
121 |
- x11-libs/libX11 |
122 |
- x11-libs/libXfixes |
123 |
- ) |
124 |
- zeroconf? ( net-dns/avahi ) |
125 |
-" |
126 |
- |
127 |
-DEPEND="${RDEPEND}" |
128 |
- |
129 |
-# TODO: Consider use cases where pipewire is not used for driving audio |
130 |
-# Doing so with WirePlumber currently involves editing Lua scripts |
131 |
-PDEPEND=">=media-video/wireplumber-0.4.8-r3" |
132 |
- |
133 |
-# Present RDEPEND that are currently always disabled due to the PW |
134 |
-# code using them being required to be disabled by Gentoo guidelines |
135 |
-# (i.e. developer binaries not meant for users) and unready code |
136 |
-# media-video/ffmpeg:= |
137 |
-# media-libs/libsdl2 |
138 |
-# >=media-libs/vulkan-loader-1.1.69 |
139 |
-# |
140 |
-# Ditto for DEPEND |
141 |
-# >=dev-util/vulkan-headers-1.1.69 |
142 |
- |
143 |
-DOCS=( {README,INSTALL}.md NEWS ) |
144 |
- |
145 |
-PATCHES=( |
146 |
- "${FILESDIR}"/${PN}-0.3.25-enable-failed-mlock-warning.patch |
147 |
- "${FILESDIR}"/${P}-fix-spa-header.patch |
148 |
-) |
149 |
- |
150 |
-# limitsdfile related code taken from =sys-auth/realtime-base-0.1 |
151 |
-# with changes as necessary. |
152 |
-limitsdfile=40-${PN}.conf |
153 |
- |
154 |
-python_check_deps() { |
155 |
- has_version -b "dev-python/docutils[${PYTHON_USEDEP}]" |
156 |
-} |
157 |
- |
158 |
-src_prepare() { |
159 |
- default |
160 |
- |
161 |
- einfo "Generating ${limitsdfile}" |
162 |
- cat > ${limitsdfile} <<- EOF || die |
163 |
- # Start of ${limitsdfile} from ${P} |
164 |
- |
165 |
- @audio - memlock 256 |
166 |
- |
167 |
- $(use system-service && { |
168 |
- echo @pipewire - rtprio 95 |
169 |
- echo @pipewire - priority -19 |
170 |
- echo @pipewire - memlock 4194304 |
171 |
- }) |
172 |
- |
173 |
- # End of ${limitsdfile} from ${P} |
174 |
- EOF |
175 |
-} |
176 |
- |
177 |
-multilib_src_configure() { |
178 |
- # https://bugs.gentoo.org/838301 |
179 |
- filter-flags -fno-semantic-interposition |
180 |
- |
181 |
- local emesonargs=( |
182 |
- -Ddocdir="${EPREFIX}"/usr/share/doc/${PF} |
183 |
- |
184 |
- $(meson_native_use_feature zeroconf avahi) |
185 |
- $(meson_native_use_feature doc docs) |
186 |
- $(meson_native_enabled examples) # TODO: Figure out if this is still important now that media-session gone |
187 |
- $(meson_native_enabled man) |
188 |
- $(meson_feature test tests) |
189 |
- -Dinstalled_tests=disabled # Matches upstream; Gentoo never installs tests |
190 |
- $(meson_native_use_feature gstreamer) |
191 |
- $(meson_native_use_feature gstreamer gstreamer-device-provider) |
192 |
- $(meson_native_use_feature systemd) |
193 |
- |
194 |
- $(meson_native_use_feature system-service systemd-system-service) |
195 |
- -Dsystemd-system-unit-dir="$(systemd_get_systemunitdir)" |
196 |
- -Dsystemd-user-unit-dir="$(systemd_get_userunitdir)" |
197 |
- |
198 |
- $(meson_native_use_feature systemd systemd-user-service) |
199 |
- $(meson_feature pipewire-alsa) # Allows integrating ALSA apps into PW graph |
200 |
- -Dspa-plugins=enabled |
201 |
- -Dalsa=enabled # Allows using kernel ALSA for sound I/O (NOTE: media-session is gone so IUSE=alsa/spa_alsa/alsa-backend might be possible) |
202 |
- -Daudiomixer=enabled # Matches upstream |
203 |
- -Daudioconvert=enabled # Matches upstream |
204 |
- $(meson_native_use_feature bluetooth bluez5) |
205 |
- $(meson_native_use_feature bluetooth bluez5-backend-hsp-native) |
206 |
- $(meson_native_use_feature bluetooth bluez5-backend-hfp-native) |
207 |
- $(meson_native_use_feature bluetooth bluez5-backend-ofono) |
208 |
- $(meson_native_use_feature bluetooth bluez5-backend-hsphfpd) |
209 |
- $(meson_native_use_feature bluetooth bluez5-codec-aac) |
210 |
- $(meson_native_use_feature bluetooth bluez5-codec-aptx) |
211 |
- $(meson_native_use_feature bluetooth bluez5-codec-ldac) |
212 |
- $(meson_native_use_feature bluetooth libusb) # At least for now only used by bluez5 native (quirk detection of adapters) |
213 |
- $(meson_native_use_feature echo-cancel echo-cancel-webrtc) #807889 |
214 |
- -Dcontrol=enabled # Matches upstream |
215 |
- -Daudiotestsrc=enabled # Matches upstream |
216 |
- -Dffmpeg=disabled # Disabled by upstream and no major developments to spa/plugins/ffmpeg/ since May 2020 |
217 |
- -Dpipewire-jack=enabled # Allows integrating JACK apps into PW graph |
218 |
- $(meson_native_use_feature jack-client jack) # Allows PW to act as a JACK client |
219 |
- $(meson_use jack-sdk jack-devel) |
220 |
- $(usex jack-sdk "-Dlibjack-path=${EPREFIX}/usr/$(get_libdir)" '') |
221 |
- -Dsupport=enabled # Miscellaneous/common plugins, such as null sink |
222 |
- -Devl=disabled # Matches upstream |
223 |
- -Dtest=disabled # fakesink and fakesource plugins |
224 |
- $(meson_native_use_feature lv2) |
225 |
- $(meson_native_use_feature v4l v4l2) |
226 |
- -Dlibcamera=disabled # libcamera is not in Portage tree |
227 |
- $(meson_native_use_feature ssl raop) |
228 |
- -Dvideoconvert=enabled # Matches upstream |
229 |
- -Dvideotestsrc=enabled # Matches upstream |
230 |
- -Dvolume=enabled # Matches upstream |
231 |
- -Dvulkan=disabled # Uses pre-compiled Vulkan compute shader to provide a CGI video source (dev thing; disabled by upstream) |
232 |
- $(meson_native_use_feature extra pw-cat) |
233 |
- -Dudev=enabled |
234 |
- -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d" |
235 |
- -Dsdl2=disabled # Controls SDL2 dependent code (currently only examples when -Dinstalled_tests=enabled which we never install) |
236 |
- $(meson_native_use_feature extra sndfile) # Enables libsndfile dependent code (currently only pw-cat) |
237 |
- -Dsession-managers="[]" # All available session managers are now their own projects, so there's nothing to build |
238 |
- |
239 |
- # Just for bell sounds in X11 right now. |
240 |
- $(meson_native_use_feature X x11) |
241 |
- $(meson_native_use_feature X x11-xfixes) |
242 |
- $(meson_native_use_feature X libcanberra) |
243 |
- ) |
244 |
- |
245 |
- meson_src_configure |
246 |
-} |
247 |
- |
248 |
-multilib_src_install() { |
249 |
- # Our custom DOCS do not exist in multilib source directory |
250 |
- DOCS= meson_src_install |
251 |
-} |
252 |
- |
253 |
-multilib_src_install_all() { |
254 |
- einstalldocs |
255 |
- |
256 |
- insinto /etc/security/limits.d |
257 |
- doins ${limitsdfile} |
258 |
- |
259 |
- if use pipewire-alsa; then |
260 |
- dodir /etc/alsa/conf.d |
261 |
- # These will break if someone has /etc that is a symbolic link to a subfolder! See #724222 |
262 |
- # And the current dosym8 -r implementation is likely affected by the same issue, too. |
263 |
- dosym ../../../usr/share/alsa/alsa.conf.d/50-pipewire.conf /etc/alsa/conf.d/50-pipewire.conf |
264 |
- dosym ../../../usr/share/alsa/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/99-pipewire-default.conf |
265 |
- fi |
266 |
- |
267 |
- if ! use systemd; then |
268 |
- insinto /etc/xdg/autostart |
269 |
- newins "${FILESDIR}"/pipewire.desktop-r1 pipewire.desktop |
270 |
- |
271 |
- exeinto /usr/bin |
272 |
- newexe "${FILESDIR}"/gentoo-pipewire-launcher.in gentoo-pipewire-launcher |
273 |
- eprefixify "${ED}"/usr/bin/gentoo-pipewire-launcher |
274 |
- fi |
275 |
-} |
276 |
- |
277 |
-pkg_postinst() { |
278 |
- elog "It is recommended to raise RLIMIT_MEMLOCK to 256 for users" |
279 |
- elog "using PipeWire. Do it either manually or add yourself" |
280 |
- elog "to the 'audio' group:" |
281 |
- elog |
282 |
- elog " usermod -aG audio <youruser>" |
283 |
- elog |
284 |
- |
285 |
- if ! use jack-sdk; then |
286 |
- elog "JACK emulation is incomplete and not all programs will work. PipeWire's" |
287 |
- elog "alternative libraries have been installed to a non-default location." |
288 |
- elog "To use them, put pw-jack <application> before every JACK application." |
289 |
- elog "When using pw-jack, do not run jackd/jackdbus. However, a virtual/jack" |
290 |
- elog "provider is still needed to compile the JACK applications themselves." |
291 |
- elog |
292 |
- fi |
293 |
- |
294 |
- if use systemd; then |
295 |
- elog "When switching from PulseAudio, you may need to disable PulseAudio:" |
296 |
- elog |
297 |
- elog " systemctl --user disable pulseaudio.service pulseaudio.socket" |
298 |
- elog |
299 |
- elog "To use PipeWire, the user units must be manually enabled" |
300 |
- elog "by running this command as each user you use for desktop activities:" |
301 |
- elog |
302 |
- elog " systemctl --user enable pipewire.socket pipewire-pulse.socket" |
303 |
- elog |
304 |
- elog "A reboot is recommended to avoid interferences from still running" |
305 |
- elog "PulseAudio daemon." |
306 |
- elog |
307 |
- elog "Both new users and those upgrading need to enable WirePlumber" |
308 |
- elog "for relevant users:" |
309 |
- elog |
310 |
- elog " systemctl --user disable pipewire-media-session.service" |
311 |
- elog " systemctl --user --force enable wireplumber.service" |
312 |
- elog |
313 |
- elog "Root user may replace --user with --global to change system default" |
314 |
- elog "configuration for all of the above commands." |
315 |
- else |
316 |
- ewarn "PipeWire daemon startup has been moved to a launcher script!" |
317 |
- ewarn "Make sure that ${EROOT}/etc/pipewire/pipewire.conf either does not exist or no" |
318 |
- ewarn "longer is set to start a session manager or PulseAudio compatibility daemon (all" |
319 |
- ewarn "lines similar to '{ path = /usr/bin/pipewire*' should be commented out)" |
320 |
- ewarn |
321 |
- ewarn "Those manually starting /usr/bin/pipewire via .xinitrc or similar _must_ from" |
322 |
- ewarn "now on start ${EROOT}/usr/bin/gentoo-pipewire-launcher instead! It is highly" |
323 |
- ewarn "advised that a D-Bus user session is set up before starting the script." |
324 |
- ewarn |
325 |
- if has_version 'media-sound/pulseaudio[daemon]' || has_version 'media-sound/pulseaudio-daemon'; then |
326 |
- elog "This ebuild auto-enables PulseAudio replacement. Because of that, users" |
327 |
- elog "are recommended to edit: ${EROOT}/etc/pulse/client.conf and disable" |
328 |
- elog "autospawning of the original daemon by setting:" |
329 |
- elog |
330 |
- elog " autospawn = no" |
331 |
- elog |
332 |
- elog "Please note that the semicolon (;) must _NOT_ be at the beginning of the line!" |
333 |
- elog |
334 |
- elog "Alternatively, if replacing PulseAudio daemon is not desired, edit" |
335 |
- elog "${EROOT}/usr/bin/gentoo-pipewire-launcher by commenting out the relevant" |
336 |
- elog "command:" |
337 |
- elog |
338 |
- elog "#${EROOT}/usr/bin/pipewire -c pipewire-pulse.conf &" |
339 |
- elog |
340 |
- fi |
341 |
- elog "NOTE:" |
342 |
- elog "Starting with PipeWire-0.3.30, this package is no longer installing its config" |
343 |
- elog "into ${EROOT}/etc/pipewire by default. In case you need to change" |
344 |
- elog "its config, please start by copying default config from ${EROOT}/usr/share/pipewire" |
345 |
- elog "and just override the sections you want to change." |
346 |
- fi |
347 |
- elog |
348 |
- |
349 |
- elog "For latest tips and tricks, troubleshooting information and documentation" |
350 |
- elog "in general, please refer to https://wiki.gentoo.org/wiki/PipeWire" |
351 |
- elog |
352 |
- |
353 |
- optfeature_header "The following can be installed for optional runtime features:" |
354 |
- optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit |
355 |
- |
356 |
- if has_version 'net-misc/ofono' ; then |
357 |
- ewarn "Native backend has become default. Please disable oFono via:" |
358 |
- if systemd_is_booted ; then |
359 |
- ewarn "systemctl disable ofono" |
360 |
- else |
361 |
- ewarn "rc-update delete ofono" |
362 |
- fi |
363 |
- ewarn |
364 |
- fi |
365 |
- |
366 |
- if use system-service; then |
367 |
- ewarn |
368 |
- ewarn "WARNING: you have enabled the system-service USE flag, which installs" |
369 |
- ewarn "the system-wide systemd units that enable PipeWire to run as a system" |
370 |
- ewarn "service. This is more than likely NOT what you want. You are strongly" |
371 |
- ewarn "advised not to enable this mode and instead stick with systemd user" |
372 |
- ewarn "units. The default configuration files will likely not work out of" |
373 |
- ewarn "box, and you are on your own with configuration." |
374 |
- ewarn |
375 |
- fi |
376 |
-} |