1
0
forked from ports/contrib

ncmpcpp: fixed build against gcc 10

This commit is contained in:
Tim Biermann 2020-10-16 21:22:25 +00:00
parent 146e8baa4f
commit 98f3104721
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 33 additions and 4 deletions

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF32ruMgTSmOfPoDJNV6Lg5jIgWrNcpm0ZXo5nW7RerBDYjLKpi3DS27WFHT8PhUo8x5oum4aBpwr169W066HYJwA=
SHA256 (Pkgfile) = 0f5c303f40d81d877d3bb1161ab8f3c133961c134c15a10e9685886ff841af2f
RWSagIOpLGJF3wEsq3RkdF7417jlqvAc09ILycISsyrHfUPEkFSkCUKpGEw7U53nE0sI1A2GJ2d3OrDbxZmDBbDEAcM9/JaH2wY=
SHA256 (Pkgfile) = f08cf14220674a456fc997ac5454aadc39fbcdf09e8c80f85393a804186c5ec3
SHA256 (.footprint) = 106b3c28574a9591fa92d0c5c8ee8e0bc78a394a48840175cb2ab8f71b7b0ceb
SHA256 (ncmpcpp-0.8.2.tar.gz) = 682fa230029a917f8c8b54131e6c8fb4915aefed2cc5726ca7c3ab4f4fb97bda
SHA256 (gcc10.patch) = 264997435e25c8e9a3559474ba470a89d1bf84c21c8d3ec6dbe36b0cc74ebaa9

View File

@ -6,14 +6,16 @@
name=ncmpcpp
version=0.8.2
release=2
source=(https://github.com/arybczak/$name/archive/$version/$name-$version.tar.gz)
release=3
source=(https://github.com/arybczak/$name/archive/$version/$name-$version.tar.gz
gcc10.patch)
build() {
cd $name-$version
[[ -e /usr/lib/pkgconfig/fftw3.pc ]] && PKGMK_NCMPCPP+=' --with-fftw --enable-visualizer'
[[ -e /usr/lib/pkgconfig/taglib.pc ]] && PKGMK_NCMPCPP+=' --with-taglib'
patch -Np1 -i $SRC/gcc10.patch
./autogen.sh
./configure $PKGMK_NCMPCPP \
--prefix=/usr \

26
ncmpcpp/gcc10.patch Normal file
View File

@ -0,0 +1,26 @@
From 399e0f47008b487df3505476c959b4f42d8bc1b1 Mon Sep 17 00:00:00 2001
From: Louis Sautier <sautier.louis@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>