[arch-commits] Commit in ncmpcpp/trunk (PKGBUILD gcc10.patch)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jul 14 22:28:51 UTC 2020
Date: Tuesday, July 14, 2020 @ 22:28:50
Author: foutrelis
Revision: 663819
Fix build with GCC 10 (FS#66702)
Added:
ncmpcpp/trunk/gcc10.patch
Modified:
ncmpcpp/trunk/PKGBUILD
-------------+
PKGBUILD | 13 +++++++++++--
gcc10.patch | 26 ++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-14 22:15:19 UTC (rev 663818)
+++ PKGBUILD 2020-07-14 22:28:50 UTC (rev 663819)
@@ -13,9 +13,18 @@
license=('GPL')
depends=('curl' 'libmpdclient' 'taglib' 'ncurses' 'fftw' 'boost-libs')
makedepends=('boost')
-source=(${pkgname}-${pkgver}.tar.bz2::https://rybczak.net/ncmpcpp/stable/${pkgname}-${pkgver}.tar.bz2)
-sha512sums=('9384edd162f40af23e4f26f437356520f117e4e2ab513ed3de132d2f11e597082d1cb7f0dd3696660d0c9bb85ad03e31fb921c97a11c7b28b32c5907fdbb8e8f')
+source=(${pkgname}-${pkgver}.tar.bz2::https://rybczak.net/ncmpcpp/stable/${pkgname}-${pkgver}.tar.bz2
+ gcc10.patch)
+sha512sums=('9384edd162f40af23e4f26f437356520f117e4e2ab513ed3de132d2f11e597082d1cb7f0dd3696660d0c9bb85ad03e31fb921c97a11c7b28b32c5907fdbb8e8f'
+ '99298d813391c03fc70ab16ffe8dd57c6151b87f4cd84f25a1747691d8f9f41e5f647b59c0d2ca25808acb995c7df6c99f386a4cc1f3f133b722731ef99a8a3b')
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ # https://github.com/ncmpcpp/ncmpcpp/pull/385
+ patch -Np1 -i ../gcc10.patch
+}
+
build() {
cd ${pkgname}-${pkgver}
Added: gcc10.patch
===================================================================
--- gcc10.patch (rev 0)
+++ gcc10.patch 2020-07-14 22:28:50 UTC (rev 663819)
@@ -0,0 +1,26 @@
+From 399e0f47008b487df3505476c959b4f42d8bc1b1 Mon Sep 17 00:00:00 2001
+From: Louis Sautier <sautier.louis at gmail.com>
+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 <exception>
+ #include <random>
+ #include <set>
++#include <stdexcept>
+ #include <vector>
+
+ #include <mpd/client.h>
More information about the arch-commits
mailing list