package/mpd: remove spurious host-gcc dependency
PATCH 1/2 package/mpd: remove spurious host-gcc dependency
mpd is not intended to be configured as a host package, none of either the direct or the optional dependencies of mpd have a dependency on host-gcc, so drop the dependency on BR2_HOST_GCC_AT_LEAST_8.
--- package/mpd/Config.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
package/mpd/Config.in +1 -3
@@ -6,7 +6,6 @@ menuconfig BR2_PACKAGE_MPD depends on BR2_USE_MMU # fork depends on BR2_TOOLCHAIN_HAS_ATOMIC depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17 - depends on BR2_HOST_GCC_AT_LEAST_8 # C++17 select BR2_PACKAGE_BOOST select BR2_PACKAGE_FMT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
@@ -438,5 +437,4 @@ comment "mpd needs a toolchain w/ C++, threads, wchar, gcc >= 8, host gcc >= 8" depends on BR2_TOOLCHAIN_HAS_ATOMIC depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \ - !BR2_HOST_GCC_AT_LEAST_8 + !BR2_TOOLCHAIN_GCC_AT_LEAST_8
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/mpd: update version to 0.24
Require C++20, drop dependency on boost, require new minimum versions for tools and libraries:
package mpd-0.24 buildroot
gcc 12 12.4.0
meson 1.0 1.7.0 alsa-lib 1.1 1.2.13 ffmpeg 4.0 6.1.2 libfmt 9 11.0.2 libmpdclient 2.15 2.22 libnfs 4.0 5.0.3 libsoxr 0.1.2 0.1.3
Due to the introduction [1] of openat2 system calls (available since Linux kernel 5.6) [2], MPD now has a minimum kernel header requirement.
Release note: https://musicpd.org/news/2025/03/mpd-0-24-released/
Change log: https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/v0.24/NEWS
$ utils/check-package package/mpd/* 917 lines processed 0 warnings generated
$ mkdir ~/output
$ echo "BR2_PACKAGE_MPD=y" > ~/output/mpd.config
$ utils/test-pkg -a -c ~/output/mpd.config -d ~/output -p mpd
arm-aarch64 [ 1/40]: SKIPPED
bootlin-aarch64-glibc [ 2/40]: SKIPPED
bootlin-arcle-hs38-uclibc [ 3/40]: SKIPPED
bootlin-armv5-uclibc [ 4/40]: SKIPPED
bootlin-armv7-glibc [ 5/40]: OK
bootlin-armv7m-uclibc [ 6/40]: SKIPPED
bootlin-armv7-musl [ 7/40]: SKIPPED
bootlin-m68k-5208-uclibc [ 8/40]: SKIPPED
bootlin-m68k-68040-uclibc [ 9/40]: SKIPPED
bootlin-microblazeel-uclibc [10/40]: SKIPPED
bootlin-mipsel32r6-glibc [11/40]: SKIPPED
bootlin-mipsel-uclibc [12/40]: SKIPPED
bootlin-openrisc-uclibc [13/40]: SKIPPED
bootlin-powerpc64le-power8-glibc [14/40]: SKIPPED
bootlin-powerpc-e500mc-uclibc [15/40]: SKIPPED
bootlin-riscv32-glibc [16/40]: OK
bootlin-riscv64-glibc [17/40]: OK
bootlin-riscv64-musl [18/40]: SKIPPED
bootlin-s390x-z13-glibc [19/40]: OK
bootlin-sh4-uclibc [20/40]: SKIPPED
bootlin-sparc64-glibc [21/40]: SKIPPED
bootlin-sparc-uclibc [22/40]: SKIPPED
bootlin-x86-64-glibc [23/40]: OK
bootlin-x86-64-musl [24/40]: SKIPPED
bootlin-x86-64-uclibc [25/40]: SKIPPED
bootlin-x86-i686-musl [26/40]: SKIPPED
bootlin-xtensa-uclibc [27/40]: SKIPPED
br-arm-basic [28/40]: SKIPPED
br-arm-full-nothread [29/40]: SKIPPED
br-arm-full-static [30/40]: SKIPPED
br-i386-pentium4-full [31/40]: SKIPPED
br-mips64-n64-full [32/40]: SKIPPED
br-mips64r6-el-hf-glibc [33/40]: SKIPPED
br-powerpc-603e-basic-cpp [34/40]: SKIPPED
br-powerpc64-power7-glibc [35/40]: SKIPPED
linaro-aarch64-be [36/40]: SKIPPED
linaro-aarch64 [37/40]: SKIPPED
linaro-arm [38/40]: SKIPPED
sourcery-mips64 [39/40]: SKIPPED
sourcery-mips [40/40]: SKIPPED
40 builds, 35 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed[1] https://github.com/MusicPlayerDaemon/MPD/commit/dda85e0
[2] https://man7.org/linux/man-pages/man2/openat2.2.html
--- ...t-meson.build-add-atomic-dependency-for-spar.patch | 6 +++++- package/mpd/Config.in | 11 ++++++----- package/mpd/mpd.hash | 2 +- package/mpd/mpd.mk | 6 +++--- 4 files changed, 15 insertions(+), 10 deletions(-)
package/mpd/0001-src-event-meson.build-add-atomic-dependency-for-spar.patch +5 -1
@@ -13,6 +13,10 @@ Upstream: not sent (the same kind of patch for ncmpc was refused: https://github.com/MusicPlayerDaemon/ncmpc/pull/45) Signed-off-by: Fabrice Fontaine <[email protected]> [Andreas: adapt upstream formatting] +Signed-off-by: Andreas Ziegler <[email protected]> +--- +Rebase for mpd-0.24 + Signed-off-by: Andreas Ziegler <[email protected]> --- src/event/meson.build | 4 ++++
@@ -22,7 +26,7 @@ diff --git a/src/event/meson.build b/src/event/meson.build index bc13bbcd2..88370c03a 100644 --- a/src/event/meson.build +++ b/src/event/meson.build -@@ -47,9 +47,13 @@ event = declare_dependency( +@@ -46,9 +46,13 @@ ], )
package/mpd/Config.in +6 -5
@@ -1,12 +1,12 @@ menuconfig BR2_PACKAGE_MPD bool "mpd" depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_USE_WCHAR # boost + depends on BR2_USE_WCHAR # libfmt depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork depends on BR2_TOOLCHAIN_HAS_ATOMIC - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17 - select BR2_PACKAGE_BOOST + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_12 # C++20 + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 # openat2.h select BR2_PACKAGE_FMT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help
@@ -432,9 +432,10 @@ config BR2_PACKAGE_MPD_ID3TAG endif -comment "mpd needs a toolchain w/ C++, threads, wchar, gcc >= 8, host gcc >= 8" +comment "mpd needs a toolchain w/ C++, threads, wchar, gcc >= 12, headers >= 5.6" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_ATOMIC depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_8 + !BR2_TOOLCHAIN_GCC_AT_LEAST_12 || \ + !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
package/mpd/mpd.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated after checking pgp signature -sha256 a86f4fe811695743b08db82a9f1a840b8918bb4f46b06f48aa1d8d1b5386dff2 mpd-0.23.17.tar.xz +sha256 1c828a290816d540fb2dec90f78044b55ff5ef8b49dd47a639ac34e3e5226bc5 mpd-0.24.tar.xz sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
package/mpd/mpd.mk +3 -3
@@ -4,11 +4,11 @@ # ################################################################################ -MPD_VERSION_MAJOR = 0.23 -MPD_VERSION = $(MPD_VERSION_MAJOR).17 +MPD_VERSION_MAJOR = 0.24 +MPD_VERSION = $(MPD_VERSION_MAJOR) MPD_SOURCE = mpd-$(MPD_VERSION).tar.xz MPD_SITE = https://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR) -MPD_DEPENDENCIES = host-pkgconf boost fmt +MPD_DEPENDENCIES = host-pkgconf fmt MPD_LICENSE = GPL-2.0+ MPD_LICENSE_FILES = COPYING # these refer to the FreeBSD PPP daemon
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 package/mpd: update version to 0.24
Require C++20, drop dependency on boost, require new minimum versions for tools and libraries:
package mpd-0.24 buildroot
gcc 12 12.4.0
meson 1.0 1.7.0 alsa-lib 1.1 1.2.13 ffmpeg 4.0 6.1.2 libfmt 9 11.0.2 libmpdclient 2.15 2.22 libnfs 4.0 5.0.3 libsoxr 0.1.2 0.1.3
The GenParseName tool compiled and run on the build machine now needs host-gcc 10, because the parsed structure uses constexpr (P1143R2). [1][2]
Due to the introduction of openat2 system calls (available since Linux kernel 5.6), MPD now has a minimum kernel header requirement. [3][4]
Release note: https://musicpd.org/news/2025/03/mpd-0-24-released/
Change log: https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/v0.24/NEWS
$ utils/check-package package/mpd/* 919 lines processed 0 warnings generated
$ gcc --version gcc (Ubuntu 10.5.0-4ubuntu2) 10.5.0
$ mkdir ~/output
$ echo "BR2_PACKAGE_MPD=y" > ~/output/mpd.config
$ utils/test-pkg -a -c ~/output/mpd.config -d ~/output -p mpd
arm-aarch64 [ 1/40]: SKIPPED
bootlin-aarch64-glibc [ 2/40]: SKIPPED
bootlin-arcle-hs38-uclibc [ 3/40]: SKIPPED
bootlin-armv5-uclibc [ 4/40]: SKIPPED
bootlin-armv7-glibc [ 5/40]: OK
bootlin-armv7m-uclibc [ 6/40]: SKIPPED
bootlin-armv7-musl [ 7/40]: SKIPPED
bootlin-m68k-5208-uclibc [ 8/40]: SKIPPED
bootlin-m68k-68040-uclibc [ 9/40]: SKIPPED
bootlin-microblazeel-uclibc [10/40]: SKIPPED
bootlin-mipsel32r6-glibc [11/40]: SKIPPED
bootlin-mipsel-uclibc [12/40]: SKIPPED
bootlin-openrisc-uclibc [13/40]: SKIPPED
bootlin-powerpc64le-power8-glibc [14/40]: SKIPPED
bootlin-powerpc-e500mc-uclibc [15/40]: SKIPPED
bootlin-riscv32-glibc [16/40]: OK
bootlin-riscv64-glibc [17/40]: OK
bootlin-riscv64-musl [18/40]: SKIPPED
bootlin-s390x-z13-glibc [19/40]: OK
bootlin-sh4-uclibc [20/40]: SKIPPED
bootlin-sparc64-glibc [21/40]: SKIPPED
bootlin-sparc-uclibc [22/40]: SKIPPED
bootlin-x86-64-glibc [23/40]: OK
bootlin-x86-64-musl [24/40]: SKIPPED
bootlin-x86-64-uclibc [25/40]: SKIPPED
bootlin-x86-i686-musl [26/40]: SKIPPED
bootlin-xtensa-uclibc [27/40]: SKIPPED
br-arm-basic [28/40]: SKIPPED
br-arm-full-nothread [29/40]: SKIPPED
br-arm-full-static [30/40]: SKIPPED
br-i386-pentium4-full [31/40]: SKIPPED
br-mips64-n64-full [32/40]: SKIPPED
br-mips64r6-el-hf-glibc [33/40]: SKIPPED
br-powerpc-603e-basic-cpp [34/40]: SKIPPED
br-powerpc64-power7-glibc [35/40]: SKIPPED
linaro-aarch64-be [36/40]: SKIPPED
linaro-aarch64 [37/40]: SKIPPED
linaro-arm [38/40]: SKIPPED
sourcery-mips64 [39/40]: SKIPPED
sourcery-mips [40/40]: SKIPPED
40 builds, 35 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed[1] https://github.com/MusicPlayerDaemon/MPD/blob/master/src/tag/Names.cxx#L9
[2] https://gcc.gnu.org/projects/cxx-status.html#cxx20
[3] https://github.com/MusicPlayerDaemon/MPD/commit/dda85e0
[4] https://man7.org/linux/man-pages/man2/openat2.2.html
---
Changes v1 -> v2:
- keep & update host-gcc dependency
- add host-gcc information
...son.build-add-atomic-dependency-for-spar.patch | 6 +++++- package/mpd/Config.in | 15 ++++++++------- package/mpd/mpd.hash | 2 +- package/mpd/mpd.mk | 6 +++--- 4 files changed, 17 insertions(+), 12 deletions(-)
package/mpd/0001-src-event-meson.build-add-atomic-dependency-for-spar.patch +5 -1
@@ -13,6 +13,10 @@ Upstream: not sent (the same kind of patch for ncmpc was refused: https://github.com/MusicPlayerDaemon/ncmpc/pull/45) Signed-off-by: Fabrice Fontaine <[email protected]> [Andreas: adapt upstream formatting] +Signed-off-by: Andreas Ziegler <[email protected]> +--- +Rebase for mpd-0.24 + Signed-off-by: Andreas Ziegler <[email protected]> --- src/event/meson.build | 4 ++++
@@ -22,7 +26,7 @@ diff --git a/src/event/meson.build b/src/event/meson.build index bc13bbcd2..88370c03a 100644 --- a/src/event/meson.build +++ b/src/event/meson.build -@@ -47,9 +47,13 @@ event = declare_dependency( +@@ -46,9 +46,13 @@ ], )
package/mpd/Config.in +8 -7
@@ -1,13 +1,13 @@ menuconfig BR2_PACKAGE_MPD bool "mpd" depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_USE_WCHAR # boost + depends on BR2_USE_WCHAR # libfmt depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork depends on BR2_TOOLCHAIN_HAS_ATOMIC - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17 - depends on BR2_HOST_GCC_AT_LEAST_8 # C++17 - select BR2_PACKAGE_BOOST + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_12 # C++20 recommended + depends on BR2_HOST_GCC_AT_LEAST_10 # C++20 constinit P4311R2 + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 # openat2.h select BR2_PACKAGE_FMT select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help
@@ -433,10 +433,11 @@ config BR2_PACKAGE_MPD_ID3TAG endif -comment "mpd needs a toolchain w/ C++, threads, wchar, gcc >= 8, host gcc >= 8" +comment "mpd needs a toolchain w/ C++, threads, wchar, host-gcc 10, gcc 12, headers 5.6" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_ATOMIC depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \ - !BR2_HOST_GCC_AT_LEAST_8 + !BR2_TOOLCHAIN_GCC_AT_LEAST_12 || \ + !BR2_THOST_GCC_AT_LEAST_10 || \ + !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
package/mpd/mpd.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated after checking pgp signature -sha256 a86f4fe811695743b08db82a9f1a840b8918bb4f46b06f48aa1d8d1b5386dff2 mpd-0.23.17.tar.xz +sha256 1c828a290816d540fb2dec90f78044b55ff5ef8b49dd47a639ac34e3e5226bc5 mpd-0.24.tar.xz sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
package/mpd/mpd.mk +3 -3
@@ -4,11 +4,11 @@ # ################################################################################ -MPD_VERSION_MAJOR = 0.23 -MPD_VERSION = $(MPD_VERSION_MAJOR).17 +MPD_VERSION_MAJOR = 0.24 +MPD_VERSION = $(MPD_VERSION_MAJOR) MPD_SOURCE = mpd-$(MPD_VERSION).tar.xz MPD_SITE = https://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR) -MPD_DEPENDENCIES = host-pkgconf boost fmt +MPD_DEPENDENCIES = host-pkgconf fmt MPD_LICENSE = GPL-2.0+ MPD_LICENSE_FILES = COPYING # these refer to the FreeBSD PPP daemon
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 1/1] package/mpd: update version to 0.24
Quoted 12 lines · Andreas Ziegler
Require C++20, drop dependency on boost, require new minimum versions for tools and libraries:
package mpd-0.24 buildroot
gcc 12 12.4.0meson 1.0 1.7.0 alsa-lib 1.1 1.2.13 ffmpeg 4.0 6.1.2 libfmt 9 11.0.2 libmpdclient 2.15 2.22 libnfs 4.0 5.0.3 libsoxr 0.1.2 0.1.3
[...]
Quoted 1 line
Signed-off-by Andreas Ziegler <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Andreas,
Thanks for the patch!
Quoted 3 lines · Andreas Ziegler
mpd is not intended to be configured as a host package, none of either the direct or the optional dependencies of mpd have a dependency on host-gcc, so drop the dependency on
BR2_HOST_GCC_AT_LEAST_8.
This host-gcc dependency was introduced in Buildroot commit:
https://gitlab.com/buildroot.org/buildroot/-/commit/6ed7036464541e06b241a5a71d3e39d932410ddc
It seems during the mpd build, this host C++ 17 string_view is still used:
https://github.com/MusicPlayerDaemon/MPD/blob/v0.24/src/tag/GenParseName.cxx#L8
https://github.com/MusicPlayerDaemon/MPD/blob/v0.24/src/tag/meson.build#L12
It's also still used in v0.23.17. We can see the invocation in the log when compiling with "make V=1 mpd".
So I think this host dependencies should be kept. Can you confirm?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Julien,
Thank you for the fast update!
Quoted 12 lines · Julien Olivain
Hi Andreas,
Thanks for the patch!
Quoted 3 lines · Andreas Ziegler
mpd is not intended to be configured as a host package, none of either the direct or the optional dependencies of mpd have a dependency on host-gcc, so drop the dependency on
BR2_HOST_GCC_AT_LEAST_8.This host-gcc dependency was introduced in Buildroot commit:
https://gitlab.com/buildroot.org/buildroot/-/commit/6ed7036464541e06b241a5a71d3e39d932410ddc
Quoted 8 lines
It seems during the mpd build, this host C++ 17
string_viewis still used:
https://github.com/MusicPlayerDaemon/MPD/blob/v0.24/src/tag/GenParseName.cxx#L8
https://github.com/MusicPlayerDaemon/MPD/blob/v0.24/src/tag/meson.build#L12It's also still used in v0.23.17. We can see the invocation in the log when compiling with "make V=1 mpd".
So I think this host dependencies should be kept. Can you confirm?
C++17 (now C++20) in the toolchain compiler is intended, but the mpd build should not rely on the host compiler. Let me check what is going on and I will resend the patch once I have a solution. Meanwhile, I marked both patches as "Changes Requested".
Kind regards,
Andreas
Quoted 4 lines
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Julien, *
Quoted 21 lines · Andreas Ziegler
Hi Julien,
Thank you for the fast update!
Quoted 16 lines · Julien Olivain
Hi Andreas,
Thanks for the patch!
Quoted 3 lines · Andreas Ziegler
mpd is not intended to be configured as a host package, none of either the direct or the optional dependencies of mpd have a dependency on host-gcc, so drop the dependency on
BR2_HOST_GCC_AT_LEAST_8.This host-gcc dependency was introduced in Buildroot commit:
https://gitlab.com/buildroot.org/buildroot/-/commit/6ed7036464541e06b241a5a71d3e39d932410ddcIt seems during the mpd build, this host C++ 17
string_viewis still used:
https://github.com/MusicPlayerDaemon/MPD/blob/v0.24/src/tag/GenParseName.cxx#L8
https://github.com/MusicPlayerDaemon/MPD/blob/v0.24/src/tag/meson.build#L12
Quoted 6 lines
Quoted 4 lines
It's also still used in v0.23.17. We can see the invocation in the log when compiling with "make V=1 mpd".
So I think this host dependencies should be kept. Can you confirm?
C++17 (now C++20) in the toolchain compiler is intended, but the mpd build should not rely on the host compiler. Let me check what is going on and I will resend the patch once I have a solution. Meanwhile, I marked both patches as "Changes Requested".
What I missed completely is that mpd compiles a small executable on the build machine, that is used to pre-process a C++ structure and generate a source file for the target build.
Tests with different compiler versions verify that mpd-0.23 builds with gcc 8 and host-gcc 7 (string_view /P0220R1 was introduced with gcc 7.1). The latest mpd version requires gcc 12 (project recommendation) and host-gcc 10; the parsed structure now uses the C++20 feature constexpr /P1143R2. [1][2]
Yes, the host-gcc restriction is needed, unfortunately. I will simply drop this patch and update the second one accordingly.
Kind regards,
Andreas
Quoted 4 lines
Quoted 4 lines
Best regards,
Julien.
[1] https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2017
[2] https://gcc.gnu.org/projects/cxx-status.html#cxx20
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot