package/pulseaudio: bump version to 10.0
PATCH 1/1 package/pulseaudio: bump version to 10.0
Release notes:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/
Dependency to json-c was dropped, updated reverse dependencies as well. Added optional dependency to libatomic_ops.
Removed patch which was applied upstream:
0002-webrtc-C-11-is-only-required-for-WebRTC-support.patch
--- package/efl/Config.in | 1 - package/espeak/Config.in | 1 - package/gstreamer/gst-plugins-good/Config.in | 2 -- package/gstreamer1/gst1-plugins-good/Config.in | 2 -- package/mpd/Config.in | 2 -- ...-C-11-is-only-required-for-WebRTC-support.patch | 41 ---------------------- package/pulseaudio/Config.in | 4 +-- package/pulseaudio/pulseaudio.hash | 8 +++-- package/pulseaudio/pulseaudio.mk | 20 +++++------ 9 files changed, 15 insertions(+), 66 deletions(-) delete mode 100644 package/pulseaudio/0002-webrtc-C-11-is-only-required-for-WebRTC-support.patch
package/efl/Config.in +0 -1
@@ -87,7 +87,6 @@ config BR2_PACKAGE_EFL_LIBSNDFILE config BR2_PACKAGE_EFL_PULSEAUDIO bool "Enable pulseaudio support (recommended)" - depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c select BR2_PACKAGE_PULSEAUDIO default y help
package/espeak/Config.in +0 -1
@@ -32,7 +32,6 @@ config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO bool "pulseaudio" - depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c select BR2_PACKAGE_PULSEAUDIO endchoice
package/gstreamer/gst-plugins-good/Config.in +0 -2
@@ -204,13 +204,11 @@ config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_PULSE depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio depends on BR2_USE_MMU # pulseaudio depends on !BR2_STATIC_LIBS # pulseaudio - depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c select BR2_PACKAGE_PULSEAUDIO bool "pulseaudio" comment "pulseaudio support needs a toolchain w/ threads, dynamic library" depends on BR2_USE_MMU - depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_SOUPHTTPSRC
package/gstreamer1/gst1-plugins-good/Config.in +0 -2
@@ -319,7 +319,6 @@ config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_PULSE depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio depends on BR2_USE_MMU # pulseaudio depends on !BR2_STATIC_LIBS # pulseaudio - depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c select BR2_PACKAGE_PULSEAUDIO bool "pulseaudio" help
@@ -327,7 +326,6 @@ config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_PULSE comment "pulseaudio support needs a toolchain w/ threads, dynamic library" depends on BR2_USE_MMU - depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SOUPHTTPSRC
package/mpd/Config.in +0 -2
@@ -252,13 +252,11 @@ config BR2_PACKAGE_MPD_OSS config BR2_PACKAGE_MPD_PULSEAUDIO bool "pulseaudio" depends on !BR2_STATIC_LIBS # pulseaudio - depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c select BR2_PACKAGE_PULSEAUDIO help Enable pulseaudio output support. comment "pulseaudio support needs a toolchain w/ dynamic library" - depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on BR2_STATIC_LIBS config BR2_PACKAGE_MPD_SHOUTCAST
package/pulseaudio/0002-webrtc-C-11-is-only-required-for-WebRTC-support.patch deleted +0 -41
41 lines not on this page · raw message
package/pulseaudio/Config.in +1 -3
@@ -3,9 +3,8 @@ config BR2_PACKAGE_PULSEAUDIO depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_STATIC_LIBS - depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c + select BR2_PACKAGE_LIBATOMIC_OPS if !BR2_TOOLCHAIN_HAS_SYNC_4 select BR2_PACKAGE_LIBTOOL - select BR2_PACKAGE_JSON_C select BR2_PACKAGE_LIBSNDFILE select BR2_PACKAGE_SPEEX depends on BR2_USE_MMU # fork()
@@ -33,5 +32,4 @@ endif comment "pulseaudio needs a toolchain w/ wchar, threads, dynamic library" depends on BR2_USE_MMU - depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
package/pulseaudio/pulseaudio.hash +5 -3
@@ -1,3 +1,5 @@ -# From http://freedesktop.org/software/pulseaudio/releases/pulseaudio-9.0.tar.xz.{md5,sha1} -md5 da7162541b3a9bc20576dbd0d7d1489a pulseaudio-9.0.tar.xz -sha1 d9a9d7cb667ed95ee1de4b6544d5c7444c5a0064 pulseaudio-9.0.tar.xz +# From http://freedesktop.org/software/pulseaudio/releases/pulseaudio-10.0.tar.xz.{md5,sha1} +md5 4950d2799bf55ab91f6b7f990b7f0971 pulseaudio-10.0.tar.xz +sha1 ab7cc41a2dc2b9da0794e3a51a4eb7e82e7da511 pulseaudio-10.0.tar.xz +# Locally computed +sha256 a3186824de9f0d2095ded5d0d0db0405dc73133983c2fbb37291547e37462f57 pulseaudio-10.0.tar.xz
package/pulseaudio/pulseaudio.mk +9 -11
@@ -4,7 +4,7 @@ # ################################################################################ -PULSEAUDIO_VERSION = 9.0 +PULSEAUDIO_VERSION = 10.0 PULSEAUDIO_SOURCE = pulseaudio-$(PULSEAUDIO_VERSION).tar.xz PULSEAUDIO_SITE = http://freedesktop.org/software/pulseaudio/releases PULSEAUDIO_INSTALL_STAGING = YES
@@ -15,17 +15,8 @@ PULSEAUDIO_CONF_OPTS = \ --disable-legacy-database-entry-format \ --disable-manpages -# Make sure we don't detect libatomic_ops. Indeed, since pulseaudio -# requires json-c, which needs 4 bytes __sync builtins, there should -# be no need for pulseaudio to rely on libatomic_ops. -PULSEAUDIO_CONF_ENV += \ - ac_cv_header_atomic_ops_h=no - -# 0002-webrtc-C-11-is-only-required-for-WebRTC-support.patch -PULSEAUDIO_AUTORECONF = YES - PULSEAUDIO_DEPENDENCIES = \ - host-pkgconf libtool json-c libsndfile speex host-intltool \ + host-pkgconf libtool libsndfile speex host-intltool \ $(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \ $(if $(BR2_PACKAGE_ALSA_LIB),alsa-lib) \ $(if $(BR2_PACKAGE_LIBGLIB2),libglib2) \
@@ -50,6 +41,13 @@ else PULSEAUDIO_CONF_OPTS += --disable-jack endif +ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y) +PULSEAUDIO_DEPENDENCIES += libatomic_ops +ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y) +PULSEAUDIO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9" +endif +endif + ifeq ($(BR2_PACKAGE_ORC),y) PULSEAUDIO_DEPENDENCIES += orc PULSEAUDIO_CONF_ENV += ORCC=$(HOST_DIR)/usr/bin/orcc
Signature · 1 line
2.11.0
PATCH 1/1 package/pulseaudio: bump version to 10.0
Hello,
Quoted 2 lines · Bernd Kuhls
Dependency to json-c was dropped, updated reverse dependencies as well. Added optional dependency to
libatomic_ops.
If libatomic_ops is an optional dependency, why are you selecting it from the Config.in file?
package/pulseaudio/Config.in config BR2_PACKAGE_PULSEAUDIO · line 6
Quoted 10 lines
package/pulseaudio/Config.in +1
-1@@ -3,9 +3,8 @@ config BR2_PACKAGE_PULSEAUDIO depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_STATIC_LIBS - depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c + select BR2_PACKAGE_LIBATOMIC_OPS if !BR2_TOOLCHAIN_HAS_SYNC_4
This line is just wrong, since BR2_PACKAGE_LIBATOMIC_OPTS depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS, so you can't just select BR2_PACKAGE_LIBATOMIC_OPS like this.
Which is exactly why I'm asking above why you are selecting libatomic_ops if it's really an optional dependency. If it's really an optional dependency, just don't do anything in the Config.in file, and keep the change you already have in the .mk file to depend on libatomic_ops when enabled in the Buildroot configuration.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 package/pulseaudio: bump version to 10.0
Hi Thomas,
[posted and mailed]
Thomas Petazzoni <thomas.petazzoni- wi1+55ScJUtKEb57/[email protected]> wrote in news:20170124182624.1313b78b at free-electrons.com:
Quoted 9 lines
Hello,
Quoted 2 lines · Bernd Kuhls
Dependency to json-c was dropped, updated reverse dependencies as well. Added optional dependency to
libatomic_ops.If
libatomic_opsis an optional dependency, why are you selecting it from the Config.in file?
Most likely because I do not fully understand the handling of atomic operations in buildroot ;)
Pulseaudio has optional support for libatomic_ops, first it checks whether the toolchain itself supports __sync_bool_compare_and_swap
https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/configure.ac#n253
to prefer this toolchain support if available:
https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/configure.ac#n263
Otherwise it needs libatomic_ops
https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/configure.ac#n251
I tried to code this configure logic by Pulseaudio into the buildroot package...
Quoted 2 lines
Which is exactly why I'm asking above why you are selecting
libatomic_opsif it's really an optional dependency.
On platforms lacking BR2_TOOLCHAIN_HAS_SYNC_4 libatomic_ops is therefore a hard dependency, all others do not need libatomic_ops because Pulseaudio will use the toolchain code.
Please note that you wrote a similar
select BR2_PACKAGE_LIBATOMIC_OPS if !BR2_TOOLCHAIN_HAS_SYNC_4
for libdrm: https://git.buildroot.net/buildroot/commit/package/libdrm?
id=e4d55d33737485d8055c2fe3453e29fee51a05d7
Regards, Bernd