Build breaks for mpd 0.23.13, 0.23.12 and maybe also versions before with an error like: ... ../mpd-0.23.12/src/decoder/plugins/FfmpegIo.cxx:44:24: error: ‘AVERROR_EOF’ was not declared in this scope 44 | return AVERROR_EOF; | ^~~~~~~~~~~ ... This was already reported upstream and is fixed on current master: https://github.com/MusicPlayerDaemon/MPD/issues/1898 Seems to be related to ffmpeg 6.1. Probably the fix will be part of the next release (0.23.15?). Until then this patch, based on the fix-commit, worked for me: diff --git a/src/decoder/plugins/FfmpegIo.cxx b/src/decoder/plugins/FfmpegIo.cxx index 5b5c8b40e..3c3323ce8 100644 --- a/src/decoder/plugins/FfmpegIo.cxx +++ b/src/decoder/plugins/FfmpegIo.cxx @@ -26,6 +26,9 @@ extern "C" { #include <libavutil/mem.h> +#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 29, 100) +#include <libavutil/error.h> +#endif } AvioStream::~AvioStream()
Seems like a candidate for backporting. I don't have much time for Gentoo in the next few days. If you have some spare time, feel free to backport the patch to new revisions of the current ebuilds. Otherwise, please be patient until I have time to do the backporting myself :)
I can confirm that the patch solves the issue.
*** Bug 918943 has been marked as a duplicate of this bug. ***
0.23.15 is out, so I've decided to resolve this by doing the version bump.
gcc14_tinderbox has reproduced this issue with version 0.23.13 - Updating summary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df386036ecd943a2e350feb082f9aa48216cfa93 commit df386036ecd943a2e350feb082f9aa48216cfa93 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-02 06:19:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-02 06:19:46 +0000 media-sound/mpd: backport ffmpeg-6.1 fix Closes: https://bugs.gentoo.org/918421 Signed-off-by: Sam James <sam@gentoo.org> media-sound/mpd/files/mpd-0.23.13-ffmpeg-6.1.patch | 14 ++++++++++++++ media-sound/mpd/mpd-0.23.13.ebuild | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e052555c5ead5ea46c5b8d5ebc61f9e89a4d5fa8 commit e052555c5ead5ea46c5b8d5ebc61f9e89a4d5fa8 Author: Adrian Schollmeyer <nex+b-g-o@nexadn.de> AuthorDate: 2023-11-12 21:11:27 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-02-05 15:13:55 +0000 media-sound/mpd: add 0.23.15 The new version removes unnecessary modifications to the default configuration and adds default values for creating the PID file and log file in FHS directories. Co-Authored-By: Jeroen Roovers <jer@xs4all.nl> Closes: https://bugs.gentoo.org/872668 Closes: https://bugs.gentoo.org/918421 Closes: https://bugs.gentoo.org/919577 Signed-off-by: Adrian Schollmeyer <nex+b-g-o@nexadn.de> Closes: https://github.com/gentoo/gentoo/pull/34469 Signed-off-by: Joonas Niilola <juippis@gentoo.org> media-sound/mpd/Manifest | 1 + media-sound/mpd/files/mpd-0.23.15.init | 61 ++++++ media-sound/mpd/files/mpd-0.23.15.logrotate | 9 + media-sound/mpd/mpd-0.23.15.ebuild | 284 ++++++++++++++++++++++++++++ 4 files changed, 355 insertions(+)