[Buildroot] [PATCH v3 0/3] package/mpd: bump to version 0.21.7
joerg.krause at embedded.rocks
Thu Jul 4 10:43:18 UTC 2019
MPD switched from Autotools to the Meson build system. This is not
really a big deal except that the Qobuz plugin depends on libgcrypt.
The issue is, that libgcrypt version 1.8.4 only provides its own config
file `libgcrypt-config` instead of a pkg-config file. Every custom config
file needs to be added to the `[binary]` section in the cross-compilation.conf
file, so that Meson correctly detects the path for the custom config file
instead of using the one find in `PATH`, which directs to the host.
v1 of bumping mpd to the 0.21 version added `libgcrypt-config` to the
cross-compilation.conf.in file which has the drawback, that this
variable is creeping into the global cross-compilation file.
v2 added the staging path early to PATH, which is not a wise idea, because
$(STAGING_DIR)/usr/bin contains binaries compiled for the target.
There was an ongoing discussion, how to add support to the meson
infrastructure to allow adding entries to the `[binaries]` section on
the per-package cross-compilation file. It turned out, that the current
meson infrastructure needs some changes to support adding multi-line
v3 does not try to fix the meson build infrastructure, but adds an
upstream patch to libgcrypt to provide a pkg-config file. pkg-config
files are preferred over custom config files and meson will correctly
detect libgcrypt without changing the meson infrastructure. This makes
bumping mpd to the 0.21.x version branch much easier.
Note, that meanwhile mpd released version 0.21.11. As soon as this series
is applied, a follow up patch will bump mpd to the latest version.
Jörg Krause (3):
package/libgcrypt: replace reconfigure patch with upstream patch
package/libgcrypt: add upstream patch to add pkg-config file
package/mpd: bump to version 0.21.7
...ult-to-underscore-yes-for-cross-buil.patch | 48 +++++
package/libgcrypt/0001-reconfigure.patch | 27 ---
...-libgcrypt.pc-generated-by-configure.patch | 102 ++++++++++
package/libgcrypt/libgcrypt.mk | 5 +-
...gure.ac-check-if-libatomic-is-needed.patch | 40 ----
package/mpd/Config.in | 29 ++-
package/mpd/mpd.hash | 2 +-
package/mpd/mpd.mk | 176 +++++++++---------
8 files changed, 270 insertions(+), 159 deletions(-)
create mode 100644 package/libgcrypt/0001-build-Don-t-default-to-underscore-yes-for-cross-buil.patch
delete mode 100644 package/libgcrypt/0001-reconfigure.patch
create mode 100644 package/libgcrypt/0002-build-Provide-libgcrypt.pc-generated-by-configure.patch
delete mode 100644 package/mpd/0001-configure.ac-check-if-libatomic-is-needed.patch
More information about the buildroot