From 1deb7fa0d1af7505b83ea201aed6d43690f4c39d Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Wed, 9 Dec 2020 17:07:09 +0100 Subject: audio/ncmpcpp: Patch for gcc >= 10.x. thanks Archlinux! Signed-off-by: Matteo Bernardini --- audio/ncmpcpp/gcc10.patch | 26 ++++++++++++++++++++++++++ audio/ncmpcpp/ncmpcpp.SlackBuild | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 audio/ncmpcpp/gcc10.patch diff --git a/audio/ncmpcpp/gcc10.patch b/audio/ncmpcpp/gcc10.patch new file mode 100644 index 0000000000..466abceecf --- /dev/null +++ b/audio/ncmpcpp/gcc10.patch @@ -0,0 +1,26 @@ +From 399e0f47008b487df3505476c959b4f42d8bc1b1 Mon Sep 17 00:00:00 2001 +From: Louis Sautier +Date: Sat, 9 May 2020 14:31:52 +0200 +Subject: [PATCH] Fix build with GCC 10 by adding missing include +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes the following error: +./mpdpp.h:438:15: error: ‘runtime_error’ is not a member of ‘std’ +--- + src/mpdpp.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/mpdpp.h b/src/mpdpp.h +index a2bb79eb..abd3666c 100644 +--- a/src/mpdpp.h ++++ b/src/mpdpp.h +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + #include + + #include diff --git a/audio/ncmpcpp/ncmpcpp.SlackBuild b/audio/ncmpcpp/ncmpcpp.SlackBuild index f3663f68eb..f44a74380f 100644 --- a/audio/ncmpcpp/ncmpcpp.SlackBuild +++ b/audio/ncmpcpp/ncmpcpp.SlackBuild @@ -72,6 +72,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/gcc10.patch + sed -ie 's/if (!mpeg_file->save(TagLib::MPEG::File::ID3v2, true, 4, false))/if (!mpeg_file->save(TagLib::MPEG::File::ID3v2, true, 4))/g' src/tags.cpp ./autogen.sh -- cgit v1.2.3