Skip to content

Commit

Permalink
games-arcade/performous: Fix gcc-5 build. Bug #570572
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
atupone committed Apr 22, 2016
1 parent b1c7373 commit 8336778
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions games-arcade/performous/files/performous-1.0-gcc52.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- game/songparser.hh.old 2016-04-19 21:57:29.594132735 +0200
+++ game/songparser.hh 2016-04-19 21:57:55.736682808 +0200
@@ -33,7 +33,7 @@
Song& m_song;
std::stringstream m_ss;
unsigned int m_linenum;
- bool getline(std::string& line) { ++m_linenum; return std::getline(m_ss, line);}
+ bool getline(std::string& line) { ++m_linenum; return !std::getline(m_ss, line).fail();}
bool m_relative;
double m_gap;
double m_bpm;
3 changes: 2 additions & 1 deletion games-arcade/performous/performous-1.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand Down Expand Up @@ -61,6 +61,7 @@ src_prepare() {
"${FILESDIR}"/${P}-libav.patch \
"${FILESDIR}"/${P}-gentoo.patch \
"${FILESDIR}"/${P}-linguas.patch \
"${FILESDIR}"/${P}-gcc52.patch \
"${FILESDIR}"/${P}-include.patch
sed -i \
-e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
Expand Down

0 comments on commit 8336778

Please sign in to comment.