public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libpulse/, media-libs/libpulse/files/
@ 2022-02-21  0:52 Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2022-02-21  0:52 UTC (permalink / raw
  To: gentoo-commits

commit:     f26d2e1c7abab9d7e5d1bd0f13ca5f3c06f8e6a4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 21 00:51:13 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 21 00:51:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f26d2e1c

media-libs/libpulse: use tarball for patches

(I'd missed the same patches got added twice, so only fixed
the filesdir for pulseaudio-daemon.)

Fixes: 5c0932d5e4d591710f3299f70c2012383ab268bc
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libpulse/Manifest                       |    1 +
 ...pulseaudio-15.0-daemon-client-split-build.patch | 1987 --------------------
 ...-15.0-move-systemd-socket-activation-code.patch |  284 ---
 ...pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch |   25 -
 media-libs/libpulse/libpulse-15.0-r1.ebuild        |    7 +-
 5 files changed, 4 insertions(+), 2300 deletions(-)

diff --git a/media-libs/libpulse/Manifest b/media-libs/libpulse/Manifest
index 308d59508744..620fb8498703 100644
--- a/media-libs/libpulse/Manifest
+++ b/media-libs/libpulse/Manifest
@@ -1 +1,2 @@
 DIST pulseaudio-15.0.tar.xz 1521760 BLAKE2B a6f7b74fdcfe7f2a993eafb9f465946915a24b6801d3077971b9377290d6c70b3f8640a800abd09d5901db96a20349f31b1beedd9da2249f69b591fb8392f489 SHA512 352ef20384c76c631c0faa73b08e2318902a433712e0c086a5ac7a0ae58873c8d4be8f35879bdec71a93b19ae8e2ba073cacac4d56215bcf58375a0cd9d88833
+DIST pulseaudio-daemon-15.0-patchset-1.tar.bz2 13739 BLAKE2B 0a9497536481b79ebb9928fc753d44cde30b331890cf7a912f0e038fc270a79e4774fdca209a52b6d50de93e32c30c6636e4d7e57e9daceb90ee80e699599ac8 SHA512 04d98d2a1862cc65cc48837bd3c9d6c8ece4591966bc9d673c8273b445fc63dcc59d8aa891ae8c802ebacacdf56e2790a3f20a95009107c5e5cf6581d1f5f996

diff --git a/media-libs/libpulse/files/pulseaudio-15.0-daemon-client-split-build.patch b/media-libs/libpulse/files/pulseaudio-15.0-daemon-client-split-build.patch
deleted file mode 100644
index 8e3fbae40767..000000000000
--- a/media-libs/libpulse/files/pulseaudio-15.0-daemon-client-split-build.patch
+++ /dev/null
@@ -1,1987 +0,0 @@
-From 36a1aab8e61cf846a4ee571c19cf1ce8fd7eca9d Mon Sep 17 00:00:00 2001
-From: Mart Raudsepp <mart@leio.tech>
-Date: Fri, 24 Sep 2021 00:02:40 +0300
-Subject: [PATCH 1/8] build-sys: meson: Relax sanity checks for daemonless
- builds
-
-Echo canceller, udev and speex resampling is only used by the daemon, so
-don't error or warn about those in -Ddaemon=false builds.
-
-Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
----
- meson.build | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index a95fefcd4..d1c419ac2 100644
---- a/meson.build
-+++ b/meson.build
-@@ -961,7 +961,7 @@ message('\n    '.join(summary))
- 
- # Sanity checks
- 
--if not speex_dep.found() and not webrtc_dep.found() and not get_option('adrian-aec')
-+if get_option('daemon') and not speex_dep.found() and not webrtc_dep.found() and not get_option('adrian-aec')
-   error('At least one echo canceller implementation must be available!')
- endif
- 
-@@ -981,7 +981,7 @@ if host_machine.system() != 'windows'
-     ]
-     warning('\n' + '\n'.join(message))
-   endif
--  if host_machine.system() == 'linux' and not udev_dep.found()
-+  if host_machine.system() == 'linux' and not udev_dep.found() and get_option('daemon')
-     message = [
-       'You do not have udev support enabled. It is strongly recommended',
-       'that you enable udev support if your platform supports it as it is',
-@@ -990,7 +990,7 @@ if host_machine.system() != 'windows'
-     ]
-     warning('\n' + '\n'.join(message))
-   endif
--  if not speex_dep.found()
-+  if not speex_dep.found() and get_option('daemon')
-     message = [
-       'You do not have speex support enabled. It is strongly recommended',
-       'that you enable speex support if your platform supports it as it is',
--- 
-2.35.1
-
-
-From f63f3a9d7f311720dddef1f46e7c7431e3068c38 Mon Sep 17 00:00:00 2001
-From: Mart Raudsepp <mart@leio.tech>
-Date: Fri, 24 Sep 2021 15:19:05 +0300
-Subject: [PATCH 2/8] build-sys: meson: Allow building the daemon only
-
-Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
----
- man/meson.build                   |  2 ++
- meson.build                       | 23 ++++++++++++++++++++---
- meson_options.txt                 |  3 +++
- po/meson.build                    |  3 ---
- shell-completion/bash/meson.build |  2 ++
- src/daemon/meson.build            |  4 ++--
- src/meson.build                   | 11 +++++++++++
- src/modules/gsettings/meson.build |  3 +--
- src/tests/meson.build             |  9 +++++++--
- src/utils/meson.build             | 10 ++++++----
- 10 files changed, 54 insertions(+), 16 deletions(-)
-
-diff --git a/man/meson.build b/man/meson.build
-index 31c581a8f..c12ad5e6a 100644
---- a/man/meson.build
-+++ b/man/meson.build
-@@ -14,6 +14,7 @@ if get_option('daemon')
-   ]
- endif
- 
-+if not get_option('daemon-only')
- manpages += [
-   ['pacat', '1', ['paplay', 'parec', 'parecord', 'pamon']],
-   ['pactl', '1'],
-@@ -31,6 +32,7 @@ if x11_dep.found()
-     ['pax11publish', '1'],
-   ]
- endif
-+endif
- 
- # FIXME: Add esdcompat if HAVE_ESOUND
- #manpages += ['esdcompat', '1'],
-diff --git a/meson.build b/meson.build
-index d1c419ac2..b610a159c 100644
---- a/meson.build
-+++ b/meson.build
-@@ -53,6 +53,8 @@ libpulse_mainloop_glib_version = '@0@.@1@.@2@'.format(
-   libpulse_mainloop_glib_version_info[1],
- )
- 
-+i18n = import('i18n')
-+
- # Paths
- 
- prefix = get_option('prefix')
-@@ -68,6 +70,7 @@ localedir = join_paths(prefix, get_option('localedir'))
- localstatedir = join_paths(prefix, get_option('localstatedir'))
- sysconfdir = join_paths(prefix, get_option('sysconfdir'))
- privlibdir = join_paths(libdir, 'pulseaudio')
-+po_dir = join_paths(meson.current_source_dir(), 'po')
- 
- if host_machine.system() == 'windows'
-   # Windows only supports loading libraries from the same dir as the executable
-@@ -796,20 +799,28 @@ check_dep = dependency('check', version : '>= 0.9.10', required : get_option('te
- if get_option('doxygen')
-   subdir('doxygen')
- endif
--subdir('po')
-+if not get_option('daemon-only')
-+  subdir('po')
-+endif
- if get_option('man')
-   subdir('man')
- endif
- subdir('shell-completion/bash')
--subdir('shell-completion/zsh')
-+if not get_option('daemon-only')
-+  subdir('shell-completion/zsh')
-+endif
- subdir('src')
--subdir('vala')
-+if not get_option('daemon-only')
-+ subdir('vala')
-+endif
- 
- # Now generate config.h from everything above
- configure_file(output : 'config.h', configuration : cdata)
- 
- # pkg-config files
- 
-+if not get_option('daemon-only')
-+
- pc_cdata = configuration_data()
- 
- pc_cdata.set('prefix', prefix)
-@@ -842,8 +853,12 @@ foreach file : pc_files
-     install_dir : pkgconfigdir)
- endforeach
- 
-+endif # !daemon-only
-+
- # CMake files
- 
-+if not get_option('daemon-only')
-+
- m4 = find_program('m4', required: true)
- 
- cmakedir = join_paths(libdir, 'cmake', 'PulseAudio')
-@@ -872,6 +887,8 @@ configure_file(
-   install_dir : cmakedir,
- )
- 
-+endif # !daemon-only
-+
- ############################################################
- 
- # Final summary
-diff --git a/meson_options.txt b/meson_options.txt
-index bb41a42a7..62828ac5c 100644
---- a/meson_options.txt
-+++ b/meson_options.txt
-@@ -1,6 +1,9 @@
- option('daemon',
-        type : 'boolean', value : true,
-        description : 'Enable building and installation of pulseaudio daemon and supporting configuration files')
-+option('daemon-only',
-+       type : 'boolean', value : false,
-+       description : 'Build and install only the pulseaudio daemon and supporting configuration files, relying on a system installation of libpulse')
- option('doxygen',
-        type : 'boolean', value : true,
-        description : 'Enable building and installation of documentation generated with doxygen')
-diff --git a/po/meson.build b/po/meson.build
-index 34278db47..33429373c 100644
---- a/po/meson.build
-+++ b/po/meson.build
-@@ -1,4 +1,3 @@
--i18n = import('i18n')
- i18n.gettext(
-   meson.project_name(),
-   preset: 'glib',
-@@ -7,5 +6,3 @@ i18n.gettext(
-   args: ['--msgid-bugs-address=https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/new',
-          '--width=90'],
- )
--
--po_dir = meson.current_source_dir()
-diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build
-index 3ba5cb16f..83d90b94b 100644
---- a/shell-completion/bash/meson.build
-+++ b/shell-completion/bash/meson.build
-@@ -8,6 +8,7 @@ if bashcompletiondir != 'no'
-     ]
-   endif
- 
-+  if not get_option('daemon-only')
-   aliases += [
-     'pacat',
-     'pactl',
-@@ -16,6 +17,7 @@ if bashcompletiondir != 'no'
-     'parec',
-     'parecord',
-   ]
-+  endif
- 
-   install_data('pulseaudio', install_dir : bashcompletiondir)
- 
-diff --git a/src/daemon/meson.build b/src/daemon/meson.build
-index 262e193b2..e8f70a453 100644
---- a/src/daemon/meson.build
-+++ b/src/daemon/meson.build
-@@ -30,8 +30,8 @@ executable('pulseaudio',
-   install_rpath : privlibdir,
-   include_directories : [configinc, topinc],
-   link_args : ['-ffast-math'],
--  link_with : [libpulsecore, libpulsecommon, libpulse],
--  dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep, platform_dep, platform_socket_dep],
-+  link_with : [libpulsecore],
-+  dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep, platform_dep, platform_socket_dep, libpulsecommon_dep, libpulse_dep],
-   c_args : pa_c_args,
- )
- 
-diff --git a/src/meson.build b/src/meson.build
-index 59a9b16bf..ce56dbfe3 100644
---- a/src/meson.build
-+++ b/src/meson.build
-@@ -186,6 +186,15 @@ else
- endif
- # FIXME: Do SIMD things
- 
-+if get_option('daemon-only')
-+  libpulsecommon_dep = cc.find_library('pulsecommon-' + pa_version_major_minor, dirs : privlibdir, required : true)
-+  libpulse_dep = dependency('libpulse', required : true)
-+  libpulse_simple_dep = dependency('libpulse-simple', required : true)
-+  if glib_dep.found()
-+    libpulse_mainloop_glib_dep = dependency('libpulse-mainloop-glib', required : true)
-+  endif
-+else
-+
- libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
-   libpulsecommon_sources,
-   libpulsecommon_headers,
-@@ -205,6 +214,8 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
- libpulsecommon_dep = declare_dependency(link_with: libpulsecommon)
- 
- subdir('pulse')
-+endif
-+
- if get_option('daemon')
-   subdir('pulsecore')
-   subdir('daemon')
-diff --git a/src/modules/gsettings/meson.build b/src/modules/gsettings/meson.build
-index 68a72c3ff..9604699e7 100644
---- a/src/modules/gsettings/meson.build
-+++ b/src/modules/gsettings/meson.build
-@@ -8,8 +8,7 @@ gsettings_helper = executable('gsettings-helper',
-   gsettings_helper_sources,
-   c_args : pa_c_args,
-   include_directories : [configinc, topinc],
--  link_with : [libpulsecommon, libpulse],
--  dependencies : [gio_dep],
-+  dependencies : [gio_dep, libpulsecommon_dep, libpulse_dep],
-   install_dir : pulselibexecdir,
-   install_rpath : privlibdir,
-   install : true,
-diff --git a/src/tests/meson.build b/src/tests/meson.build
-index acd301037..56d71299f 100644
---- a/src/tests/meson.build
-+++ b/src/tests/meson.build
-@@ -20,8 +20,6 @@ default_tests += [
-     [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-   [ 'json-test', 'json-test.c',
-     [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
--  [ 'mainloop-test', 'mainloop-test.c',
--    [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-   [ 'proplist-test', 'proplist-test.c',
-     [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-   [ 'thread-mainloop-test', 'thread-mainloop-test.c',
-@@ -32,6 +30,13 @@ default_tests += [
-     [ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
- ]
- 
-+if not get_option('daemon-only')
-+  default_tests += [
-+    [ 'mainloop-test', 'mainloop-test.c',
-+      [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-+  ]
-+endif
-+
- if get_option('daemon')
-   default_tests += [
-     [ 'asyncmsgq-test', 'asyncmsgq-test.c',
-diff --git a/src/utils/meson.build b/src/utils/meson.build
-index c9635fdb6..7ed6e738f 100644
---- a/src/utils/meson.build
-+++ b/src/utils/meson.build
-@@ -1,3 +1,4 @@
-+if not get_option('daemon-only')
- pacat_sources = [
-   'pacat.c',
- ]
-@@ -41,6 +42,7 @@ executable('pactl',
-   dependencies : [sndfile_dep, libintl_dep],
-   c_args : pa_c_args,
- )
-+endif
- 
- if get_option('daemon')
-   if host_machine.system() != 'windows'
-@@ -53,8 +55,7 @@ if get_option('daemon')
-       install: true,
-       install_rpath : privlibdir,
-       include_directories : [configinc, topinc],
--      link_with : [libpulsecommon, libpulse],
--      dependencies: [libintl_dep],
-+      dependencies: [libintl_dep, libpulsecommon_dep, libpulse_dep],
-       c_args : pa_c_args,
-     )
- 
-@@ -67,13 +68,13 @@ if get_option('daemon')
-       install: true,
-       install_rpath : privlibdir,
-       include_directories : [configinc, topinc],
--      link_with : [libpulsecommon, libpulse],
--      dependencies: [libintl_dep],
-+      dependencies: [libintl_dep, libpulsecommon_dep, libpulse_dep],
-       c_args : pa_c_args,
-     )
-   endif
- endif
- 
-+if not get_option('daemon-only')
- if x11_dep.found()
-   pax11publish_sources = [
-     'pax11publish.c',
-@@ -121,3 +122,4 @@ if dbus_dep.found() and fftw_dep.found()
- endif
- 
- install_data('pa-info', install_dir : bindir)
-+endif
--- 
-2.35.1
-
-
-From c3dba1988c18c59a49a2e3e3fa1451f4fa5db0ce Mon Sep 17 00:00:00 2001
-From: "Igor V. Kovalenko" <igor.v.kovalenko@gmail.com>
-Date: Thu, 4 Nov 2021 16:35:19 +0300
-Subject: [PATCH 3/8] build-sys: meson: change daemon-only to client
-
-Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
----
- man/meson.build                   |  2 +-
- meson.build                       | 14 +++++++-------
- meson_options.txt                 |  6 +++---
- shell-completion/bash/meson.build |  2 +-
- src/meson.build                   |  2 +-
- src/tests/meson.build             |  2 +-
- src/utils/meson.build             |  4 ++--
- 7 files changed, 16 insertions(+), 16 deletions(-)
-
-diff --git a/man/meson.build b/man/meson.build
-index c12ad5e6a..9b42c2a69 100644
---- a/man/meson.build
-+++ b/man/meson.build
-@@ -14,7 +14,7 @@ if get_option('daemon')
-   ]
- endif
- 
--if not get_option('daemon-only')
-+if get_option('client')
- manpages += [
-   ['pacat', '1', ['paplay', 'parec', 'parecord', 'pamon']],
-   ['pactl', '1'],
-diff --git a/meson.build b/meson.build
-index b610a159c..ded6669b1 100644
---- a/meson.build
-+++ b/meson.build
-@@ -799,18 +799,18 @@ check_dep = dependency('check', version : '>= 0.9.10', required : get_option('te
- if get_option('doxygen')
-   subdir('doxygen')
- endif
--if not get_option('daemon-only')
-+if get_option('client')
-   subdir('po')
- endif
- if get_option('man')
-   subdir('man')
- endif
- subdir('shell-completion/bash')
--if not get_option('daemon-only')
-+if get_option('client')
-   subdir('shell-completion/zsh')
- endif
- subdir('src')
--if not get_option('daemon-only')
-+if get_option('client')
-  subdir('vala')
- endif
- 
-@@ -819,7 +819,7 @@ configure_file(output : 'config.h', configuration : cdata)
- 
- # pkg-config files
- 
--if not get_option('daemon-only')
-+if get_option('client')
- 
- pc_cdata = configuration_data()
- 
-@@ -853,11 +853,11 @@ foreach file : pc_files
-     install_dir : pkgconfigdir)
- endforeach
- 
--endif # !daemon-only
-+endif # client
- 
- # CMake files
- 
--if not get_option('daemon-only')
-+if get_option('client')
- 
- m4 = find_program('m4', required: true)
- 
-@@ -887,7 +887,7 @@ configure_file(
-   install_dir : cmakedir,
- )
- 
--endif # !daemon-only
-+endif # client
- 
- ############################################################
- 
-diff --git a/meson_options.txt b/meson_options.txt
-index 62828ac5c..f7e413d1f 100644
---- a/meson_options.txt
-+++ b/meson_options.txt
-@@ -1,9 +1,9 @@
- option('daemon',
-        type : 'boolean', value : true,
-        description : 'Enable building and installation of pulseaudio daemon and supporting configuration files')
--option('daemon-only',
--       type : 'boolean', value : false,
--       description : 'Build and install only the pulseaudio daemon and supporting configuration files, relying on a system installation of libpulse')
-+option('client',
-+       type : 'boolean', value : true,
-+       description : 'Build and install pulseaudio client libraries and utilities')
- option('doxygen',
-        type : 'boolean', value : true,
-        description : 'Enable building and installation of documentation generated with doxygen')
-diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build
-index 83d90b94b..1d5a8cdab 100644
---- a/shell-completion/bash/meson.build
-+++ b/shell-completion/bash/meson.build
-@@ -8,7 +8,7 @@ if bashcompletiondir != 'no'
-     ]
-   endif
- 
--  if not get_option('daemon-only')
-+  if get_option('client')
-   aliases += [
-     'pacat',
-     'pactl',
-diff --git a/src/meson.build b/src/meson.build
-index ce56dbfe3..f285fdf45 100644
---- a/src/meson.build
-+++ b/src/meson.build
-@@ -186,7 +186,7 @@ else
- endif
- # FIXME: Do SIMD things
- 
--if get_option('daemon-only')
-+if not get_option('client')
-   libpulsecommon_dep = cc.find_library('pulsecommon-' + pa_version_major_minor, dirs : privlibdir, required : true)
-   libpulse_dep = dependency('libpulse', required : true)
-   libpulse_simple_dep = dependency('libpulse-simple', required : true)
-diff --git a/src/tests/meson.build b/src/tests/meson.build
-index 56d71299f..b76da26cb 100644
---- a/src/tests/meson.build
-+++ b/src/tests/meson.build
-@@ -30,7 +30,7 @@ default_tests += [
-     [ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
- ]
- 
--if not get_option('daemon-only')
-+if get_option('client')
-   default_tests += [
-     [ 'mainloop-test', 'mainloop-test.c',
-       [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-diff --git a/src/utils/meson.build b/src/utils/meson.build
-index 7ed6e738f..f67cff4a9 100644
---- a/src/utils/meson.build
-+++ b/src/utils/meson.build
-@@ -1,4 +1,4 @@
--if not get_option('daemon-only')
-+if get_option('client')
- pacat_sources = [
-   'pacat.c',
- ]
-@@ -74,7 +74,7 @@ if get_option('daemon')
-   endif
- endif
- 
--if not get_option('daemon-only')
-+if get_option('client')
- if x11_dep.found()
-   pax11publish_sources = [
-     'pax11publish.c',
--- 
-2.35.1
-
-
-From 1cb8c867c7cfff71f29f4eb508b92c5139669f33 Mon Sep 17 00:00:00 2001
-From: "Igor V. Kovalenko" <igor.v.kovalenko@gmail.com>
-Date: Thu, 4 Nov 2021 19:33:32 +0300
-Subject: [PATCH 4/8] build-sys: meson: Move remaining tests under daemon and
- client builds
-
-Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
----
- src/tests/meson.build | 126 +++++++++++++++++++++---------------------
- 1 file changed, 62 insertions(+), 64 deletions(-)
-
-diff --git a/src/tests/meson.build b/src/tests/meson.build
-index b76da26cb..05922a582 100644
---- a/src/tests/meson.build
-+++ b/src/tests/meson.build
-@@ -9,32 +9,47 @@
- 
- default_tests = []
- 
--default_tests += [
--  [ 'channelmap-test', 'channelmap-test.c',
--    [ check_dep, libpulse_dep ] ],
--  [ 'core-util-test', 'core-util-test.c',
--    [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
--  [ 'get-binary-name-test', 'get-binary-name-test.c',
--    [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
--  [ 'hashmap-test', 'hashmap-test.c',
--    [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
--  [ 'json-test', 'json-test.c',
--    [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
--  [ 'proplist-test', 'proplist-test.c',
--    [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
--  [ 'thread-mainloop-test', 'thread-mainloop-test.c',
--    [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
--  [ 'utf8-test', 'utf8-test.c',
--    [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
--  [ 'volume-test', 'volume-test.c',
--    [ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
--]
--
- if get_option('client')
-+  default_tests += [
-+    [ 'channelmap-test', 'channelmap-test.c',
-+      [ check_dep, libpulse_dep ] ],
-+    [ 'core-util-test', 'core-util-test.c',
-+      [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-+    [ 'get-binary-name-test', 'get-binary-name-test.c',
-+      [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-+    [ 'hashmap-test', 'hashmap-test.c',
-+      [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-+    [ 'json-test', 'json-test.c',
-+      [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-+    [ 'proplist-test', 'proplist-test.c',
-+      [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-+    [ 'thread-mainloop-test', 'thread-mainloop-test.c',
-+      [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-+    [ 'utf8-test', 'utf8-test.c',
-+      [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-+    [ 'volume-test', 'volume-test.c',
-+      [ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
-+  ]
-+
-   default_tests += [
-     [ 'mainloop-test', 'mainloop-test.c',
-       [ check_dep, libpulse_dep, libpulsecommon_dep ] ],
-   ]
-+
-+  if cc.has_header('sys/eventfd.h')
-+    default_tests += [
-+      [ 'srbchannel-test', 'srbchannel-test.c',
-+        [ check_dep, libpulse_dep, libpulsecommon_dep ] ]
-+    ]
-+  endif
-+
-+  if glib_dep.found()
-+    default_tests += [
-+      [ 'mainloop-test-glib', 'mainloop-test.c',
-+        [ check_dep, glib_dep, libpulse_dep, libpulsecommon_dep, libpulse_mainloop_glib_dep ],
-+        [], ['-DGLIB_MAIN_LOOP'] ]
-+    ]
-+  endif
- endif
- 
- if get_option('daemon')
-@@ -101,16 +116,6 @@ if get_option('daemon')
-     ]
-   endif
- 
--endif
--
--if cc.has_header('sys/eventfd.h')
--  default_tests += [
--    [ 'srbchannel-test', 'srbchannel-test.c',
--      [ check_dep, libpulse_dep, libpulsecommon_dep ] ]
--  ]
--endif
--
--if get_option('daemon')
-   if alsa_dep.found()
-     default_tests += [
-       [ 'alsa-mixer-path-test', 'alsa-mixer-path-test.c',
-@@ -120,23 +125,24 @@ if get_option('daemon')
-   endif
- endif
- 
--if glib_dep.found()
--  default_tests += [
--    [ 'mainloop-test-glib', 'mainloop-test.c',
--      [ check_dep, glib_dep, libpulse_dep, libpulsecommon_dep, libpulse_mainloop_glib_dep ],
--      [], ['-DGLIB_MAIN_LOOP'] ]
--  ]
--endif
--
- # No-run tests
- norun_tests = []
- 
--norun_tests += [
--  [ 'pacat-simple', 'pacat-simple.c',
--    [ libpulse_dep, libpulse_simple_dep ] ],
--  [ 'parec-simple', 'parec-simple.c',
--    [ libpulse_dep, libpulse_simple_dep ] ],
--]
-+if get_option('client')
-+  norun_tests += [
-+    [ 'pacat-simple', 'pacat-simple.c',
-+      [ libpulse_dep, libpulse_simple_dep ] ],
-+    [ 'parec-simple', 'parec-simple.c',
-+      [ libpulse_dep, libpulse_simple_dep ] ],
-+  ]
-+
-+  if gtk_dep.found() and glib_dep.found()
-+    norun_tests += [
-+      [ 'gtk-test', 'gtk-test.c',
-+        [ gtk_dep, libpulse_dep, libpulse_mainloop_glib_dep ] ]
-+    ]
-+  endif
-+endif
- 
- if get_option('daemon')
-   norun_tests += [
-@@ -182,26 +188,18 @@ if get_option('daemon')
-     ]
-   endif
- 
--endif
--
--if cc.has_function('pthread_setaffinity_np', dependencies : thread_dep)
--  norun_tests += [
--    [ 'atomic-test', 'atomic-test.c',
--      [ check_dep, libpulsecommon_dep, thread_dep ] ]
--  ]
--endif
--
--if alsa_dep.found()
--  norun_tests += [
--    [ 'alsa-time-test', 'alsa-time-test.c', [ alsa_dep, thread_dep ] ]
--  ]
--endif
-+  if cc.has_function('pthread_setaffinity_np', dependencies : thread_dep)
-+    norun_tests += [
-+      [ 'atomic-test', 'atomic-test.c',
-+        [ check_dep, libpulsecommon_dep, thread_dep ] ]
-+    ]
-+  endif
- 
--if gtk_dep.found() and glib_dep.found()
--  norun_tests += [
--    [ 'gtk-test', 'gtk-test.c',
--      [ gtk_dep, libpulse_dep, libpulse_mainloop_glib_dep ] ]
--  ]
-+  if alsa_dep.found()
-+    norun_tests += [
-+      [ 'alsa-time-test', 'alsa-time-test.c', [ alsa_dep, thread_dep ] ]
-+    ]
-+  endif
- endif
- 
- # Generate tests
--- 
-2.35.1
-
-
-From c283edc0bac45b2f5efba810e2ccd1d37b54b2ae Mon Sep 17 00:00:00 2001
-From: "Igor V. Kovalenko" <igor.v.kovalenko@gmail.com>
-Date: Thu, 4 Nov 2021 20:12:03 +0300
-Subject: [PATCH 5/8] build-sys: meson: Rearrange dependencies under client and
- daemon options
-
-Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
----
- meson.build     | 492 +++++++++++++++++++++++++-----------------------
- src/meson.build |   3 -
- 2 files changed, 258 insertions(+), 237 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index ded6669b1..3afc31c9b 100644
---- a/meson.build
-+++ b/meson.build
-@@ -568,227 +568,237 @@ if host_machine.cpu_family() == 'arm'
- endif
- # NEON checks are automatically done by the unstable-simd module
- 
--if get_option('daemon')
--  # FIXME: make sure it's >= 2.2
--  ltdl_dep = cc.find_library('ltdl', required : true)
--endif
--
--# FIXME: can meson support libtool -dlopen/-dlpreopen things?
--#        and do we still want to support this at all?
--cdata.set('DISABLE_LIBTOOL_PRELOAD', 1)
--
--if get_option('database') == 'tdb'
--  database_dep = dependency('tdb')
--elif get_option('database') == 'gdbm'
--  database_dep = cc.find_library('gdbm', required : true)
--else
--  database_dep = dependency('', required: false)
--endif
-+# Dependencies common to client, daemon and modules
- 
- if get_option('ipv6')
-   cdata.set('HAVE_IPV6', 1)
- endif
- 
--if get_option('legacy-database-entry-format')
--  cdata.set('ENABLE_LEGACY_DATABASE_ENTRY_FORMAT', 1)
--endif
--
--if get_option('stream-restore-clear-old-devices')
--  cdata.set('STREAM_RESTORE_CLEAR_OLD_DEVICES', 1)
--endif
--
--if get_option('running-from-build-tree')
--  cdata.set('HAVE_RUNNING_FROM_BUILD_TREE', 1)
--endif
--
--alsa_dep = dependency('alsa', version : '>= 1.0.24', required : get_option('alsa'))
--if alsa_dep.found()
--  cdata.set('HAVE_ALSA', 1)
--  cdata.set('HAVE_ALSA_UCM', 1)
--endif
--
--asyncns_dep = dependency('libasyncns', version : '>= 0.1', required : get_option('asyncns'))
--if asyncns_dep.found()
--  cdata.set('HAVE_LIBASYNCNS', 1)
--endif
--
- dbus_dep = dependency('dbus-1', version : '>= 1.4.12', required : get_option('dbus'))
- if dbus_dep.found()
-   cdata.set('HAVE_DBUS', 1)
- endif
- 
--gio_dep = dependency('gio-2.0', version : '>= 2.26.0')
--if get_option('gsettings').enabled()
--  assert(gio_dep.found(), 'GSettings support needs glib I/O library (GIO)')
--  cdata.set('HAVE_GSETTINGS', 1)
--else
--  cdata.set('HAVE_GSETTINGS', 0)
--endif
--
--glib_dep = dependency('glib-2.0', version : '>= 2.28.0', required: get_option('glib'))
--if glib_dep.found()
--  cdata.set('HAVE_GLIB', 1)
--endif
--
--gtk_dep = dependency('gtk+-3.0', required : get_option('gtk'))
--if gtk_dep.found()
--  cdata.set('HAVE_GTK', 1)
--endif
--
--have_orcc = false
--orcc_args = []
--orc_dep = dependency('orc-0.4', version : '>= 0.4.11', required : get_option('orc'))
--orcc = find_program('orcc', required : get_option('orc'))
--if orc_dep.found() and orcc.found()
--  have_orcc = true
--  orcc_args = [orcc]
--  #orcc_args = [orcc, '--include', 'glib.h']
--  cdata.set('HAVE_ORC', 1)
--else
--  cdata.set('DISABLE_ORC', 1)
--endif
--
--samplerate_dep = dependency('samplerate', version : '>= 0.1.0', required : get_option('samplerate'))
--if samplerate_dep.found()
--  cdata.set('HAVE_LIBSAMPLERATE', 1)
--endif
--
- sndfile_dep = dependency('sndfile', version : '>= 1.0.20')
- 
--soxr_dep = dependency('soxr', version : '>= 0.1.1', required : get_option('soxr'))
--if soxr_dep.found()
--  cdata.set('HAVE_SOXR', 1)
--endif
--
- libsystemd_dep = dependency('libsystemd', required : get_option('systemd'))
- if libsystemd_dep.found()
-   cdata.set('HAVE_SYSTEMD_DAEMON', 1)
-   cdata.set('HAVE_SYSTEMD_LOGIN', 1)
-   cdata.set('HAVE_SYSTEMD_JOURNAL', 1)
- endif
--systemd_dep = dependency('systemd', required : get_option('systemd'))
--if systemd_dep.found() and systemduserunitdir == ''
--  systemduserunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir')
--endif
--
--libelogind_dep = dependency('libelogind', required : get_option('elogind'))
--if libelogind_dep.found()
--  cdata.set('HAVE_SYSTEMD_LOGIN', 1)
--endif
--
--tcpwrap_dep = cc.find_library('wrap', required: get_option('tcpwrap'))
--if cc.has_header('tcpd.h') and cc.has_function('hosts_access', dependencies : tcpwrap_dep)
--  cdata.set('HAVE_LIBWRAP', 1)
--endif
- 
- x11_dep = dependency('x11-xcb', required : get_option('x11'))
--if x11_dep.found()
--  xcb_dep  = dependency('xcb',  required : true, version : '>= 1.6')
--  ice_dep  = dependency('ice',  required : get_option('daemon'))
--  sm_dep   = dependency('sm',   required : get_option('daemon'))
--  xtst_dep = dependency('xtst', required : get_option('daemon'))
--  cdata.set('HAVE_X11', 1)
--  if cc.has_function('XSetIOErrorExitHandler', dependencies: x11_dep)
--    cdata.set('HAVE_XSETIOERROREXITHANDLER', 1)
--  endif
--endif
- 
--# Module dependencies
-+# OSS support
- if cc.has_header('sys/soundcard.h', required: get_option('oss-output'))
-+  # OSS output via daemon module-detect
-   cdata.set('HAVE_OSS_OUTPUT', 1)
-+  # OSS wrapper
-   cdata.set('HAVE_OSS_WRAPPER', 1)
-   cdata.set('PULSEDSP_LOCATION', pulsedsp_location)
- endif
- 
--if get_option('hal-compat')
--  cdata.set('HAVE_HAL_COMPAT', 1)
--endif
-+# Client library dependencies
- 
--avahi_dep = dependency('avahi-client', version : '>= 0.6.0', required : get_option('avahi'), disabler : true)
--if avahi_dep.found()
--  cdata.set('HAVE_AVAHI', 1)
--else
--  cdata.set('HAVE_AVAHI', 0)
-+if get_option('client')
-+  asyncns_dep = dependency('libasyncns', version : '>= 0.1', required : get_option('asyncns'))
-+  if asyncns_dep.found()
-+    cdata.set('HAVE_LIBASYNCNS', 1)
-+  endif
-+
-+  glib_dep = dependency('glib-2.0', version : '>= 2.28.0', required: get_option('glib'))
-+  if glib_dep.found()
-+    cdata.set('HAVE_GLIB', 1)
-+    cdata.set('HAVE_GLIB20', 1) # to match the AM_CONDITIONAL for CMake file generation
-+  endif
-+
-+  gtk_dep = dependency('gtk+-3.0', required : get_option('gtk'))
-+  if gtk_dep.found()
-+    cdata.set('HAVE_GTK', 1)
-+  endif
- endif
- 
--sbc_dep = dependency('sbc', version : '>= 1.0', required : false)
-+# Daemon and module dependencies
- 
--bluez_dep = dependency('bluez', required : get_option('bluez5'))
-+if get_option('daemon')
-+  # FIXME: make sure it's >= 2.2
-+  ltdl_dep = cc.find_library('ltdl', required : true)
- 
--if bluez_dep.found()
--  assert(dbus_dep.found(), 'BlueZ requires D-Bus support')
--  assert(sbc_dep.found(), 'BlueZ requires SBC support')
--  cdata.set('HAVE_SBC', 1)
--  cdata.set('HAVE_BLUEZ', 1)
--  cdata.set('HAVE_BLUEZ_5', 1)
--  if get_option('bluez5-native-headset')
--    cdata.set('HAVE_BLUEZ_5_NATIVE_HEADSET', 1)
-+  # FIXME: can meson support libtool -dlopen/-dlpreopen things?
-+  #        and do we still want to support this at all?
-+  cdata.set('DISABLE_LIBTOOL_PRELOAD', 1)
-+
-+  if get_option('database') == 'tdb'
-+    database_dep = dependency('tdb')
-+  elif get_option('database') == 'gdbm'
-+    database_dep = cc.find_library('gdbm', required : true)
-+  else
-+    database_dep = dependency('', required: false)
-   endif
--  if get_option('bluez5-ofono-headset')
--    cdata.set('HAVE_BLUEZ_5_OFONO_HEADSET', 1)
-+
-+  if get_option('legacy-database-entry-format')
-+    cdata.set('ENABLE_LEGACY_DATABASE_ENTRY_FORMAT', 1)
-   endif
--endif
- 
--fftw_dep = dependency('fftw3f', required : get_option('fftw'))
--if fftw_dep.found()
--  cdata.set('HAVE_FFTW', 1)
--endif
-+  if get_option('stream-restore-clear-old-devices')
-+    cdata.set('STREAM_RESTORE_CLEAR_OLD_DEVICES', 1)
-+  endif
- 
--jack_dep = dependency('jack', version : '>= 0.117.0', required : get_option('jack'))
--if jack_dep.found()
--  cdata.set('HAVE_JACK', 1)
--endif
-+  if get_option('running-from-build-tree')
-+    cdata.set('HAVE_RUNNING_FROM_BUILD_TREE', 1)
-+  endif
- 
--lirc_dep = dependency('lirc', required : get_option('lirc'))
--if lirc_dep.found()
--  cdata.set('HAVE_LIRC', 1)
--endif
-+  alsa_dep = dependency('alsa', version : '>= 1.0.24', required : get_option('alsa'))
-+  if alsa_dep.found()
-+    cdata.set('HAVE_ALSA', 1)
-+    cdata.set('HAVE_ALSA_UCM', 1)
-+  endif
- 
--openssl_dep = dependency('openssl', version : '>= 0.9', required : get_option('openssl'))
--if openssl_dep.found()
--  cdata.set('HAVE_OPENSSL', 1)
--endif
-+  gio_dep = dependency('gio-2.0', version : '>= 2.26.0')
-+  if get_option('gsettings').enabled()
-+    assert(gio_dep.found(), 'GSettings support needs glib I/O library (GIO)')
-+    cdata.set('HAVE_GSETTINGS', 1)
-+  else
-+    cdata.set('HAVE_GSETTINGS', 0)
-+  endif
- 
--speex_dep = dependency('speexdsp', version : '>= 1.2', required : get_option('speex'))
--if speex_dep.found()
--  cdata.set('HAVE_SPEEX', 1)
--endif
-+  have_orcc = false
-+  orcc_args = []
-+  orc_dep = dependency('orc-0.4', version : '>= 0.4.11', required : get_option('orc'))
-+  orcc = find_program('orcc', required : get_option('orc'))
-+  if orc_dep.found() and orcc.found()
-+    have_orcc = true
-+    orcc_args = [orcc]
-+    #orcc_args = [orcc, '--include', 'glib.h']
-+    cdata.set('HAVE_ORC', 1)
-+  else
-+    cdata.set('DISABLE_ORC', 1)
-+  endif
- 
--udev_dep = dependency('libudev', version : '>= 143', required : get_option('udev'))
--if udev_dep.found()
--  cdata.set('HAVE_UDEV', 1)
--endif
-+  samplerate_dep = dependency('samplerate', version : '>= 0.1.0', required : get_option('samplerate'))
-+  if samplerate_dep.found()
-+    cdata.set('HAVE_LIBSAMPLERATE', 1)
-+  endif
- 
--webrtc_dep = dependency('webrtc-audio-processing', version : '>= 0.2', required : get_option('webrtc-aec'))
--if webrtc_dep.found()
--  cdata.set('HAVE_WEBRTC', 1)
--endif
-+  speex_dep = dependency('speexdsp', version : '>= 1.2', required : get_option('speex'))
-+  if speex_dep.found()
-+    cdata.set('HAVE_SPEEX', 1)
-+  endif
- 
--gst_dep = dependency('gstreamer-1.0', version : '>= 1.14', required : get_option('gstreamer'))
--gstapp_dep = dependency('gstreamer-app-1.0', required : get_option('gstreamer'))
--gstrtp_dep = dependency('gstreamer-rtp-1.0', required : get_option('gstreamer'))
-+  soxr_dep = dependency('soxr', version : '>= 0.1.1', required : get_option('soxr'))
-+  if soxr_dep.found()
-+    cdata.set('HAVE_SOXR', 1)
-+  endif
- 
--have_gstreamer = false
--if gst_dep.found() and gstapp_dep.found() and gstrtp_dep.found()
--  assert(gio_dep.found(), 'GStreamer-based RTP needs glib I/O library (GIO)')
--  have_gstreamer = true
--endif
-+  webrtc_dep = dependency('webrtc-audio-processing', version : '>= 0.2', required : get_option('webrtc-aec'))
-+  if webrtc_dep.found()
-+    cdata.set('HAVE_WEBRTC', 1)
-+  endif
- 
--bluez5_gst_dep = dependency('gstreamer-1.0', version : '>= 1.14', required : get_option('bluez5-gstreamer'))
--bluez5_gstapp_dep = dependency('gstreamer-app-1.0', required : get_option('bluez5-gstreamer'))
--have_bluez5_gstreamer = false
--if bluez5_gst_dep.found() and bluez5_gstapp_dep.found()
--  have_bluez5_gstreamer = true
--  cdata.set('HAVE_GSTLDAC', 1)
--  cdata.set('HAVE_GSTAPTX', 1)
-+  systemd_dep = dependency('systemd', required : get_option('systemd'))
-+  if systemd_dep.found() and systemduserunitdir == ''
-+    systemduserunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir')
-+  endif
-+
-+  libelogind_dep = dependency('libelogind', required : get_option('elogind'))
-+  if libelogind_dep.found()
-+    cdata.set('HAVE_SYSTEMD_LOGIN', 1)
-+  endif
-+
-+  tcpwrap_dep = cc.find_library('wrap', required: get_option('tcpwrap'))
-+  if cc.has_header('tcpd.h') and cc.has_function('hosts_access', dependencies : tcpwrap_dep)
-+    cdata.set('HAVE_LIBWRAP', 1)
-+  endif
-+
-+  if x11_dep.found()
-+    xcb_dep  = dependency('xcb',  required : true, version : '>= 1.6')
-+    ice_dep  = dependency('ice',  required : true)
-+    sm_dep   = dependency('sm',   required : true)
-+    xtst_dep = dependency('xtst', required : true)
-+    cdata.set('HAVE_X11', 1)
-+    if cc.has_function('XSetIOErrorExitHandler', dependencies: x11_dep)
-+      cdata.set('HAVE_XSETIOERROREXITHANDLER', 1)
-+    endif
-+  endif
-+
-+  avahi_dep = dependency('avahi-client', version : '>= 0.6.0', required : get_option('avahi'), disabler : true)
-+  if avahi_dep.found()
-+    cdata.set('HAVE_AVAHI', 1)
-+  else
-+    cdata.set('HAVE_AVAHI', 0)
-+  endif
-+
-+  sbc_dep = dependency('sbc', version : '>= 1.0', required : false)
-+
-+  bluez_dep = dependency('bluez', required : get_option('bluez5'))
-+
-+  if bluez_dep.found()
-+    assert(dbus_dep.found(), 'BlueZ requires D-Bus support')
-+    assert(sbc_dep.found(), 'BlueZ requires SBC support')
-+    cdata.set('HAVE_SBC', 1)
-+    cdata.set('HAVE_BLUEZ', 1)
-+    cdata.set('HAVE_BLUEZ_5', 1)
-+    if get_option('bluez5-native-headset')
-+      cdata.set('HAVE_BLUEZ_5_NATIVE_HEADSET', 1)
-+    endif
-+    if get_option('bluez5-ofono-headset')
-+      cdata.set('HAVE_BLUEZ_5_OFONO_HEADSET', 1)
-+    endif
-+  endif
-+
-+  fftw_dep = dependency('fftw3f', required : get_option('fftw'))
-+  if fftw_dep.found()
-+    cdata.set('HAVE_FFTW', 1)
-+  endif
-+
-+  jack_dep = dependency('jack', version : '>= 0.117.0', required : get_option('jack'))
-+  if jack_dep.found()
-+    cdata.set('HAVE_JACK', 1)
-+  endif
-+
-+  lirc_dep = dependency('lirc', required : get_option('lirc'))
-+  if lirc_dep.found()
-+    cdata.set('HAVE_LIRC', 1)
-+  endif
-+
-+  openssl_dep = dependency('openssl', version : '>= 0.9', required : get_option('openssl'))
-+  if openssl_dep.found()
-+    cdata.set('HAVE_OPENSSL', 1)
-+  endif
-+
-+  udev_dep = dependency('libudev', version : '>= 143', required : get_option('udev'))
-+  if udev_dep.found()
-+    cdata.set('HAVE_UDEV', 1)
-+  endif
-+
-+  if get_option('hal-compat')
-+    cdata.set('HAVE_HAL_COMPAT', 1)
-+  endif
-+
-+  gst_dep = dependency('gstreamer-1.0', version : '>= 1.14', required : get_option('gstreamer'))
-+  gstapp_dep = dependency('gstreamer-app-1.0', required : get_option('gstreamer'))
-+  gstrtp_dep = dependency('gstreamer-rtp-1.0', required : get_option('gstreamer'))
-+
-+  have_gstreamer = false
-+  if gst_dep.found() and gstapp_dep.found() and gstrtp_dep.found()
-+    assert(gio_dep.found(), 'GStreamer-based RTP needs glib I/O library (GIO)')
-+    have_gstreamer = true
-+  endif
-+
-+  bluez5_gst_dep = dependency('gstreamer-1.0', version : '>= 1.14', required : get_option('bluez5-gstreamer'))
-+  bluez5_gstapp_dep = dependency('gstreamer-app-1.0', required : get_option('bluez5-gstreamer'))
-+  have_bluez5_gstreamer = false
-+  if bluez5_gst_dep.found() and bluez5_gstapp_dep.found()
-+    have_bluez5_gstreamer = true
-+    cdata.set('HAVE_GSTLDAC', 1)
-+    cdata.set('HAVE_GSTAPTX', 1)
-+  endif
- endif
- 
- # These are required for the CMake file generation
- cdata.set('PA_LIBDIR', libdir)
- cdata.set('PA_INCDIR', includedir)
--if glib_dep.found()
--  cdata.set('HAVE_GLIB20', 1) # to match the AM_CONDITIONAL for CMake file generation
--endif
- 
- # Test dependencies
- 
-@@ -817,10 +827,10 @@ endif
- # Now generate config.h from everything above
- configure_file(output : 'config.h', configuration : cdata)
- 
--# pkg-config files
--
- if get_option('client')
- 
-+# pkg-config files
-+
- pc_cdata = configuration_data()
- 
- pc_cdata.set('prefix', prefix)
-@@ -853,12 +863,8 @@ foreach file : pc_files
-     install_dir : pkgconfigdir)
- endforeach
- 
--endif # client
--
- # CMake files
- 
--if get_option('client')
--
- m4 = find_program('m4', required: true)
- 
- cmakedir = join_paths(libdir, 'cmake', 'PulseAudio')
-@@ -918,49 +924,66 @@ summary = [
- #  'LIBS:                          @0@'.format(${LIBS}),
-   '',
-   'Enable pulseaudio daemon:      @0@'.format(get_option('daemon')),
-+  'Enable pulseaudio client:      @0@'.format(get_option('client')),
-   '',
-   'Enable memfd shared memory:    @0@'.format(cdata.has('HAVE_MEMFD')),
-   'Enable X11:                    @0@'.format(x11_dep.found()),
--  '  Safe X11 I/O errors:         @0@'.format(cdata.has('HAVE_XSETIOERROREXITHANDLER')),
--  'Enable OSS Output:             @0@'.format(cdata.has('HAVE_OSS_OUTPUT')),
-+  'Enable D-Bus:                  @0@'.format(dbus_dep.found()),
-+  'Enable systemd integration:    @0@'.format(libsystemd_dep.found()),
-+  'Enable IPv6:                   @0@'.format(get_option('ipv6')),
-+  'Enable Gcov coverage:          @0@'.format(get_option('gcov')),
-+  'Enable Valgrind:               @0@'.format(cdata.has('HAVE_VALGRIND_MEMCHECK_H')),
-+  'Enable man pages:              @0@'.format(get_option('man')),
-+  'Enable unit tests:             @0@'.format(get_option('tests')),
-+]
-+
-+if get_option('client')
-+summary += [
-+  '',
-+  '--- Pulseaudio client features ---',
-+  '',
-+  'Enable GLib 2:                 @0@'.format(glib_dep.found()),
-+  'Enable Gtk+ 3:                 @0@'.format(gtk_dep.found()),
-+  'Enable Async DNS:              @0@'.format(asyncns_dep.found()),
-   'Enable OSS Wrapper:            @0@'.format(cdata.has('HAVE_OSS_WRAPPER')),
-+]
-+endif
-+
-+if get_option('daemon')
-+summary += [
-+  '',
-+  '--- Pulseaudio daemon features ---',
-+  '',
-+  'Safe X11 I/O errors:           @0@'.format(cdata.has('HAVE_XSETIOERROREXITHANDLER')),
-+  'Enable Avahi:                  @0@'.format(avahi_dep.found()),
-+  'Enable OSS Output:             @0@'.format(cdata.has('HAVE_OSS_OUTPUT')),
- #  'Enable EsounD:                 @0@'.format(${ENABLE_ESOUND}),
-   'Enable Alsa:                   @0@'.format(alsa_dep.found()),
-+  'Enable Jack:                   @0@'.format(jack_dep.found()),
-+  'Enable LIRC:                   @0@'.format(lirc_dep.found()),
- #  'Enable CoreAudio:              @0@'.format(${ENABLE_COREAUDIO}),
- #  'Enable Solaris:                @0@'.format(${ENABLE_SOLARIS}),
- #  'Enable WaveOut:                @0@'.format(${ENABLE_WAVEOUT}),
--  'Enable GLib 2:                 @0@'.format(glib_dep.found()),
-   'Enable GSettings:              @0@'.format(gio_dep.found()),
--  'Enable Gtk+ 3:                 @0@'.format(gtk_dep.found()),
--  'Enable Avahi:                  @0@'.format(avahi_dep.found()),
--  'Enable Jack:                   @0@'.format(jack_dep.found()),
--  'Enable Async DNS:              @0@'.format(asyncns_dep.found()),
--  'Enable LIRC:                   @0@'.format(lirc_dep.found()),
--  'Enable D-Bus:                  @0@'.format(dbus_dep.found()),
--  '  Enable BlueZ 5:              @0@'.format(cdata.has('HAVE_BLUEZ_5')),
--  '    Enable native headsets:    @0@'.format(cdata.has('HAVE_BLUEZ_5_NATIVE_HEADSET')),
--  '    Enable  ofono headsets:    @0@'.format(cdata.has('HAVE_BLUEZ_5_OFONO_HEADSET')),
--  '    Enable GStreamer based codecs: @0@'.format(have_bluez5_gstreamer),
--  'Enable udev:                   @0@'.format(udev_dep.found()),
--  '  Enable HAL->udev compat:     @0@'.format(get_option('hal-compat')),
--  'Enable systemd:                @0@'.format(libsystemd_dep.found()),
--  'Enable elogind:                @0@'.format(libelogind_dep.found()),
--  'Enable TCP Wrappers:           @0@'.format(tcpwrap_dep.found()),
-+  'Enable BlueZ 5:              @0@'.format(cdata.has('HAVE_BLUEZ_5')),
-+  '  Enable native headsets:    @0@'.format(cdata.has('HAVE_BLUEZ_5_NATIVE_HEADSET')),
-+  '  Enable  ofono headsets:    @0@'.format(cdata.has('HAVE_BLUEZ_5_OFONO_HEADSET')),
-+  '  Enable GStreamer based codecs: @0@'.format(have_bluez5_gstreamer),
-+  'Enable GStreamer:              @0@'.format(have_gstreamer),
-   'Enable libsamplerate:          @0@'.format(samplerate_dep.found()),
--  'Enable IPv6:                   @0@'.format(get_option('ipv6')),
--  'Enable OpenSSL (for Airtunes): @0@'.format(openssl_dep.found()),
-   'Enable FFTW:                   @0@'.format(fftw_dep.found()),
-   'Enable ORC:                    @0@'.format(have_orcc),
--  'Enable GStreamer:              @0@'.format(have_gstreamer),
-   'Enable Adrian echo canceller:  @0@'.format(get_option('adrian-aec')),
-   'Enable Speex (resampler, AEC): @0@'.format(speex_dep.found()),
-   'Enable SoXR (resampler):       @0@'.format(soxr_dep.found()),
-   'Enable WebRTC echo canceller:  @0@'.format(webrtc_dep.found()),
--  'Enable Gcov coverage:          @0@'.format(get_option('gcov')),
--  'Enable Valgrind:               @0@'.format(cdata.has('HAVE_VALGRIND_MEMCHECK_H')),
--  'Enable man pages:              @0@'.format(get_option('man')),
--  'Enable unit tests:             @0@'.format(get_option('tests')),
-   '',
-+  'Enable udev:                   @0@'.format(udev_dep.found()),
-+  '  Enable HAL->udev compat:     @0@'.format(get_option('hal-compat')),
-+  'Enable systemd units:          @0@'.format(systemd_dep.found()),
-+  'Enable elogind:                @0@'.format(libelogind_dep.found()),
-+  'Enable TCP Wrappers:           @0@'.format(tcpwrap_dep.found()),
-+  'Enable OpenSSL (for Airtunes): @0@'.format(openssl_dep.found()),
-   'Database:                      @0@'.format(get_option('database')),
-   'Legacy Database Entry Support: @0@'.format(get_option('legacy-database-entry-format')),
-   'module-stream-restore:',
-@@ -973,6 +996,7 @@ summary = [
- #  'Force preopen:                 @0@'.format(${FORCE_PREOPEN}),
- #  'Preopened modules:             @0@'.format(${PREOPEN_MODS}),
- ]
-+endif
- 
- message('\n    '.join(summary))
- 
-@@ -982,38 +1006,38 @@ if get_option('daemon') and not speex_dep.found() and not webrtc_dep.found() and
-   error('At least one echo canceller implementation must be available!')
- endif
- 
--if samplerate_dep.found()
-+if get_option('daemon') and samplerate_dep.found()
-   warning('Support for libsamplerate is DEPRECATED')
- endif
- 
--if host_machine.system() != 'windows'
--  if not dbus_dep.found()
--    message = [
--      'You do not have D-Bus support enabled. It is strongly recommended',
--      'that you enable D-Bus support if your platform supports it.',
--      'Many parts of PulseAudio use D-Bus, from ConsoleKit interaction',
--      'to the Device Reservation Protocol to speak to JACK, Bluetooth',
--      'support and even a native control protocol for communicating and',
--      'controlling the PulseAudio daemon itself.',
--    ]
--    warning('\n' + '\n'.join(message))
--  endif
--  if host_machine.system() == 'linux' and not udev_dep.found() and get_option('daemon')
--    message = [
--      'You do not have udev support enabled. It is strongly recommended',
--      'that you enable udev support if your platform supports it as it is',
--      'the primary method used to detect hardware audio devices (on Linux)',
--      'and is thus a critical part of PulseAudio on that platform.',
--    ]
--    warning('\n' + '\n'.join(message))
--  endif
--  if not speex_dep.found() and get_option('daemon')
--    message = [
--      'You do not have speex support enabled. It is strongly recommended',
--      'that you enable speex support if your platform supports it as it is',
--      'the primary method used for audio resampling and is thus a critical',
--      'part of PulseAudio on that platform.',
--    ]
--    warning('\n' + '\n'.join(message))
--  endif
-+if host_machine.system() != 'windows' and not dbus_dep.found()
-+  message = [
-+    'You do not have D-Bus support enabled. It is strongly recommended',
-+    'that you enable D-Bus support if your platform supports it.',
-+    'Many parts of PulseAudio use D-Bus, from ConsoleKit interaction',
-+    'to the Device Reservation Protocol to speak to JACK, Bluetooth',
-+    'support and even a native control protocol for communicating and',
-+    'controlling the PulseAudio daemon itself.',
-+  ]
-+  warning('\n' + '\n'.join(message))
-+endif
-+
-+if get_option('daemon') and host_machine.system() == 'linux' and not udev_dep.found()
-+  message = [
-+    'You do not have udev support enabled. It is strongly recommended',
-+    'that you enable udev support if your platform supports it as it is',
-+    'the primary method used to detect hardware audio devices (on Linux)',
-+    'and is thus a critical part of PulseAudio on that platform.',
-+  ]
-+  warning('\n' + '\n'.join(message))
-+endif
-+
-+if get_option('daemon') and host_machine.system() != 'windows' and not speex_dep.found()
-+  message = [
-+    'You do not have speex support enabled. It is strongly recommended',
-+    'that you enable speex support if your platform supports it as it is',
-+    'the primary method used for audio resampling and is thus a critical',
-+    'part of PulseAudio on that platform.',
-+  ]
-+  warning('\n' + '\n'.join(message))
- endif
-diff --git a/src/meson.build b/src/meson.build
-index f285fdf45..956350afb 100644
---- a/src/meson.build
-+++ b/src/meson.build
-@@ -190,9 +190,6 @@ if not get_option('client')
-   libpulsecommon_dep = cc.find_library('pulsecommon-' + pa_version_major_minor, dirs : privlibdir, required : true)
-   libpulse_dep = dependency('libpulse', required : true)
-   libpulse_simple_dep = dependency('libpulse-simple', required : true)
--  if glib_dep.found()
--    libpulse_mainloop_glib_dep = dependency('libpulse-mainloop-glib', required : true)
--  endif
- else
- 
- libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
--- 
-2.35.1
-
-
-From 75e8621ae7d3cd0bf5341def3452ffef6dbce540 Mon Sep 17 00:00:00 2001
-From: "Igor V. Kovalenko" <igor.v.kovalenko@gmail.com>
-Date: Fri, 5 Nov 2021 00:34:26 +0300
-Subject: [PATCH 6/8] build-sys: meson: Rearrange shell completion between
- daemon and client
-
-Rename bash completion file to pactl and install it with client build.
-Completions specific to daemon are now just symlinks, create target directory
-first to install them.
-
-Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
----
- meson.build                                 |  4 +--
- shell-completion/bash/meson.build           | 28 +++++++++++++--------
- shell-completion/bash/{pulseaudio => pactl} |  0
- shell-completion/zsh/meson.build            |  6 +++--
- 4 files changed, 22 insertions(+), 16 deletions(-)
- rename shell-completion/bash/{pulseaudio => pactl} (100%)
-
-diff --git a/meson.build b/meson.build
-index 3afc31c9b..0c4d9689c 100644
---- a/meson.build
-+++ b/meson.build
-@@ -816,9 +816,7 @@ if get_option('man')
-   subdir('man')
- endif
- subdir('shell-completion/bash')
--if get_option('client')
--  subdir('shell-completion/zsh')
--endif
-+subdir('shell-completion/zsh')
- subdir('src')
- if get_option('client')
-  subdir('vala')
-diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build
-index 1d5a8cdab..fb406551b 100644
---- a/shell-completion/bash/meson.build
-+++ b/shell-completion/bash/meson.build
-@@ -3,27 +3,33 @@ if bashcompletiondir != 'no'
- 
-   if get_option('daemon')
-     aliases += [
-+      'pulseaudio',
-       'pacmd',
-       'pasuspender',
-     ]
-+
-+    # Create target directory for symlinks
-+    if meson.version().version_compare('>= 0.60.0')
-+      install_emptydir(bashcompletiondir)
-+    else
-+      meson.add_install_script('sh', '-c', 'mkdir -p $DESTDIR@0@'.format(bashcompletiondir))
-+    endif
-   endif
- 
-   if get_option('client')
--  aliases += [
--    'pacat',
--    'pactl',
--    'padsp',
--    'paplay',
--    'parec',
--    'parecord',
--  ]
-+    aliases += [
-+      'pacat',
-+      'padsp',
-+      'paplay',
-+      'parec',
-+      'parecord',
-+    ]
-+    install_data('pactl', install_dir : bashcompletiondir)
-   endif
- 
--  install_data('pulseaudio', install_dir : bashcompletiondir)
--
-   foreach alias : aliases
-     dst = join_paths(bashcompletiondir, alias)
--    cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pulseaudio', dst)
-+    cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pactl', dst)
-     meson.add_install_script('sh', '-c', cmd)
-   endforeach
- endif
-diff --git a/shell-completion/bash/pulseaudio b/shell-completion/bash/pactl
-similarity index 100%
-rename from shell-completion/bash/pulseaudio
-rename to shell-completion/bash/pactl
-diff --git a/shell-completion/zsh/meson.build b/shell-completion/zsh/meson.build
-index 489be569c..3f133b186 100644
---- a/shell-completion/zsh/meson.build
-+++ b/shell-completion/zsh/meson.build
-@@ -1,3 +1,5 @@
--if zshcompletiondir != 'no'
--  install_data('_pulseaudio', install_dir : zshcompletiondir)
-+if get_option('client')
-+  if zshcompletiondir != 'no'
-+    install_data('_pulseaudio', install_dir : zshcompletiondir)
-+  endif
- endif
--- 
-2.35.1
-
-
-From 748451220c5c9dbf7110071167b830ba43eea2f0 Mon Sep 17 00:00:00 2001
-From: "Igor V. Kovalenko" <igor.v.kovalenko@gmail.com>
-Date: Fri, 5 Nov 2021 01:52:38 +0300
-Subject: [PATCH 7/8] build-sys: meson: Fix indentation in daemon/client blocks
-
-Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
----
- man/meson.build       |  28 +++----
- meson.build           | 110 ++++++++++++++--------------
- src/meson.build       |  35 +++++----
- src/utils/meson.build | 166 +++++++++++++++++++++---------------------
- 4 files changed, 169 insertions(+), 170 deletions(-)
-
-diff --git a/man/meson.build b/man/meson.build
-index 9b42c2a69..d72b3cf96 100644
---- a/man/meson.build
-+++ b/man/meson.build
-@@ -15,23 +15,23 @@ if get_option('daemon')
- endif
- 
- if get_option('client')
--manpages += [
--  ['pacat', '1', ['paplay', 'parec', 'parecord', 'pamon']],
--  ['pactl', '1'],
--  ['pulse-client.conf', '5'],
--]
--
--if cdata.has('HAVE_OSS_WRAPPER')
-   manpages += [
--    ['padsp', '1'],
-+    ['pacat', '1', ['paplay', 'parec', 'parecord', 'pamon']],
-+    ['pactl', '1'],
-+    ['pulse-client.conf', '5'],
-   ]
--endif
- 
--if x11_dep.found()
--  manpages += [
--    ['pax11publish', '1'],
--  ]
--endif
-+  if cdata.has('HAVE_OSS_WRAPPER')
-+    manpages += [
-+      ['padsp', '1'],
-+    ]
-+  endif
-+
-+  if x11_dep.found()
-+    manpages += [
-+      ['pax11publish', '1'],
-+    ]
-+  endif
- endif
- 
- # FIXME: Add esdcompat if HAVE_ESOUND
-diff --git a/meson.build b/meson.build
-index 0c4d9689c..178e0cae8 100644
---- a/meson.build
-+++ b/meson.build
-@@ -827,69 +827,69 @@ configure_file(output : 'config.h', configuration : cdata)
- 
- if get_option('client')
- 
--# pkg-config files
--
--pc_cdata = configuration_data()
--
--pc_cdata.set('prefix', prefix)
--pc_cdata.set('exec_prefix', prefix)
--pc_cdata.set('libdir', libdir)
--pc_cdata.set('includedir', includedir)
--pc_cdata.set('modlibexecdir', modlibexecdir)
--pc_cdata.set('PACKAGE_VERSION', pa_version_str)
--pc_cdata.set('PA_MAJORMINOR', pa_version_major_minor)
--# FIXME: the line below is wrong. Currently the meson thread dep lacks documentation,
--# and doesn't allow introspection, ie. none of get_pkgconfig_variable() or
--# get_configtool_variable() work with it, so we have no way to get this flag right,
--# unless we do all the work ourselves. See current work in glib, also meson #553.
--pc_cdata.set('PTHREAD_LIBS', '-pthread')
--
--pc_files = [
--  'libpulse.pc',
--  'libpulse-simple.pc',
--]
-+  # pkg-config files
-+
-+  pc_cdata = configuration_data()
-+
-+  pc_cdata.set('prefix', prefix)
-+  pc_cdata.set('exec_prefix', prefix)
-+  pc_cdata.set('libdir', libdir)
-+  pc_cdata.set('includedir', includedir)
-+  pc_cdata.set('modlibexecdir', modlibexecdir)
-+  pc_cdata.set('PACKAGE_VERSION', pa_version_str)
-+  pc_cdata.set('PA_MAJORMINOR', pa_version_major_minor)
-+  # FIXME: the line below is wrong. Currently the meson thread dep lacks documentation,
-+  # and doesn't allow introspection, ie. none of get_pkgconfig_variable() or
-+  # get_configtool_variable() work with it, so we have no way to get this flag right,
-+  # unless we do all the work ourselves. See current work in glib, also meson #553.
-+  pc_cdata.set('PTHREAD_LIBS', '-pthread')
-+
-+  pc_files = [
-+    'libpulse.pc',
-+    'libpulse-simple.pc',
-+  ]
- 
--if glib_dep.found()
--  pc_files += 'libpulse-mainloop-glib.pc'
--endif
-+  if glib_dep.found()
-+    pc_files += 'libpulse-mainloop-glib.pc'
-+  endif
- 
--foreach file : pc_files
--  configure_file(
--    input : file + '.in',
--    output : file,
--    configuration : pc_cdata,
--    install_dir : pkgconfigdir)
--endforeach
-+  foreach file : pc_files
-+    configure_file(
-+      input : file + '.in',
-+      output : file,
-+      configuration : pc_cdata,
-+      install_dir : pkgconfigdir)
-+  endforeach
- 
--# CMake files
-+  # CMake files
- 
--m4 = find_program('m4', required: true)
-+  m4 = find_program('m4', required: true)
- 
--cmakedir = join_paths(libdir, 'cmake', 'PulseAudio')
-+  cmakedir = join_paths(libdir, 'cmake', 'PulseAudio')
- 
--cmake_template_file = configure_file(
--  input : 'PulseAudioConfig.cmake.in',
--  output : 'PulseAudioConfig.cmake.tmp',
--  configuration: cdata,
--)
-+  cmake_template_file = configure_file(
-+    input : 'PulseAudioConfig.cmake.in',
-+    output : 'PulseAudioConfig.cmake.tmp',
-+    configuration: cdata,
-+  )
- 
--custom_target('PulseAudioConfig.cmake',
--  input : cmake_template_file,
--  output : 'PulseAudioConfig.cmake',
--  capture : true,
--  command : [m4, '@INPUT@'],
--  build_by_default : true,
--  install : true,
--  install_dir : cmakedir,
--)
-+  custom_target('PulseAudioConfig.cmake',
-+    input : cmake_template_file,
-+    output : 'PulseAudioConfig.cmake',
-+    capture : true,
-+    command : [m4, '@INPUT@'],
-+    build_by_default : true,
-+    install : true,
-+    install_dir : cmakedir,
-+  )
- 
--configure_file(
--  input : 'PulseAudioConfigVersion.cmake.in',
--  output : 'PulseAudioConfigVersion.cmake',
--  configuration: cdata,
--  install : true,
--  install_dir : cmakedir,
--)
-+  configure_file(
-+    input : 'PulseAudioConfigVersion.cmake.in',
-+    output : 'PulseAudioConfigVersion.cmake',
-+    configuration: cdata,
-+    install : true,
-+    install_dir : cmakedir,
-+  )
- 
- endif # client
- 
-diff --git a/src/meson.build b/src/meson.build
-index 956350afb..f191d7f0e 100644
---- a/src/meson.build
-+++ b/src/meson.build
-@@ -191,26 +191,25 @@ if not get_option('client')
-   libpulse_dep = dependency('libpulse', required : true)
-   libpulse_simple_dep = dependency('libpulse-simple', required : true)
- else
-+  libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
-+    libpulsecommon_sources,
-+    libpulsecommon_headers,
-+    include_directories : [configinc, topinc],
-+    c_args : [pa_c_args],
-+    link_args : [nodelete_link_args],
-+    install : true,
-+    install_dir : privlibdir,
-+    dependencies : [
-+      libm_dep, thread_dep, dl_dep, shm_dep, iconv_dep, sndfile_dep, dbus_dep,
-+      x11_dep, libsystemd_dep, glib_dep.partial_dependency(compile_args: true),
-+      gtk_dep.partial_dependency(compile_args: true), asyncns_dep, libintl_dep,
-+      platform_dep, platform_socket_dep, execinfo_dep,
-+    ],
-+    implicit_include_directories : false)
- 
--libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
--  libpulsecommon_sources,
--  libpulsecommon_headers,
--  include_directories : [configinc, topinc],
--  c_args : [pa_c_args],
--  link_args : [nodelete_link_args],
--  install : true,
--  install_dir : privlibdir,
--  dependencies : [
--    libm_dep, thread_dep, dl_dep, shm_dep, iconv_dep, sndfile_dep, dbus_dep,
--    x11_dep, libsystemd_dep, glib_dep.partial_dependency(compile_args: true),
--    gtk_dep.partial_dependency(compile_args: true), asyncns_dep, libintl_dep,
--    platform_dep, platform_socket_dep, execinfo_dep,
--  ],
--  implicit_include_directories : false)
-+  libpulsecommon_dep = declare_dependency(link_with: libpulsecommon)
- 
--libpulsecommon_dep = declare_dependency(link_with: libpulsecommon)
--
--subdir('pulse')
-+  subdir('pulse')
- endif
- 
- if get_option('daemon')
-diff --git a/src/utils/meson.build b/src/utils/meson.build
-index f67cff4a9..28e1fc10a 100644
---- a/src/utils/meson.build
-+++ b/src/utils/meson.build
-@@ -1,47 +1,47 @@
- if get_option('client')
--pacat_sources = [
--  'pacat.c',
--]
--
--pacat_aliases = [
--  'pamon',
--  'paplay',
--  'parec',
--  'parecord',
--]
--
--executable('pacat',
--  pacat_sources,
--  install: true,
--  install_rpath : privlibdir,
--  include_directories : [configinc, topinc],
--  link_with : [libpulsecommon, libpulse],
--  dependencies : [sndfile_dep, libintl_dep],
--  c_args : pa_c_args,
--)
--
--# Windows doesn't support symbolic links.
--if host_machine.system() != 'windows'
--  foreach alias : pacat_aliases
--    dst = join_paths(bindir, alias)
--    cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pacat', dst)
--    meson.add_install_script('sh', '-c', cmd)
--  endforeach
--endif
-+  pacat_sources = [
-+    'pacat.c',
-+  ]
-+
-+  pacat_aliases = [
-+    'pamon',
-+    'paplay',
-+    'parec',
-+    'parecord',
-+  ]
-+
-+  executable('pacat',
-+    pacat_sources,
-+    install: true,
-+    install_rpath : privlibdir,
-+    include_directories : [configinc, topinc],
-+    link_with : [libpulsecommon, libpulse],
-+    dependencies : [sndfile_dep, libintl_dep],
-+    c_args : pa_c_args,
-+  )
-+
-+  # Windows doesn't support symbolic links.
-+  if host_machine.system() != 'windows'
-+    foreach alias : pacat_aliases
-+      dst = join_paths(bindir, alias)
-+      cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pacat', dst)
-+      meson.add_install_script('sh', '-c', cmd)
-+    endforeach
-+  endif
- 
--pactl_sources = [
--  'pactl.c',
--]
--
--executable('pactl',
--  pactl_sources,
--  install: true,
--  install_rpath : privlibdir,
--  include_directories : [configinc, topinc],
--  link_with : [libpulsecommon, libpulse],
--  dependencies : [sndfile_dep, libintl_dep],
--  c_args : pa_c_args,
--)
-+  pactl_sources = [
-+    'pactl.c',
-+  ]
-+
-+  executable('pactl',
-+    pactl_sources,
-+    install: true,
-+    install_rpath : privlibdir,
-+    include_directories : [configinc, topinc],
-+    link_with : [libpulsecommon, libpulse],
-+    dependencies : [sndfile_dep, libintl_dep],
-+    c_args : pa_c_args,
-+  )
- endif
- 
- if get_option('daemon')
-@@ -75,51 +75,51 @@ if get_option('daemon')
- endif
- 
- if get_option('client')
--if x11_dep.found()
--  pax11publish_sources = [
--    'pax11publish.c',
--  ]
-+  if x11_dep.found()
-+    pax11publish_sources = [
-+      'pax11publish.c',
-+    ]
- 
--  executable('pax11publish',
--    pax11publish_sources,
--    install: true,
--    install_rpath : privlibdir,
--    include_directories : [configinc, topinc],
--    link_with : [libpulsecommon, libpulse],
--    dependencies : [x11_dep, libintl_dep],
--    c_args : pa_c_args,
--  )
--endif
-+    executable('pax11publish',
-+      pax11publish_sources,
-+      install: true,
-+      install_rpath : privlibdir,
-+      include_directories : [configinc, topinc],
-+      link_with : [libpulsecommon, libpulse],
-+      dependencies : [x11_dep, libintl_dep],
-+      c_args : pa_c_args,
-+    )
-+  endif
- 
--if cdata.has('HAVE_OSS_WRAPPER')
--  libpulsecommon_sources = [
--    'padsp.c',
--  ]
-+  if cdata.has('HAVE_OSS_WRAPPER')
-+    libpulsecommon_sources = [
-+      'padsp.c',
-+    ]
- 
--  libpulsedsp = shared_library('pulsedsp',
--    libpulsecommon_sources,
--    install: true,
--    install_dir : padsplibdir,
--    install_rpath : privlibdir,
--    include_directories : [configinc, topinc],
--    link_with : [libpulsecommon, libpulse],
--    link_args : [nodelete_link_args],
--    dependencies: [thread_dep, dl_dep],
--    c_args : [pa_c_args, '-Wno-nonnull-compare']
--  )
-+    libpulsedsp = shared_library('pulsedsp',
-+      libpulsecommon_sources,
-+      install: true,
-+      install_dir : padsplibdir,
-+      install_rpath : privlibdir,
-+      include_directories : [configinc, topinc],
-+      link_with : [libpulsecommon, libpulse],
-+      link_args : [nodelete_link_args],
-+      dependencies: [thread_dep, dl_dep],
-+      c_args : [pa_c_args, '-Wno-nonnull-compare']
-+    )
- 
--  configure_file(
--    input : 'padsp.in',
--    output : 'padsp',
--    configuration : cdata,
--    install : true,
--    install_dir : bindir,
--  )
--endif
-+    configure_file(
-+      input : 'padsp.in',
-+      output : 'padsp',
-+      configuration : cdata,
-+      install : true,
-+      install_dir : bindir,
-+    )
-+  endif
- 
--if dbus_dep.found() and fftw_dep.found()
--  install_data('qpaeq', install_dir : bindir)
--endif
-+  if dbus_dep.found() and fftw_dep.found()
-+    install_data('qpaeq', install_dir : bindir)
-+  endif
- 
--install_data('pa-info', install_dir : bindir)
-+  install_data('pa-info', install_dir : bindir)
- endif
--- 
-2.35.1
-
-
-From 18a81ce6f15e3fd07ed2369f506b342f90c1908a Mon Sep 17 00:00:00 2001
-From: "Igor V. Kovalenko" <igor.v.kovalenko@gmail.com>
-Date: Thu, 11 Nov 2021 01:44:30 +0300
-Subject: [PATCH 8/8] build-sys: meson: Make glib and fftw common dependencies
-
-GSettings module (daemon) requires both gio and glib, move glib to common block.
-qpaeq requires fftw, move fftw to common block.
-
-Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
----
- meson.build                       | 26 +++++++++++++-------------
- src/modules/gsettings/meson.build |  2 +-
- src/modules/meson.build           |  2 +-
- 3 files changed, 15 insertions(+), 15 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index 178e0cae8..bb829eabc 100644
---- a/meson.build
-+++ b/meson.build
-@@ -579,6 +579,12 @@ if dbus_dep.found()
-   cdata.set('HAVE_DBUS', 1)
- endif
- 
-+glib_dep = dependency('glib-2.0', version : '>= 2.28.0', required: get_option('glib'))
-+if glib_dep.found()
-+  cdata.set('HAVE_GLIB', 1)
-+  cdata.set('HAVE_GLIB20', 1) # to match the AM_CONDITIONAL for CMake file generation
-+endif
-+
- sndfile_dep = dependency('sndfile', version : '>= 1.0.20')
- 
- libsystemd_dep = dependency('libsystemd', required : get_option('systemd'))
-@@ -599,6 +605,11 @@ if cc.has_header('sys/soundcard.h', required: get_option('oss-output'))
-   cdata.set('PULSEDSP_LOCATION', pulsedsp_location)
- endif
- 
-+fftw_dep = dependency('fftw3f', required : get_option('fftw'))
-+if fftw_dep.found()
-+  cdata.set('HAVE_FFTW', 1)
-+endif
-+
- # Client library dependencies
- 
- if get_option('client')
-@@ -607,12 +618,6 @@ if get_option('client')
-     cdata.set('HAVE_LIBASYNCNS', 1)
-   endif
- 
--  glib_dep = dependency('glib-2.0', version : '>= 2.28.0', required: get_option('glib'))
--  if glib_dep.found()
--    cdata.set('HAVE_GLIB', 1)
--    cdata.set('HAVE_GLIB20', 1) # to match the AM_CONDITIONAL for CMake file generation
--  endif
--
-   gtk_dep = dependency('gtk+-3.0', required : get_option('gtk'))
-   if gtk_dep.found()
-     cdata.set('HAVE_GTK', 1)
-@@ -747,11 +752,6 @@ if get_option('daemon')
-     endif
-   endif
- 
--  fftw_dep = dependency('fftw3f', required : get_option('fftw'))
--  if fftw_dep.found()
--    cdata.set('HAVE_FFTW', 1)
--  endif
--
-   jack_dep = dependency('jack', version : '>= 0.117.0', required : get_option('jack'))
-   if jack_dep.found()
-     cdata.set('HAVE_JACK', 1)
-@@ -927,7 +927,9 @@ summary = [
-   'Enable memfd shared memory:    @0@'.format(cdata.has('HAVE_MEMFD')),
-   'Enable X11:                    @0@'.format(x11_dep.found()),
-   'Enable D-Bus:                  @0@'.format(dbus_dep.found()),
-+  'Enable GLib 2:                 @0@'.format(glib_dep.found()),
-   'Enable systemd integration:    @0@'.format(libsystemd_dep.found()),
-+  'Enable FFTW:                   @0@'.format(fftw_dep.found()),
-   'Enable IPv6:                   @0@'.format(get_option('ipv6')),
-   'Enable Gcov coverage:          @0@'.format(get_option('gcov')),
-   'Enable Valgrind:               @0@'.format(cdata.has('HAVE_VALGRIND_MEMCHECK_H')),
-@@ -940,7 +942,6 @@ summary += [
-   '',
-   '--- Pulseaudio client features ---',
-   '',
--  'Enable GLib 2:                 @0@'.format(glib_dep.found()),
-   'Enable Gtk+ 3:                 @0@'.format(gtk_dep.found()),
-   'Enable Async DNS:              @0@'.format(asyncns_dep.found()),
-   'Enable OSS Wrapper:            @0@'.format(cdata.has('HAVE_OSS_WRAPPER')),
-@@ -969,7 +970,6 @@ summary += [
-   '  Enable GStreamer based codecs: @0@'.format(have_bluez5_gstreamer),
-   'Enable GStreamer:              @0@'.format(have_gstreamer),
-   'Enable libsamplerate:          @0@'.format(samplerate_dep.found()),
--  'Enable FFTW:                   @0@'.format(fftw_dep.found()),
-   'Enable ORC:                    @0@'.format(have_orcc),
-   'Enable Adrian echo canceller:  @0@'.format(get_option('adrian-aec')),
-   'Enable Speex (resampler, AEC): @0@'.format(speex_dep.found()),
-diff --git a/src/modules/gsettings/meson.build b/src/modules/gsettings/meson.build
-index 9604699e7..32177e3ec 100644
---- a/src/modules/gsettings/meson.build
-+++ b/src/modules/gsettings/meson.build
-@@ -8,7 +8,7 @@ gsettings_helper = executable('gsettings-helper',
-   gsettings_helper_sources,
-   c_args : pa_c_args,
-   include_directories : [configinc, topinc],
--  dependencies : [gio_dep, libpulsecommon_dep, libpulse_dep],
-+  dependencies : [gio_dep, glib_dep, libpulsecommon_dep, libpulse_dep],
-   install_dir : pulselibexecdir,
-   install_rpath : privlibdir,
-   install : true,
-diff --git a/src/modules/meson.build b/src/modules/meson.build
-index be72c3b9b..ccc06d001 100644
---- a/src/modules/meson.build
-+++ b/src/modules/meson.build
-@@ -161,7 +161,7 @@ if dbus_dep.found() and fftw_dep.found()
-   ]
- endif
- 
--if get_option('gsettings').enabled() and gio_dep.found()
-+if get_option('gsettings').enabled() and glib_dep.found() and gio_dep.found()
-   subdir('gsettings')
-   all_modules += [
-     [ 'module-gsettings',
--- 
-2.35.1
-

diff --git a/media-libs/libpulse/files/pulseaudio-15.0-move-systemd-socket-activation-code.patch b/media-libs/libpulse/files/pulseaudio-15.0-move-systemd-socket-activation-code.patch
deleted file mode 100644
index 51f1314c9b34..000000000000
--- a/media-libs/libpulse/files/pulseaudio-15.0-move-systemd-socket-activation-code.patch
+++ /dev/null
@@ -1,284 +0,0 @@
-commit 733969ac1917f02923e2a5869a8e14a582e0ba2e
-Author: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
-Date:   Sat Sep 25 13:22:09 2021 +0300
-
-    socket-server: Move systemd socket activation code to pulsecore
-    
-    There is no need to support server sockets in client library. Move all related
-    code and tcp-wrappers dependency to pulsecore library.
-    
-    Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/640>
-
-diff --git a/src/meson.build b/src/meson.build
-index e2860811b..59a9b16bf 100644
---- a/src/meson.build
-+++ b/src/meson.build
-@@ -57,7 +57,6 @@ libpulsecommon_sources = [
-   'pulsecore/shm.c',
-   'pulsecore/bitset.c',
-   'pulsecore/socket-client.c',
--  'pulsecore/socket-server.c',
-   'pulsecore/socket-util.c',
-   'pulsecore/strbuf.c',
-   'pulsecore/strlist.c',
-@@ -136,7 +135,6 @@ libpulsecommon_headers = [
-   'pulsecore/shm.h',
-   'pulsecore/bitset.h',
-   'pulsecore/socket-client.h',
--  'pulsecore/socket-server.h',
-   'pulsecore/socket-util.h',
-   'pulsecore/strbuf.h',
-   'pulsecore/strlist.h',
-@@ -200,7 +198,7 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
-     libm_dep, thread_dep, dl_dep, shm_dep, iconv_dep, sndfile_dep, dbus_dep,
-     x11_dep, libsystemd_dep, glib_dep.partial_dependency(compile_args: true),
-     gtk_dep.partial_dependency(compile_args: true), asyncns_dep, libintl_dep,
--    platform_dep, tcpwrap_dep, platform_socket_dep, execinfo_dep,
-+    platform_dep, platform_socket_dep, execinfo_dep,
-   ],
-   implicit_include_directories : false)
- 
-diff --git a/src/pulsecore/meson.build b/src/pulsecore/meson.build
-index d7f9ef2cf..b30264b3a 100644
---- a/src/pulsecore/meson.build
-+++ b/src/pulsecore/meson.build
-@@ -44,6 +44,7 @@ libpulsecore_sources = [
-   'sink.c',
-   'sink-input.c',
-   'sioman.c',
-+  'socket-server.c',
-   'sound-file-stream.c',
-   'sound-file.c',
-   'source.c',
-@@ -101,6 +102,7 @@ libpulsecore_headers = [
-   'sink-input.h',
-   'sink.h',
-   'sioman.h',
-+  'socket-server.h',
-   'sound-file-stream.h',
-   'sound-file.h',
-   'source-output.h',
-@@ -222,7 +224,7 @@ libpulsecore = shared_library('pulsecore-' + pa_version_major_minor,
-   install_rpath : privlibdir,
-   install_dir : privlibdir,
-   link_with : libpulsecore_simd_lib,
--  dependencies : [libm_dep, libpulsecommon_dep, ltdl_dep, shm_dep, sndfile_dep, database_dep, dbus_dep, libatomic_ops_dep, orc_dep, samplerate_dep, soxr_dep, speex_dep, x11_dep, libintl_dep, platform_dep, platform_socket_dep,],
-+  dependencies : [libm_dep, libpulsecommon_dep, ltdl_dep, shm_dep, sndfile_dep, database_dep, dbus_dep, libatomic_ops_dep, orc_dep, samplerate_dep, soxr_dep, speex_dep, x11_dep, libsystemd_dep, libintl_dep, platform_dep, tcpwrap_dep, platform_socket_dep,],
-   implicit_include_directories : false)
- 
- libpulsecore_dep = declare_dependency(link_with: libpulsecore)
-diff --git a/src/pulsecore/socket-server.c b/src/pulsecore/socket-server.c
-index 13d8a99f7..b13012b6d 100644
---- a/src/pulsecore/socket-server.c
-+++ b/src/pulsecore/socket-server.c
-@@ -642,3 +642,83 @@ char *pa_socket_server_get_address(pa_socket_server *s, char *c, size_t l) {
-             return NULL;
-     }
- }
-+
-+#ifdef HAVE_SYS_UN_H
-+
-+int pa_unix_socket_is_stale(const char *fn) {
-+    struct sockaddr_un sa;
-+    int fd = -1, ret = -1;
-+
-+    pa_assert(fn);
-+
-+    if ((fd = pa_socket_cloexec(PF_UNIX, SOCK_STREAM, 0)) < 0) {
-+        pa_log("socket(): %s", pa_cstrerror(errno));
-+        goto finish;
-+    }
-+
-+    sa.sun_family = AF_UNIX;
-+    strncpy(sa.sun_path, fn, sizeof(sa.sun_path)-1);
-+    sa.sun_path[sizeof(sa.sun_path) - 1] = 0;
-+
-+    if (connect(fd, (struct sockaddr*) &sa, sizeof(sa)) < 0) {
-+#if !defined(OS_IS_WIN32)
-+        if (errno == ECONNREFUSED)
-+            ret = 1;
-+#else
-+        if (WSAGetLastError() == WSAECONNREFUSED || WSAGetLastError() == WSAEINVAL)
-+            ret = 1;
-+#endif
-+    } else
-+        ret = 0;
-+
-+finish:
-+    if (fd >= 0)
-+        pa_close(fd);
-+
-+    return ret;
-+}
-+
-+int pa_unix_socket_remove_stale(const char *fn) {
-+    int r;
-+
-+    pa_assert(fn);
-+
-+#ifdef HAVE_SYSTEMD_DAEMON
-+    {
-+        int n = sd_listen_fds(0);
-+        if (n > 0) {
-+            for (int i = 0; i < n; ++i) {
-+                if (sd_is_socket_unix(SD_LISTEN_FDS_START + i, SOCK_STREAM, 1, fn, 0) > 0) {
-+                    /* This is a socket activated socket, therefore do not consider
-+                    * it stale. */
-+                    return 0;
-+                }
-+            }
-+        }
-+    }
-+#endif
-+
-+    if ((r = pa_unix_socket_is_stale(fn)) < 0)
-+        return errno != ENOENT ? -1 : 0;
-+
-+    if (!r)
-+        return 0;
-+
-+    /* Yes, here is a race condition. But who cares? */
-+    if (unlink(fn) < 0)
-+        return -1;
-+
-+    return 0;
-+}
-+
-+#else /* HAVE_SYS_UN_H */
-+
-+int pa_unix_socket_is_stale(const char *fn) {
-+    return -1;
-+}
-+
-+int pa_unix_socket_remove_stale(const char *fn) {
-+    return -1;
-+}
-+
-+#endif /* HAVE_SYS_UN_H */
-diff --git a/src/pulsecore/socket-server.h b/src/pulsecore/socket-server.h
-index 0793baf44..b1f093921 100644
---- a/src/pulsecore/socket-server.h
-+++ b/src/pulsecore/socket-server.h
-@@ -50,4 +50,7 @@ void pa_socket_server_set_callback(pa_socket_server*s, pa_socket_server_on_conne
- 
- char *pa_socket_server_get_address(pa_socket_server *s, char *c, size_t l);
- 
-+int pa_unix_socket_is_stale(const char *fn);
-+int pa_unix_socket_remove_stale(const char *fn);
-+
- #endif
-diff --git a/src/pulsecore/socket-util.c b/src/pulsecore/socket-util.c
-index f2c8c3c31..4ede0439e 100644
---- a/src/pulsecore/socket-util.c
-+++ b/src/pulsecore/socket-util.c
-@@ -50,9 +50,6 @@
- #ifdef HAVE_NETDB_H
- #include <netdb.h>
- #endif
--#ifdef HAVE_SYSTEMD_DAEMON
--#include <systemd/sd-daemon.h>
--#endif
- 
- #include <pulsecore/core-error.h>
- #include <pulsecore/core-util.h>
-@@ -221,86 +218,6 @@ int pa_socket_set_sndbuf(int fd, size_t l) {
-     return 0;
- }
- 
--#ifdef HAVE_SYS_UN_H
--
--int pa_unix_socket_is_stale(const char *fn) {
--    struct sockaddr_un sa;
--    int fd = -1, ret = -1;
--
--    pa_assert(fn);
--
--    if ((fd = pa_socket_cloexec(PF_UNIX, SOCK_STREAM, 0)) < 0) {
--        pa_log("socket(): %s", pa_cstrerror(errno));
--        goto finish;
--    }
--
--    sa.sun_family = AF_UNIX;
--    strncpy(sa.sun_path, fn, sizeof(sa.sun_path)-1);
--    sa.sun_path[sizeof(sa.sun_path) - 1] = 0;
--
--    if (connect(fd, (struct sockaddr*) &sa, sizeof(sa)) < 0) {
--#if !defined(OS_IS_WIN32)
--        if (errno == ECONNREFUSED)
--            ret = 1;
--#else
--        if (WSAGetLastError() == WSAECONNREFUSED || WSAGetLastError() == WSAEINVAL)
--            ret = 1;
--#endif
--    } else
--        ret = 0;
--
--finish:
--    if (fd >= 0)
--        pa_close(fd);
--
--    return ret;
--}
--
--int pa_unix_socket_remove_stale(const char *fn) {
--    int r;
--
--    pa_assert(fn);
--
--#ifdef HAVE_SYSTEMD_DAEMON
--    {
--        int n = sd_listen_fds(0);
--        if (n > 0) {
--            for (int i = 0; i < n; ++i) {
--                if (sd_is_socket_unix(SD_LISTEN_FDS_START + i, SOCK_STREAM, 1, fn, 0) > 0) {
--                    /* This is a socket activated socket, therefore do not consider
--                    * it stale. */
--                    return 0;
--                }
--            }
--        }
--    }
--#endif
--
--    if ((r = pa_unix_socket_is_stale(fn)) < 0)
--        return errno != ENOENT ? -1 : 0;
--
--    if (!r)
--        return 0;
--
--    /* Yes, here is a race condition. But who cares? */
--    if (unlink(fn) < 0)
--        return -1;
--
--    return 0;
--}
--
--#else /* HAVE_SYS_UN_H */
--
--int pa_unix_socket_is_stale(const char *fn) {
--    return -1;
--}
--
--int pa_unix_socket_remove_stale(const char *fn) {
--    return -1;
--}
--
--#endif /* HAVE_SYS_UN_H */
--
- bool pa_socket_address_is_local(const struct sockaddr *sa) {
-     pa_assert(sa);
- 
-diff --git a/src/pulsecore/socket-util.h b/src/pulsecore/socket-util.h
-index f12076936..83c730bd9 100644
---- a/src/pulsecore/socket-util.h
-+++ b/src/pulsecore/socket-util.h
-@@ -35,9 +35,6 @@ void pa_make_udp_socket_low_delay(int fd);
- int pa_socket_set_sndbuf(int fd, size_t l);
- int pa_socket_set_rcvbuf(int fd, size_t l);
- 
--int pa_unix_socket_is_stale(const char *fn);
--int pa_unix_socket_remove_stale(const char *fn);
--
- bool pa_socket_address_is_local(const struct sockaddr *sa);
- bool pa_socket_is_local(int fd);
- 

diff --git a/media-libs/libpulse/files/pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch b/media-libs/libpulse/files/pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch
deleted file mode 100644
index f3df62031d34..000000000000
--- a/media-libs/libpulse/files/pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-https://bugs.gentoo.org/806052
-
-commit 42af3ee08381faa5807fde68d4c8ec0d7ad5e9a5
-Author: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
-Date:   Tue Aug 3 09:43:32 2021 +0300
-
-    build-sys: meson: Require xice, xsm and xtst for daemon only
-    
-    Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/613>
-
---- a/meson.build
-+++ b/meson.build
-@@ -681,9 +681,9 @@ endif
- x11_dep = dependency('x11-xcb', required : get_option('x11'))
- if x11_dep.found()
-   xcb_dep  = dependency('xcb',  required : true, version : '>= 1.6')
--  ice_dep  = dependency('ice',  required : true)
--  sm_dep   = dependency('sm',   required : true)
--  xtst_dep = dependency('xtst', required : true)
-+  ice_dep  = dependency('ice',  required : get_option('daemon'))
-+  sm_dep   = dependency('sm',   required : get_option('daemon'))
-+  xtst_dep = dependency('xtst', required : get_option('daemon'))
-   cdata.set('HAVE_X11', 1)
-   if cc.has_function('XSetIOErrorExitHandler', dependencies: x11_dep)
-     cdata.set('HAVE_XSETIOERROREXITHANDLER', 1)

diff --git a/media-libs/libpulse/libpulse-15.0-r1.ebuild b/media-libs/libpulse/libpulse-15.0-r1.ebuild
index 2457ca28651b..2aeb87d7a189 100644
--- a/media-libs/libpulse/libpulse-15.0-r1.ebuild
+++ b/media-libs/libpulse/libpulse-15.0-r1.ebuild
@@ -5,7 +5,7 @@ EAPI="7"
 
 MY_PV="${PV/_pre*}"
 MY_P="pulseaudio-${MY_PV}"
-
+MY_PATCHSET="pulseaudio-daemon-15.0-patchset-1"
 inherit bash-completion-r1 gnome2-utils meson-multilib optfeature systemd tmpfiles udev
 
 DESCRIPTION="Libraries for PulseAudio clients"
@@ -17,6 +17,7 @@ if [[ ${PV} = 9999 ]]; then
 	EGIT_REPO_URI="https://gitlab.freedesktop.org/pulseaudio/pulseaudio"
 else
 	SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${MY_P}.tar.xz"
+	SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/pulseaudio-daemon/${MY_PATCHSET}.tar.bz2"
 	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
 fi
 
@@ -73,9 +74,7 @@ DOCS=( NEWS README )
 
 # patches merged upstream, to be removed with 16.0 bump
 PATCHES=(
-	"${FILESDIR}"/pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch
-	"${FILESDIR}"/pulseaudio-15.0-move-systemd-socket-activation-code.patch
-	"${FILESDIR}"/pulseaudio-15.0-daemon-client-split-build.patch
+	"${WORKDIR}"/${MY_PATCHSET}/
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/libpulse/, media-libs/libpulse/files/
@ 2022-06-18  0:18 Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2022-06-18  0:18 UTC (permalink / raw
  To: gentoo-commits

commit:     ebe6de570b89a80d58af7797fd6fdc246b6c9f2e
Author:     Igor V. Kovalenko <igor.v.kovalenko <AT> gmail <DOT> com>
AuthorDate: Fri Jun 17 23:37:29 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 18 00:18:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe6de57

media-libs/libpulse: Fix parsing of percentages with decimal points

Upstream commit 05c06afa58e30b7958e96766d1e917099c8a4041

Fixes logic for detecting which type of volume was given to pactl.
Percentages are now prioritized over all other volume types.

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../pulseaudio-16.0-fix-pactl-volume-command.patch |  55 ++++++
 media-libs/libpulse/libpulse-16.0-r1.ebuild        | 204 +++++++++++++++++++++
 2 files changed, 259 insertions(+)

diff --git a/media-libs/libpulse/files/pulseaudio-16.0-fix-pactl-volume-command.patch b/media-libs/libpulse/files/pulseaudio-16.0-fix-pactl-volume-command.patch
new file mode 100644
index 000000000000..469aaa345102
--- /dev/null
+++ b/media-libs/libpulse/files/pulseaudio-16.0-fix-pactl-volume-command.patch
@@ -0,0 +1,55 @@
+https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/05c06afa58e30b7958e96766d1e917099c8a4041
+
+From 05c06afa58e30b7958e96766d1e917099c8a4041 Mon Sep 17 00:00:00 2001
+From: Sean Greenslade <sean@seangreenslade.com>
+Date: Sat, 4 Jun 2022 00:24:49 -0700
+Subject: [PATCH] pactl: fix parsing of percentages with decimal points
+
+The logic for detecting which type of volume was given incorrectly interpreted
+any value with a decimal as a VOL_LINEAR. It also could set multiple flags,
+which would put the flags variable into an indeterminate state. Additionally,
+the flags stack variable was uninitialized which could also lead to an
+indeterminate flag state.
+
+Percentages are now prioritized over all other types, and only one type flag
+can be set.
+---
+ src/utils/pactl.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/utils/pactl.c b/src/utils/pactl.c
+index 35163f277..2761ebaaf 100644
+--- a/src/utils/pactl.c
++++ b/src/utils/pactl.c
+@@ -2527,16 +2527,16 @@ static int parse_volume(const char *vol_spec, pa_volume_t *vol, enum volume_flag
+     vs = pa_xstrdup(vol_spec);
+ 
+     *vol_flags = (pa_startswith(vs, "+") || pa_startswith(vs, "-")) ? VOL_RELATIVE : VOL_ABSOLUTE;
+-    if (strchr(vs, '.'))
+-        *vol_flags |= VOL_LINEAR;
+     if (pa_endswith(vs, "%")) {
+         *vol_flags |= VOL_PERCENT;
+         vs[strlen(vs)-1] = 0;
+     }
+-    if (pa_endswith(vs, "db") || pa_endswith(vs, "dB")) {
++    else if (pa_endswith(vs, "db") || pa_endswith(vs, "dB")) {
+         *vol_flags |= VOL_DECIBEL;
+         vs[strlen(vs)-2] = 0;
+     }
++    else if (strchr(vs, '.'))
++        *vol_flags |= VOL_LINEAR;
+ 
+     atod_input = vs;
+ 
+@@ -2597,7 +2597,7 @@ static int parse_volumes(char *args[], unsigned n) {
+ 
+     volume.channels = n;
+     for (i = 0; i < volume.channels; i++) {
+-        enum volume_flags flags;
++        enum volume_flags flags = 0;
+ 
+         if (parse_volume(args[i], &volume.values[i], &flags) < 0)
+             return -1;
+-- 
+GitLab
+

diff --git a/media-libs/libpulse/libpulse-16.0-r1.ebuild b/media-libs/libpulse/libpulse-16.0-r1.ebuild
new file mode 100644
index 000000000000..a134ac58d7b4
--- /dev/null
+++ b/media-libs/libpulse/libpulse-16.0-r1.ebuild
@@ -0,0 +1,204 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+MY_PV="${PV/_pre*}"
+MY_P="pulseaudio-${MY_PV}"
+inherit bash-completion-r1 gnome2-utils meson-multilib optfeature systemd udev
+
+DESCRIPTION="Libraries for PulseAudio clients"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/"
+
+if [[ ${PV} = 9999 ]]; then
+	inherit git-r3
+	EGIT_BRANCH="master"
+	EGIT_REPO_URI="https://gitlab.freedesktop.org/pulseaudio/pulseaudio"
+else
+	SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${MY_P}.tar.xz"
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-2.1+"
+
+SLOT="0"
+IUSE="+asyncns dbus doc +glib gtk selinux systemd test valgrind X"
+RESTRICT="!test? ( test )"
+
+# NOTE: libpcre needed in some cases, bug #472228
+# TODO: libatomic_ops is only needed on some architectures and conditions, and then at runtime too
+RDEPEND="
+	dev-libs/libatomic_ops
+	>=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}]
+	virtual/libc
+	asyncns? ( >=net-libs/libasyncns-0.1[${MULTILIB_USEDEP}] )
+	dbus? ( >=sys-apps/dbus-1.4.12[${MULTILIB_USEDEP}] )
+	glib? ( >=dev-libs/glib-2.28.0:2[${MULTILIB_USEDEP}] )
+	gtk? ( x11-libs/gtk+:3 )
+	selinux? ( sec-policy/selinux-pulseaudio )
+	systemd? ( sys-apps/systemd:= )
+	valgrind? ( dev-util/valgrind )
+	X? (
+		x11-libs/libX11[${MULTILIB_USEDEP}]
+		>=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}]
+	)
+	|| (
+		elibc_glibc? ( virtual/libc )
+		dev-libs/libpcre:3
+	)
+	!<media-sound/pulseaudio-15.0-r100
+"
+
+DEPEND="${RDEPEND}
+	test? ( >=dev-libs/check-0.9.10 )
+	X? ( x11-base/xorg-proto )
+"
+
+# pulseaudio ships a bundled xmltoman, which uses XML::Parser
+BDEPEND="
+	dev-lang/perl
+	dev-perl/XML-Parser
+	sys-devel/gettext
+	sys-devel/m4
+	virtual/libiconv
+	virtual/libintl
+	virtual/pkgconfig
+	doc? ( app-doc/doxygen )
+"
+
+DOCS=( NEWS README )
+
+# patches merged upstream, to be removed with 16.0 bump
+PATCHES=(
+	"${FILESDIR}"/pulseaudio-16.0-fix-pactl-volume-command.patch
+)
+
+src_prepare() {
+	default
+
+	# disable autospawn by client
+	sed -i -e 's:; autospawn = yes:autospawn = no:g' src/pulse/client.conf.in || die
+
+	gnome2_environment_reset
+}
+
+multilib_src_configure() {
+	local emesonargs=(
+		--localstatedir="${EPREFIX}"/var
+
+		-Ddaemon=false
+		-Dclient=true
+		$(meson_native_use_bool doc doxygen)
+		-Dgcov=false
+		# tests involve random modules, so just do them for the native # TODO: tests should run always
+		$(meson_native_use_bool test tests)
+		-Ddatabase=simple # Not used for non-daemon, simple database avoids external dep checks
+		-Dstream-restore-clear-old-devices=true
+		-Drunning-from-build-tree=false
+
+		# Paths
+		-Dmodlibexecdir="${EPREFIX}/usr/$(get_libdir)/pulseaudio/modules" # Was $(get_libdir)/${P}
+		-Dsystemduserunitdir=$(systemd_get_userunitdir)
+		-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
+		-Dbashcompletiondir="$(get_bashcompdir)" # Alternatively DEPEND on app-shells/bash-completion for pkg-config to provide the value
+
+		# Optional features
+		-Dalsa=disabled
+		$(meson_feature asyncns)
+		-Davahi=disabled
+		-Dbluez5=disabled
+		-Dbluez5-gstreamer=disabled
+		-Dbluez5-native-headset=false
+		-Dbluez5-ofono-headset=false
+		$(meson_feature dbus)
+		-Delogind=disabled
+		-Dfftw=disabled
+		$(meson_feature glib) # WARNING: toggling this likely changes ABI
+		-Dgsettings=disabled
+		-Dgstreamer=disabled
+		$(meson_native_use_feature gtk)
+		-Dhal-compat=false
+		-Dipv6=true
+		-Djack=disabled
+		-Dlirc=disabled
+		-Dopenssl=disabled
+		-Dorc=disabled
+		-Doss-output=disabled
+		-Dsamplerate=disabled # Matches upstream
+		-Dsoxr=disabled
+		-Dspeex=disabled
+		$(meson_native_use_feature systemd)
+		-Dtcpwrap=disabled
+		-Dudev=disabled
+		$(meson_native_use_feature valgrind)
+		$(meson_feature X x11)
+
+		# Echo cancellation
+		-Dadrian-aec=false
+		-Dwebrtc-aec=disabled
+	)
+
+	if multilib_is_native_abi; then
+		# Make padsp work for non-native ABI, supposedly only possible with glibc;
+		# this is used by /usr/bin/padsp that comes from native build, thus we need
+		# this argument for native build
+		if use elibc_glibc; then
+			emesonargs+=( -Dpulsedsp-location="${EPREFIX}"'/usr/\\$$LIB/pulseaudio' )
+		fi
+	else
+		emesonargs+=( -Dman=false )
+		if ! use elibc_glibc; then
+			# Non-glibc multilib is probably non-existent but just in case:
+			ewarn "padsp wrapper for OSS emulation will only work with native ABI applications!"
+		fi
+	fi
+
+	meson_src_configure
+}
+
+multilib_src_compile() {
+	meson_src_compile
+
+	if multilib_is_native_abi; then
+		if use doc; then
+			einfo "Generating documentation ..."
+			meson_src_compile doxygen
+		fi
+	fi
+}
+
+multilib_src_install() {
+	# The files referenced in the DOCS array do not exist in the multilib source directory,
+	# therefore clear the variable when calling the function that will access it.
+	DOCS= meson_src_install
+
+	# Upstream installs 'pactl' if client is built, with all symlinks except for
+	# 'pulseaudio', 'pacmd' and 'pasuspender' which are installed if server is built.
+	# This trips QA warning, workaround:
+	# - install missing aliases in media-libs/libpulse (client build)
+	# - remove corresponding symlinks in media-sound/pulseaudio-daemonclient (server build)
+	bashcomp_alias pactl pulseaudio
+	bashcomp_alias pactl pacmd
+	bashcomp_alias pactl pasuspender
+
+	if multilib_is_native_abi; then
+		if use doc; then
+			einfo "Installing documentation ..."
+			docinto html
+			dodoc -r doxygen/html/.
+		fi
+	fi
+}
+
+multilib_src_install_all() {
+	einstalldocs
+
+	find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
+}
+
+pkg_postinst() {
+	optfeature_header "PulseAudio can be enhanced by installing the following:"
+	use dbus && optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/libpulse/, media-libs/libpulse/files/
@ 2022-07-31  3:40 Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2022-07-31  3:40 UTC (permalink / raw
  To: gentoo-commits

commit:     a5913c6b5fb3f70f6e660c98259abeb3457d2e64
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 31 03:34:39 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 31 03:34:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5913c6b

media-libs/libpulse: drop 16.0-r1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../pulseaudio-16.0-fix-pactl-volume-command.patch |  55 ------
 media-libs/libpulse/libpulse-16.0-r1.ebuild        | 204 ---------------------
 2 files changed, 259 deletions(-)

diff --git a/media-libs/libpulse/files/pulseaudio-16.0-fix-pactl-volume-command.patch b/media-libs/libpulse/files/pulseaudio-16.0-fix-pactl-volume-command.patch
deleted file mode 100644
index 469aaa345102..000000000000
--- a/media-libs/libpulse/files/pulseaudio-16.0-fix-pactl-volume-command.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/05c06afa58e30b7958e96766d1e917099c8a4041
-
-From 05c06afa58e30b7958e96766d1e917099c8a4041 Mon Sep 17 00:00:00 2001
-From: Sean Greenslade <sean@seangreenslade.com>
-Date: Sat, 4 Jun 2022 00:24:49 -0700
-Subject: [PATCH] pactl: fix parsing of percentages with decimal points
-
-The logic for detecting which type of volume was given incorrectly interpreted
-any value with a decimal as a VOL_LINEAR. It also could set multiple flags,
-which would put the flags variable into an indeterminate state. Additionally,
-the flags stack variable was uninitialized which could also lead to an
-indeterminate flag state.
-
-Percentages are now prioritized over all other types, and only one type flag
-can be set.
----
- src/utils/pactl.c | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/utils/pactl.c b/src/utils/pactl.c
-index 35163f277..2761ebaaf 100644
---- a/src/utils/pactl.c
-+++ b/src/utils/pactl.c
-@@ -2527,16 +2527,16 @@ static int parse_volume(const char *vol_spec, pa_volume_t *vol, enum volume_flag
-     vs = pa_xstrdup(vol_spec);
- 
-     *vol_flags = (pa_startswith(vs, "+") || pa_startswith(vs, "-")) ? VOL_RELATIVE : VOL_ABSOLUTE;
--    if (strchr(vs, '.'))
--        *vol_flags |= VOL_LINEAR;
-     if (pa_endswith(vs, "%")) {
-         *vol_flags |= VOL_PERCENT;
-         vs[strlen(vs)-1] = 0;
-     }
--    if (pa_endswith(vs, "db") || pa_endswith(vs, "dB")) {
-+    else if (pa_endswith(vs, "db") || pa_endswith(vs, "dB")) {
-         *vol_flags |= VOL_DECIBEL;
-         vs[strlen(vs)-2] = 0;
-     }
-+    else if (strchr(vs, '.'))
-+        *vol_flags |= VOL_LINEAR;
- 
-     atod_input = vs;
- 
-@@ -2597,7 +2597,7 @@ static int parse_volumes(char *args[], unsigned n) {
- 
-     volume.channels = n;
-     for (i = 0; i < volume.channels; i++) {
--        enum volume_flags flags;
-+        enum volume_flags flags = 0;
- 
-         if (parse_volume(args[i], &volume.values[i], &flags) < 0)
-             return -1;
--- 
-GitLab
-

diff --git a/media-libs/libpulse/libpulse-16.0-r1.ebuild b/media-libs/libpulse/libpulse-16.0-r1.ebuild
deleted file mode 100644
index a134ac58d7b4..000000000000
--- a/media-libs/libpulse/libpulse-16.0-r1.ebuild
+++ /dev/null
@@ -1,204 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-MY_PV="${PV/_pre*}"
-MY_P="pulseaudio-${MY_PV}"
-inherit bash-completion-r1 gnome2-utils meson-multilib optfeature systemd udev
-
-DESCRIPTION="Libraries for PulseAudio clients"
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/"
-
-if [[ ${PV} = 9999 ]]; then
-	inherit git-r3
-	EGIT_BRANCH="master"
-	EGIT_REPO_URI="https://gitlab.freedesktop.org/pulseaudio/pulseaudio"
-else
-	SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${MY_P}.tar.xz"
-	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
-fi
-
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="LGPL-2.1+"
-
-SLOT="0"
-IUSE="+asyncns dbus doc +glib gtk selinux systemd test valgrind X"
-RESTRICT="!test? ( test )"
-
-# NOTE: libpcre needed in some cases, bug #472228
-# TODO: libatomic_ops is only needed on some architectures and conditions, and then at runtime too
-RDEPEND="
-	dev-libs/libatomic_ops
-	>=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}]
-	virtual/libc
-	asyncns? ( >=net-libs/libasyncns-0.1[${MULTILIB_USEDEP}] )
-	dbus? ( >=sys-apps/dbus-1.4.12[${MULTILIB_USEDEP}] )
-	glib? ( >=dev-libs/glib-2.28.0:2[${MULTILIB_USEDEP}] )
-	gtk? ( x11-libs/gtk+:3 )
-	selinux? ( sec-policy/selinux-pulseaudio )
-	systemd? ( sys-apps/systemd:= )
-	valgrind? ( dev-util/valgrind )
-	X? (
-		x11-libs/libX11[${MULTILIB_USEDEP}]
-		>=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}]
-	)
-	|| (
-		elibc_glibc? ( virtual/libc )
-		dev-libs/libpcre:3
-	)
-	!<media-sound/pulseaudio-15.0-r100
-"
-
-DEPEND="${RDEPEND}
-	test? ( >=dev-libs/check-0.9.10 )
-	X? ( x11-base/xorg-proto )
-"
-
-# pulseaudio ships a bundled xmltoman, which uses XML::Parser
-BDEPEND="
-	dev-lang/perl
-	dev-perl/XML-Parser
-	sys-devel/gettext
-	sys-devel/m4
-	virtual/libiconv
-	virtual/libintl
-	virtual/pkgconfig
-	doc? ( app-doc/doxygen )
-"
-
-DOCS=( NEWS README )
-
-# patches merged upstream, to be removed with 16.0 bump
-PATCHES=(
-	"${FILESDIR}"/pulseaudio-16.0-fix-pactl-volume-command.patch
-)
-
-src_prepare() {
-	default
-
-	# disable autospawn by client
-	sed -i -e 's:; autospawn = yes:autospawn = no:g' src/pulse/client.conf.in || die
-
-	gnome2_environment_reset
-}
-
-multilib_src_configure() {
-	local emesonargs=(
-		--localstatedir="${EPREFIX}"/var
-
-		-Ddaemon=false
-		-Dclient=true
-		$(meson_native_use_bool doc doxygen)
-		-Dgcov=false
-		# tests involve random modules, so just do them for the native # TODO: tests should run always
-		$(meson_native_use_bool test tests)
-		-Ddatabase=simple # Not used for non-daemon, simple database avoids external dep checks
-		-Dstream-restore-clear-old-devices=true
-		-Drunning-from-build-tree=false
-
-		# Paths
-		-Dmodlibexecdir="${EPREFIX}/usr/$(get_libdir)/pulseaudio/modules" # Was $(get_libdir)/${P}
-		-Dsystemduserunitdir=$(systemd_get_userunitdir)
-		-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
-		-Dbashcompletiondir="$(get_bashcompdir)" # Alternatively DEPEND on app-shells/bash-completion for pkg-config to provide the value
-
-		# Optional features
-		-Dalsa=disabled
-		$(meson_feature asyncns)
-		-Davahi=disabled
-		-Dbluez5=disabled
-		-Dbluez5-gstreamer=disabled
-		-Dbluez5-native-headset=false
-		-Dbluez5-ofono-headset=false
-		$(meson_feature dbus)
-		-Delogind=disabled
-		-Dfftw=disabled
-		$(meson_feature glib) # WARNING: toggling this likely changes ABI
-		-Dgsettings=disabled
-		-Dgstreamer=disabled
-		$(meson_native_use_feature gtk)
-		-Dhal-compat=false
-		-Dipv6=true
-		-Djack=disabled
-		-Dlirc=disabled
-		-Dopenssl=disabled
-		-Dorc=disabled
-		-Doss-output=disabled
-		-Dsamplerate=disabled # Matches upstream
-		-Dsoxr=disabled
-		-Dspeex=disabled
-		$(meson_native_use_feature systemd)
-		-Dtcpwrap=disabled
-		-Dudev=disabled
-		$(meson_native_use_feature valgrind)
-		$(meson_feature X x11)
-
-		# Echo cancellation
-		-Dadrian-aec=false
-		-Dwebrtc-aec=disabled
-	)
-
-	if multilib_is_native_abi; then
-		# Make padsp work for non-native ABI, supposedly only possible with glibc;
-		# this is used by /usr/bin/padsp that comes from native build, thus we need
-		# this argument for native build
-		if use elibc_glibc; then
-			emesonargs+=( -Dpulsedsp-location="${EPREFIX}"'/usr/\\$$LIB/pulseaudio' )
-		fi
-	else
-		emesonargs+=( -Dman=false )
-		if ! use elibc_glibc; then
-			# Non-glibc multilib is probably non-existent but just in case:
-			ewarn "padsp wrapper for OSS emulation will only work with native ABI applications!"
-		fi
-	fi
-
-	meson_src_configure
-}
-
-multilib_src_compile() {
-	meson_src_compile
-
-	if multilib_is_native_abi; then
-		if use doc; then
-			einfo "Generating documentation ..."
-			meson_src_compile doxygen
-		fi
-	fi
-}
-
-multilib_src_install() {
-	# The files referenced in the DOCS array do not exist in the multilib source directory,
-	# therefore clear the variable when calling the function that will access it.
-	DOCS= meson_src_install
-
-	# Upstream installs 'pactl' if client is built, with all symlinks except for
-	# 'pulseaudio', 'pacmd' and 'pasuspender' which are installed if server is built.
-	# This trips QA warning, workaround:
-	# - install missing aliases in media-libs/libpulse (client build)
-	# - remove corresponding symlinks in media-sound/pulseaudio-daemonclient (server build)
-	bashcomp_alias pactl pulseaudio
-	bashcomp_alias pactl pacmd
-	bashcomp_alias pactl pasuspender
-
-	if multilib_is_native_abi; then
-		if use doc; then
-			einfo "Installing documentation ..."
-			docinto html
-			dodoc -r doxygen/html/.
-		fi
-	fi
-}
-
-multilib_src_install_all() {
-	einstalldocs
-
-	find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
-}
-
-pkg_postinst() {
-	optfeature_header "PulseAudio can be enhanced by installing the following:"
-	use dbus && optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit
-}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/libpulse/, media-libs/libpulse/files/
@ 2022-12-10  9:35 Mart Raudsepp
  0 siblings, 0 replies; 5+ messages in thread
From: Mart Raudsepp @ 2022-12-10  9:35 UTC (permalink / raw
  To: gentoo-commits

commit:     deb2056821331da239e3c7feacff70a3cc0eafc3
Author:     Igor V. Kovalenko <igor.v.kovalenko <AT> gmail <DOT> com>
AuthorDate: Sat Dec 10 09:30:44 2022 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sat Dec 10 09:35:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb20568

media-libs/libpulse: Don't assume gdkx

Upstream commit 89ce6321bd19452097392ddfb416bc51a280b63e

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28623
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 ...ulseaudio-16.1-proplist-util-without-gdkx.patch | 42 ++++++++++++++++++++++
 media-libs/libpulse/libpulse-16.1-r2.ebuild        |  1 +
 2 files changed, 43 insertions(+)

diff --git a/media-libs/libpulse/files/pulseaudio-16.1-proplist-util-without-gdkx.patch b/media-libs/libpulse/files/pulseaudio-16.1-proplist-util-without-gdkx.patch
new file mode 100644
index 000000000000..a5e025ccb4dc
--- /dev/null
+++ b/media-libs/libpulse/files/pulseaudio-16.1-proplist-util-without-gdkx.patch
@@ -0,0 +1,42 @@
+commit 89ce6321bd19452097392ddfb416bc51a280b63e
+Author: Mart Raudsepp <leio@gentoo.org>
+Date:   Wed Nov 30 09:25:22 2022 +0200
+
+    proplist-util: Don't assume gdkx is there as gtk could be built without it
+    
+    Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/757>
+
+diff --git a/src/pulsecore/proplist-util.c b/src/pulsecore/proplist-util.c
+index 16ea9e006..1330ef5ef 100644
+--- a/src/pulsecore/proplist-util.c
++++ b/src/pulsecore/proplist-util.c
+@@ -51,10 +51,12 @@ static const gchar* _g_get_application_name(void) PA_GCC_WEAKREF(g_get_applicati
+ #if defined(HAVE_GTK) && defined(PA_GCC_WEAKREF)
+ #pragma GCC diagnostic ignored "-Wstrict-prototypes"
+ #include <gtk/gtk.h>
+-#include <gdk/gdkx.h>
+ static const gchar* _gtk_window_get_default_icon_name(void) PA_GCC_WEAKREF(gtk_window_get_default_icon_name);
++#ifdef GDK_WINDOWING_X11
++#include <gdk/gdkx.h>
+ static Display *_gdk_display PA_GCC_WEAKREF(gdk_display);
+ #endif
++#endif
+ 
+ #include "proplist-util.h"
+ 
+@@ -89,6 +91,7 @@ static void add_gtk_properties(pa_proplist *p) {
+                 pa_proplist_sets(p, PA_PROP_APPLICATION_ICON_NAME, t);
+         }
+ 
++#ifdef GDK_WINDOWING_X11
+     if (!pa_proplist_contains(p, PA_PROP_WINDOW_X11_DISPLAY))
+         if (&_gdk_display && _gdk_display) {
+             const char *t;
+@@ -99,6 +102,7 @@ static void add_gtk_properties(pa_proplist *p) {
+                 pa_proplist_sets(p, PA_PROP_WINDOW_X11_DISPLAY, t);
+         }
+ 
++#endif
+ #endif
+ }
+ 

diff --git a/media-libs/libpulse/libpulse-16.1-r2.ebuild b/media-libs/libpulse/libpulse-16.1-r2.ebuild
index 773e74668690..5ee6d6fdcbad 100644
--- a/media-libs/libpulse/libpulse-16.1-r2.ebuild
+++ b/media-libs/libpulse/libpulse-16.1-r2.ebuild
@@ -77,6 +77,7 @@ DOCS=( NEWS README )
 # patches merged upstream, to be removed with 16.2 or later bump
 PATCHES=(
 	"${FILESDIR}"/pulseaudio-16.1-memfd-cleanup.patch
+	"${FILESDIR}"/pulseaudio-16.1-proplist-util-without-gdkx.patch
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/libpulse/, media-libs/libpulse/files/
@ 2024-11-10 10:18 Andreas Sturmlechner
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Sturmlechner @ 2024-11-10 10:18 UTC (permalink / raw
  To: gentoo-commits

commit:     a79464d7a2a35772d1829b21a84a0778b293aa63
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  9 19:38:10 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 10:18:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a79464d7

media-libs/libpulse: drop 16.1-r2, 16.99.1

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-libs/libpulse/Manifest                       |   2 -
 .../files/pulseaudio-16.1-memfd-cleanup.patch      |  28 ---
 ...ulseaudio-16.1-proplist-util-without-gdkx.patch |  42 ----
 .../files/pulseaudio-16.99.1-memfd-compat.patch    |  24 ---
 media-libs/libpulse/libpulse-16.1-r2.ebuild        | 208 --------------------
 media-libs/libpulse/libpulse-16.99.1.ebuild        | 215 ---------------------
 6 files changed, 519 deletions(-)

diff --git a/media-libs/libpulse/Manifest b/media-libs/libpulse/Manifest
index 776caac18a80..42cd89ab8f99 100644
--- a/media-libs/libpulse/Manifest
+++ b/media-libs/libpulse/Manifest
@@ -1,3 +1 @@
-DIST pulseaudio-16.1.tar.xz 1545596 BLAKE2B 535706abcea2cae39834b23c8bdc37f71b0e633de2d8e43ea4425da97a850b57c2f980c318681cbc86cf1e746200609dad41f8b96ecf4568f86d94aa6831c9a1 SHA512 33b0b4292f05e0882f3ec822cf5720414bb34c523d80fe287b9740d6be219787c562e8024c9b0d9e2ee010771ca72c7ae4f27df1bbef9c9cb6bb6a23cbcc412f
-DIST pulseaudio-16.99.1.tar.xz 1565020 BLAKE2B 02aad918e2b76dcf250bd55e03460206c7781cd1b43aa2efe46b25258626892e07f478b9966fa5027c9ae0a370145f5204dba05d2f5dfbfd3ba956225ccb3cad SHA512 1a3347e4c892ba0e321d39184f8bd52cfd16f59e66e52a753d6f706dfbf3f170f87b7ff27c0a6cdf3e462e6dd531ecde6829d48a374d0be2622688fb85abaac2
 DIST pulseaudio-17.0.tar.xz 1566556 BLAKE2B 781ece3d507916aa681d3b0132689730a621b4d92e45f86570e4d2fdebc4c0025ebe7f7a05046545f9b26caca513e8975f12498fa314524bc67eacaea72842fa SHA512 be0aec46204d9c9188a796fbe41b4cf6f0f5e6b16fa08ce359b8f0f51253f0ade364b89448bbf5faa2af7e59deb6c72194734c3233944250dcfd4f31968a5e97

diff --git a/media-libs/libpulse/files/pulseaudio-16.1-memfd-cleanup.patch b/media-libs/libpulse/files/pulseaudio-16.1-memfd-cleanup.patch
deleted file mode 100644
index b24ab8943899..000000000000
--- a/media-libs/libpulse/files/pulseaudio-16.1-memfd-cleanup.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-commit e650c2b33e4fefc0589751b3958bd3b5d3b423ac
-Author: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
-Date:   Thu Nov 3 09:22:48 2022 +1100
-
-    Ensure fds are closed when exec functions are used.
-    
-    When usng shm_open, FD_CLOEXEC is set explicitly.
-    
-    However when using memfd_create, we must pass the MFD_CLOEXEC flag
-    to ensure the same fcntl value (FD_CLOEXEC) is set.
-    
-    Fixes #1394
-    
-    Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/751>
-
-diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c
-index e464f6bce..ff54dcb59 100644
---- a/src/pulsecore/shm.c
-+++ b/src/pulsecore/shm.c
-@@ -164,7 +164,7 @@ static int sharedmem_create(pa_shm *m, pa_mem_type_t type, size_t size, mode_t m
- #endif
- #ifdef HAVE_MEMFD
-     case PA_MEM_TYPE_SHARED_MEMFD:
--        fd = memfd_create("pulseaudio", MFD_ALLOW_SEALING);
-+        fd = memfd_create("pulseaudio", MFD_ALLOW_SEALING|MFD_CLOEXEC);
-         break;
- #endif
-     default:

diff --git a/media-libs/libpulse/files/pulseaudio-16.1-proplist-util-without-gdkx.patch b/media-libs/libpulse/files/pulseaudio-16.1-proplist-util-without-gdkx.patch
deleted file mode 100644
index a5e025ccb4dc..000000000000
--- a/media-libs/libpulse/files/pulseaudio-16.1-proplist-util-without-gdkx.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-commit 89ce6321bd19452097392ddfb416bc51a280b63e
-Author: Mart Raudsepp <leio@gentoo.org>
-Date:   Wed Nov 30 09:25:22 2022 +0200
-
-    proplist-util: Don't assume gdkx is there as gtk could be built without it
-    
-    Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/757>
-
-diff --git a/src/pulsecore/proplist-util.c b/src/pulsecore/proplist-util.c
-index 16ea9e006..1330ef5ef 100644
---- a/src/pulsecore/proplist-util.c
-+++ b/src/pulsecore/proplist-util.c
-@@ -51,10 +51,12 @@ static const gchar* _g_get_application_name(void) PA_GCC_WEAKREF(g_get_applicati
- #if defined(HAVE_GTK) && defined(PA_GCC_WEAKREF)
- #pragma GCC diagnostic ignored "-Wstrict-prototypes"
- #include <gtk/gtk.h>
--#include <gdk/gdkx.h>
- static const gchar* _gtk_window_get_default_icon_name(void) PA_GCC_WEAKREF(gtk_window_get_default_icon_name);
-+#ifdef GDK_WINDOWING_X11
-+#include <gdk/gdkx.h>
- static Display *_gdk_display PA_GCC_WEAKREF(gdk_display);
- #endif
-+#endif
- 
- #include "proplist-util.h"
- 
-@@ -89,6 +91,7 @@ static void add_gtk_properties(pa_proplist *p) {
-                 pa_proplist_sets(p, PA_PROP_APPLICATION_ICON_NAME, t);
-         }
- 
-+#ifdef GDK_WINDOWING_X11
-     if (!pa_proplist_contains(p, PA_PROP_WINDOW_X11_DISPLAY))
-         if (&_gdk_display && _gdk_display) {
-             const char *t;
-@@ -99,6 +102,7 @@ static void add_gtk_properties(pa_proplist *p) {
-                 pa_proplist_sets(p, PA_PROP_WINDOW_X11_DISPLAY, t);
-         }
- 
-+#endif
- #endif
- }
- 

diff --git a/media-libs/libpulse/files/pulseaudio-16.99.1-memfd-compat.patch b/media-libs/libpulse/files/pulseaudio-16.99.1-memfd-compat.patch
deleted file mode 100644
index 77af0ac915f6..000000000000
--- a/media-libs/libpulse/files/pulseaudio-16.99.1-memfd-compat.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-commit 421cf15486eea1b52f10e2b0be305018fee8c285
-Author: Rudi Heitbaum <rudi@heitbaum.com>
-Date:   Sun Aug 13 09:37:32 2023 +0000
-
-    shm: allow for older versions of Linux without MFD_NOEXEC_SEAL
-    
-    Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/794>
-
-diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c
-index 4247b0921..694f971b4 100644
---- a/src/pulsecore/shm.c
-+++ b/src/pulsecore/shm.c
-@@ -164,7 +164,11 @@ static int sharedmem_create(pa_shm *m, pa_mem_type_t type, size_t size, mode_t m
- #endif
- #ifdef HAVE_MEMFD
-     case PA_MEM_TYPE_SHARED_MEMFD:
-+        /* For linux >= 6.3 create fd with MFD_NOEXEC_SEAL flag */
-         fd = memfd_create("pulseaudio", MFD_ALLOW_SEALING|MFD_CLOEXEC|MFD_NOEXEC_SEAL);
-+        /* Retry creating fd without MFD_NOEXEC_SEAL to support linux < 6.3 */
-+        if (fd < 0)
-+            fd = memfd_create("pulseaudio", MFD_ALLOW_SEALING|MFD_CLOEXEC);
-         break;
- #endif
-     default:

diff --git a/media-libs/libpulse/libpulse-16.1-r2.ebuild b/media-libs/libpulse/libpulse-16.1-r2.ebuild
deleted file mode 100644
index 1a552c4be5cb..000000000000
--- a/media-libs/libpulse/libpulse-16.1-r2.ebuild
+++ /dev/null
@@ -1,208 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-MY_PV="${PV/_pre*}"
-MY_P="pulseaudio-${MY_PV}"
-inherit bash-completion-r1 gnome2-utils meson-multilib optfeature systemd udev
-
-DESCRIPTION="Libraries for PulseAudio clients"
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/"
-
-if [[ ${PV} = 9999 ]]; then
-	inherit git-r3
-	EGIT_BRANCH="master"
-	EGIT_REPO_URI="https://gitlab.freedesktop.org/pulseaudio/pulseaudio"
-else
-	SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${MY_P}.tar.xz"
-	KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
-fi
-
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="LGPL-2.1+"
-
-SLOT="0"
-IUSE="+asyncns dbus doc +glib gtk selinux systemd test valgrind X"
-RESTRICT="!test? ( test )"
-
-# NOTE: libpcre needed in some cases, bug #472228
-# TODO: libatomic_ops is only needed on some architectures and conditions, and then at runtime too
-RDEPEND="
-	dev-libs/libatomic_ops
-	>=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}]
-	asyncns? ( >=net-libs/libasyncns-0.1[${MULTILIB_USEDEP}] )
-	dbus? ( >=sys-apps/dbus-1.4.12[${MULTILIB_USEDEP}] )
-	elibc_mingw? ( dev-libs/libpcre:3 )
-	glib? ( >=dev-libs/glib-2.28.0:2[${MULTILIB_USEDEP}] )
-	gtk? ( x11-libs/gtk+:3 )
-	selinux? ( sec-policy/selinux-pulseaudio )
-	systemd? ( sys-apps/systemd:= )
-	valgrind? ( dev-debug/valgrind )
-	X? (
-		x11-libs/libX11[${MULTILIB_USEDEP}]
-		>=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}]
-	)
-	!<media-sound/pulseaudio-15.0-r100
-"
-
-DEPEND="${RDEPEND}
-	test? ( >=dev-libs/check-0.9.10 )
-	X? ( x11-base/xorg-proto )
-"
-
-# pulseaudio ships a bundled xmltoman, which uses XML::Parser
-BDEPEND="
-	dev-lang/perl
-	dev-perl/XML-Parser
-	sys-devel/gettext
-	sys-devel/m4
-	virtual/libiconv
-	virtual/libintl
-	virtual/pkgconfig
-	doc? ( app-text/doxygen )
-"
-PDEPEND="
-	|| (
-		media-video/pipewire[sound-server(+)]
-		media-sound/pulseaudio-daemon
-		media-sound/pulseaudio[daemon(+)]
-	)
-"
-
-DOCS=( NEWS README )
-
-# patches merged upstream, to be removed with 16.2 or later bump
-PATCHES=(
-	"${FILESDIR}"/pulseaudio-16.1-memfd-cleanup.patch
-	"${FILESDIR}"/pulseaudio-16.1-proplist-util-without-gdkx.patch
-)
-
-src_prepare() {
-	default
-
-	# disable autospawn by client
-	sed -i -e 's:; autospawn = yes:autospawn = no:g' src/pulse/client.conf.in || die
-
-	gnome2_environment_reset
-}
-
-multilib_src_configure() {
-	local emesonargs=(
-		--localstatedir="${EPREFIX}"/var
-
-		-Ddaemon=false
-		-Dclient=true
-		$(meson_native_use_bool doc doxygen)
-		-Dgcov=false
-		# tests involve random modules, so just do them for the native # TODO: tests should run always
-		$(meson_native_use_bool test tests)
-		-Ddatabase=simple # Not used for non-daemon, simple database avoids external dep checks
-		-Dstream-restore-clear-old-devices=true
-		-Drunning-from-build-tree=false
-
-		# Paths
-		-Dmodlibexecdir="${EPREFIX}/usr/$(get_libdir)/pulseaudio/modules" # Was $(get_libdir)/${P}
-		-Dsystemduserunitdir=$(systemd_get_userunitdir)
-		-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
-		-Dbashcompletiondir="$(get_bashcompdir)" # Alternatively DEPEND on app-shells/bash-completion for pkg-config to provide the value
-
-		# Optional features
-		-Dalsa=disabled
-		$(meson_feature asyncns)
-		-Davahi=disabled
-		-Dbluez5=disabled
-		-Dbluez5-gstreamer=disabled
-		-Dbluez5-native-headset=false
-		-Dbluez5-ofono-headset=false
-		$(meson_feature dbus)
-		-Delogind=disabled
-		-Dfftw=disabled
-		$(meson_feature glib) # WARNING: toggling this likely changes ABI
-		-Dgsettings=disabled
-		-Dgstreamer=disabled
-		$(meson_native_use_feature gtk)
-		-Dhal-compat=false
-		-Dipv6=true
-		-Djack=disabled
-		-Dlirc=disabled
-		-Dopenssl=disabled
-		-Dorc=disabled
-		-Doss-output=disabled
-		-Dsamplerate=disabled # Matches upstream
-		-Dsoxr=disabled
-		-Dspeex=disabled
-		$(meson_native_use_feature systemd)
-		-Dtcpwrap=disabled
-		-Dudev=disabled
-		$(meson_native_use_feature valgrind)
-		$(meson_feature X x11)
-
-		# Echo cancellation
-		-Dadrian-aec=false
-		-Dwebrtc-aec=disabled
-	)
-
-	if multilib_is_native_abi; then
-		# Make padsp work for non-native ABI, supposedly only possible with glibc;
-		# this is used by /usr/bin/padsp that comes from native build, thus we need
-		# this argument for native build
-		if use elibc_glibc; then
-			emesonargs+=( -Dpulsedsp-location="${EPREFIX}"'/usr/\\$$LIB/pulseaudio' )
-		fi
-	else
-		emesonargs+=( -Dman=false )
-		if ! use elibc_glibc; then
-			# Non-glibc multilib is probably non-existent but just in case:
-			ewarn "padsp wrapper for OSS emulation will only work with native ABI applications!"
-		fi
-	fi
-
-	meson_src_configure
-}
-
-multilib_src_compile() {
-	meson_src_compile
-
-	if multilib_is_native_abi; then
-		if use doc; then
-			einfo "Generating documentation ..."
-			meson_src_compile doxygen
-		fi
-	fi
-}
-
-multilib_src_install() {
-	# The files referenced in the DOCS array do not exist in the multilib source directory,
-	# therefore clear the variable when calling the function that will access it.
-	DOCS= meson_src_install
-
-	# Upstream installs 'pactl' if client is built, with all symlinks except for
-	# 'pulseaudio', 'pacmd' and 'pasuspender' which are installed if server is built.
-	# This trips QA warning, workaround:
-	# - install missing aliases in media-libs/libpulse (client build)
-	# - remove corresponding symlinks in media-sound/pulseaudio-daemonclient (server build)
-	bashcomp_alias pactl pulseaudio
-	bashcomp_alias pactl pacmd
-	bashcomp_alias pactl pasuspender
-
-	if multilib_is_native_abi; then
-		if use doc; then
-			einfo "Installing documentation ..."
-			docinto html
-			dodoc -r doxygen/html/.
-		fi
-	fi
-}
-
-multilib_src_install_all() {
-	einstalldocs
-
-	find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
-}
-
-pkg_postinst() {
-	optfeature_header "PulseAudio can be enhanced by installing the following:"
-	use dbus && optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit
-}

diff --git a/media-libs/libpulse/libpulse-16.99.1.ebuild b/media-libs/libpulse/libpulse-16.99.1.ebuild
deleted file mode 100644
index 833d72d57d8b..000000000000
--- a/media-libs/libpulse/libpulse-16.99.1.ebuild
+++ /dev/null
@@ -1,215 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-MY_PV="${PV/_pre*}"
-MY_P="pulseaudio-${MY_PV}"
-inherit bash-completion-r1 flag-o-matic gnome2-utils meson-multilib optfeature systemd toolchain-funcs udev
-
-DESCRIPTION="Libraries for PulseAudio clients"
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/"
-
-if [[ ${PV} = 9999 ]]; then
-	inherit git-r3
-	EGIT_BRANCH="master"
-	EGIT_REPO_URI="https://gitlab.freedesktop.org/pulseaudio/pulseaudio"
-else
-	SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${MY_P}.tar.xz"
-	KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
-fi
-
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="LGPL-2.1+"
-
-SLOT="0"
-IUSE="+asyncns dbus doc +glib gtk selinux systemd test valgrind X"
-RESTRICT="!test? ( test )"
-
-# NOTE: libpcre needed in some cases, bug #472228
-# TODO: libatomic_ops is only needed on some architectures and conditions, and then at runtime too
-RDEPEND="
-	dev-libs/libatomic_ops
-	>=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}]
-	asyncns? ( >=net-libs/libasyncns-0.1[${MULTILIB_USEDEP}] )
-	dbus? ( >=sys-apps/dbus-1.4.12[${MULTILIB_USEDEP}] )
-	elibc_mingw? ( dev-libs/libpcre:3 )
-	glib? ( >=dev-libs/glib-2.28.0:2[${MULTILIB_USEDEP}] )
-	gtk? ( x11-libs/gtk+:3 )
-	selinux? ( sec-policy/selinux-pulseaudio )
-	systemd? ( sys-apps/systemd:= )
-	valgrind? ( dev-debug/valgrind )
-	X? (
-		x11-libs/libX11[${MULTILIB_USEDEP}]
-		>=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}]
-	)
-	!<media-sound/pulseaudio-16.1
-	!<media-sound/pulseaudio-daemon-16.99.1
-"
-
-DEPEND="${RDEPEND}
-	test? ( >=dev-libs/check-0.9.10 )
-	X? ( x11-base/xorg-proto )
-"
-
-# pulseaudio ships a bundled xmltoman, which uses XML::Parser
-BDEPEND="
-	dev-lang/perl
-	dev-perl/XML-Parser
-	sys-devel/gettext
-	sys-devel/m4
-	virtual/libiconv
-	virtual/libintl
-	virtual/pkgconfig
-	doc? ( app-text/doxygen )
-"
-PDEPEND="
-	|| (
-		media-video/pipewire[sound-server(+)]
-		media-sound/pulseaudio-daemon
-		media-sound/pulseaudio[daemon(+)]
-	)
-"
-
-DOCS=( NEWS README )
-
-# patches merged upstream, to be removed with 16.99.2 or later bump
-PATCHES=(
-	"${FILESDIR}"/pulseaudio-16.99.1-memfd-compat.patch
-)
-
-src_prepare() {
-	default
-
-	# disable autospawn by client
-	sed -i -e 's:; autospawn = yes:autospawn = no:g' src/pulse/client.conf.in || die
-
-	gnome2_environment_reset
-}
-
-multilib_src_configure() {
-	# ideally we want !tc-ld-is-bfd for best future-proofing, but it needs
-	# https://github.com/gentoo/gentoo/pull/28355
-	# mold needs this too but right now tc-ld-is-mold is also not available
-	if tc-ld-is-lld; then
-		append-ldflags -Wl,--undefined-version
-	fi
-
-	local emesonargs=(
-		--localstatedir="${EPREFIX}"/var
-
-		-Ddaemon=false
-		-Dclient=true
-		$(meson_native_use_bool doc doxygen)
-		-Dgcov=false
-		# tests involve random modules, so just do them for the native # TODO: tests should run always
-		$(meson_native_use_bool test tests)
-		-Ddatabase=simple # Not used for non-daemon, simple database avoids external dep checks
-		-Dstream-restore-clear-old-devices=true
-		-Drunning-from-build-tree=false
-
-		# Paths
-		-Dmodlibexecdir="${EPREFIX}/usr/$(get_libdir)/pulseaudio/modules" # Was $(get_libdir)/${P}
-		-Dsystemduserunitdir=$(systemd_get_userunitdir)
-		-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
-		-Dbashcompletiondir="$(get_bashcompdir)" # Alternatively DEPEND on app-shells/bash-completion for pkg-config to provide the value
-
-		# Optional features
-		-Dalsa=disabled
-		$(meson_feature asyncns)
-		-Davahi=disabled
-		-Dbluez5=disabled
-		-Dbluez5-gstreamer=disabled
-		-Dbluez5-native-headset=false
-		-Dbluez5-ofono-headset=false
-		$(meson_feature dbus)
-		-Delogind=disabled
-		-Dfftw=disabled
-		$(meson_feature glib) # WARNING: toggling this likely changes ABI
-		-Dgsettings=disabled
-		-Dgstreamer=disabled
-		$(meson_native_use_feature gtk)
-		-Dhal-compat=false
-		-Dipv6=true
-		-Djack=disabled
-		-Dlirc=disabled
-		-Dopenssl=disabled
-		-Dorc=disabled
-		-Doss-output=disabled
-		-Dsamplerate=disabled # Matches upstream
-		-Dsoxr=disabled
-		-Dspeex=disabled
-		$(meson_native_use_feature systemd)
-		-Dtcpwrap=disabled
-		-Dudev=disabled
-		$(meson_native_use_feature valgrind)
-		$(meson_feature X x11)
-
-		# Echo cancellation
-		-Dadrian-aec=false
-		-Dwebrtc-aec=disabled
-	)
-
-	if multilib_is_native_abi; then
-		# Make padsp work for non-native ABI, supposedly only possible with glibc;
-		# this is used by /usr/bin/padsp that comes from native build, thus we need
-		# this argument for native build
-		if use elibc_glibc; then
-			emesonargs+=( -Dpulsedsp-location="${EPREFIX}"'/usr/\\$$LIB/pulseaudio' )
-		fi
-	else
-		emesonargs+=( -Dman=false )
-		if ! use elibc_glibc; then
-			# Non-glibc multilib is probably non-existent but just in case:
-			ewarn "padsp wrapper for OSS emulation will only work with native ABI applications!"
-		fi
-	fi
-
-	meson_src_configure
-}
-
-multilib_src_compile() {
-	meson_src_compile
-
-	if multilib_is_native_abi; then
-		if use doc; then
-			einfo "Generating documentation ..."
-			meson_src_compile doxygen
-		fi
-	fi
-}
-
-multilib_src_install() {
-	# The files referenced in the DOCS array do not exist in the multilib source directory,
-	# therefore clear the variable when calling the function that will access it.
-	DOCS= meson_src_install
-
-	# Upstream installs 'pactl' if client is built, with all symlinks except for
-	# 'pulseaudio', 'pacmd' and 'pasuspender' which are installed if server is built.
-	# This trips QA warning, workaround:
-	# - install missing aliases in media-libs/libpulse (client build)
-	# - remove corresponding symlinks in media-sound/pulseaudio-daemonclient (server build)
-	bashcomp_alias pactl pulseaudio
-	bashcomp_alias pactl pacmd
-	bashcomp_alias pactl pasuspender
-
-	if multilib_is_native_abi; then
-		if use doc; then
-			einfo "Installing documentation ..."
-			docinto html
-			dodoc -r doxygen/html/.
-		fi
-	fi
-}
-
-multilib_src_install_all() {
-	einstalldocs
-
-	find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
-}
-
-pkg_postinst() {
-	optfeature_header "PulseAudio can be enhanced by installing the following:"
-	use dbus && optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit
-}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-10 10:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-18  0:18 [gentoo-commits] repo/gentoo:master commit in: media-libs/libpulse/, media-libs/libpulse/files/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2024-11-10 10:18 Andreas Sturmlechner
2022-12-10  9:35 Mart Raudsepp
2022-07-31  3:40 Sam James
2022-02-21  0:52 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox