From: Jan Palus Date: Mon, 29 Jun 2020 23:04:19 +0000 (+0200) Subject: upstream patch to fix build with gcc 10 X-Git-Tag: auto/th/ncmpcpp-0.8.2-5~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=edd8ca0a0779321450e45b64e37d80c7f73591d7;p=packages%2Fncmpcpp.git upstream patch to fix build with gcc 10 --- diff --git a/gcc10.patch b/gcc10.patch new file mode 100644 index 0000000..466abce --- /dev/null +++ b/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/ncmpcpp.spec b/ncmpcpp.spec index 9750489..176c207 100644 --- a/ncmpcpp.spec +++ b/ncmpcpp.spec @@ -7,6 +7,7 @@ License: GPL v2 Group: Applications Source0: http://ncmpcpp.rybczak.net/stable/%{name}-%{version}.tar.bz2 # Source0-md5: af161ee347d92e7077c42ea8ad4865ec +Patch0: gcc10.patch URL: http://ncmpcpp.rybczak.net BuildRequires: autoconf >= 2.59 BuildRequires: automake @@ -38,6 +39,7 @@ plików lokalnych oraz inne drobne udogodnienia. %prep %setup -q +%patch0 -p1 %build %{__libtoolize}