package/mpd: bump to version 0.21.7
PATCH v2 1/1 package/mpd: bump to version 0.21.7
MPD changed from Autotools to the Meson build system.
Drop autotools specific patch 0001.
Add config options for the qobuz and tidal plugins and group them together with the soundcloud plugin under "Commercial services".
Note, that MPD cannot be build with both Tremor (libvorbis soft float library) and libvorbis (hard float library) support. Therefore, default to Tremor on soft float targets and to libvorbis otherwise.
Note, that the Meson build systems uses libgrypt-config for fetching the necessary build and link flags when enabling the qobuz option.
The Meson build system detects the libgcrypt-config program by looking for the corresponding entry in the cross file and falls back to searching PATH. As we do not want creeping libgcrypt-config into the global cross-file and the current Meson version 0.49 does not offer us any other way to pass the libgcrypt-config entry to the configuration step, we are forced to pass it through PATH.
To prevent detecting the hosts libgcrypt-config program, we force detecting the program installed in staging by passing the staging dir early in PATH.
---
v2:
* do not add the libgrypt-config entry the Meson cross file, but pass the staging dir early through PATH, so that the fallback mechanism finds the libgcrypt-config program installed in the staging dir and not the one installed on the host (Thomas P.)
--- ...gure.ac-check-if-libatomic-is-needed.patch | 40 ---- package/mpd/Config.in | 36 +++- package/mpd/mpd.hash | 2 +- package/mpd/mpd.mk | 184 ++++++++++-------- 4 files changed, 130 insertions(+), 132 deletions(-) delete mode 100644 package/mpd/0001-configure.ac-check-if-libatomic-is-needed.patch
package/mpd/0001-configure.ac-check-if-libatomic-is-needed.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 8eaf14a17244aaf000b4d19e4fde4a637576939f Mon Sep 17 00:00:00 2001 -From: Thomas Petazzoni <[email protected]> -Date: Sun, 7 Feb 2016 21:40:47 +0100 -Subject: [PATCH] configure.ac: check if libatomic is needed - -The mpd source code uses the C++11 <atomic> functionality, which -internally is implemented using the __atomic_*() gcc built-ins. On -certain architectures, the __atomic_*() built-ins are implemented in -the libatomic library that comes with the rest of the gcc runtime. Due -to this, code using <atomic> might need to link against libatomic, -otherwise one hits build issues such as: - -GlobalEvents.cxx:(.text._ZN12GlobalEvents4EmitENS_5EventE+0x14): undefined reference to `__atomic_fetch_or_4' - -on an architecture like SPARC. - -To solve this, a configure.ac check is added to know if we need to -link against libatomic or not. - -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - configure.ac | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/configure.ac b/configure.ac -index 107b45a..8e6fab7 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -233,6 +233,8 @@ if test x$have_pthread_setname_np = xyes; then - AC_DEFINE(HAVE_PTHREAD_SETNAME_NP, 1, [Is pthread_setname_np() available?]) - fi - -+AC_SEARCH_LIBS([__atomic_load_4], [atomic]) -+ - dnl --------------------------------------------------------------------------- - dnl Event loop selection - dnl --------------------------------------------------------------------------- --- -2.6.4 -
package/mpd/Config.in +27 -9
@@ -9,7 +9,6 @@ menuconfig BR2_PACKAGE_MPD depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr select BR2_PACKAGE_BOOST select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE - select BR2_PACKAGE_MPD_TREMOR if !(BR2_PACKAGE_MPD_MAD || BR2_PACKAGE_MPD_MPG123 || BR2_PACKAGE_MPD_VORBIS || BR2_PACKAGE_MPD_WAVPACK || BR2_PACKAGE_MPD_FLAC || BR2_PACKAGE_MPD_MUSEPACK || BR2_PACKAGE_MPD_FFMPEG) help MPD is a flexible, powerful, server-side application for playing music. Through plugins and libraries
@@ -35,6 +34,29 @@ config BR2_PACKAGE_MPD_SQLITE Enable sqlite database support. If you don't use sqlite it will use an ASCII database. +comment "Commercial services" + +config BR2_PACKAGE_MPD_QOBUZ + bool "qobuz" + select BR2_PACKAGE_MPD_CURL + select BR2_PACKAGE_LIBGCRYPT + select BR2_PACKAGE_YAJL + help + Play songs from the commercial streaming service Qobuz. + +config BR2_PACKAGE_MPD_SOUNDCLOUD + bool "soundcloud" + select BR2_PACKAGE_YAJL + help + Enable soundcloud.com playlist support. + +config BR2_PACKAGE_MPD_TIDAL + bool "tidal" + select BR2_PACKAGE_MPD_CURL + select BR2_PACKAGE_YAJL + help + Play songs from the commercial streaming service TIDAL. + comment "Converter plugins" config BR2_PACKAGE_MPD_LIBSAMPLERATE
@@ -132,18 +154,20 @@ config BR2_PACKAGE_MPD_OPUS Select this if you want to play back OPUS encoded files. config BR2_PACKAGE_MPD_TREMOR - bool "tremor" + bool "tremor" if BR2_SOFT_FLOAT select BR2_PACKAGE_LIBOGG select BR2_PACKAGE_TREMOR + default y if BR2_SOFT_FLOAT help Enable vorbis input support. Select this if you want to play back OGG files on softfloat targets. config BR2_PACKAGE_MPD_VORBIS - bool "vorbis" + bool "vorbis" if !BR2_SOFT_FLOAT select BR2_PACKAGE_LIBOGG select BR2_PACKAGE_LIBVORBIS + default y if !BR2_SOFT_FLOAT help Enable vorbis input/streaming support. Select this if you want to play back OGG files on hardfloat
@@ -217,12 +241,6 @@ config BR2_PACKAGE_MPD_LIBSMBCLIENT help Enable Samba support. -config BR2_PACKAGE_MPD_SOUNDCLOUD - bool "soundcloud" - select BR2_PACKAGE_YAJL - help - Enable soundcloud.com playlist support. - comment "Output plugins" config BR2_PACKAGE_MPD_ALSA
package/mpd/mpd.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated after checking pgp signature -sha256 503e5f9f237290f568ff7956ab2f9aed563594bf749f19b8fe994fb21434afea mpd-0.20.23.tar.xz +sha256 512062bc529bee04d4ccfaa2c6e720afc85bb071e49850a096b5ed518b3b412c mpd-0.21.7.tar.xz sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
package/mpd/mpd.mk +102 -82
384 lines not on this page · raw message
Signature · 1 line
2.21.0
PATCH v2 1/1 package/mpd: bump to version 0.21.7
Hello J?rg,
Quoted 9 lines · On Mon, 15 Apr 2019 22:36:18 +0200 J?rg Krause <[email protected]>…
The Meson build system detects the
libgcrypt-configprogram by looking for the corresponding entry in the cross file and falls back to searching PATH. As we do not want creeping libgcrypt-config into the global cross-file and the current Meson version 0.49 does not offer us any other way to pass the libgcrypt-config entry to the configuration step, we are forced to pass it through PATH.To prevent detecting the hosts libgcrypt-config program, we force detecting the program installed in staging by passing the staging dir early in PATH.
Except it is not a wise idea at all to add $(STAGING_DIR)/usr/bin to PATH, because $(STAGING_DIR)/usr/bin contains binaries compiled for the target. For example, if Python has been built, then "python" will be in $(STAGING_DIR)/usr/bin, and because you put $(STAGING_DIR)/usr/bin in front of everything else, the target-built python will be used during the build process. Not good.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com