Skip to content

Commit

Permalink
games-sports/torcs: Fix building with GCC-7
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/631542
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Closes: gentoo#7728
  • Loading branch information
Peter-Levine authored and a17r committed Apr 4, 2018
1 parent f602ce2 commit 12df4e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions games-sports/torcs/files/torcs-1.3.6-gcc7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/libs/musicplayer/OpenALMusicPlayer.cpp
+++ b/src/libs/musicplayer/OpenALMusicPlayer.cpp
@@ -161,7 +161,7 @@
{
char pcm[BUFFERSIZE];
int size = 0;
- const char* error = '\0';
+ const char* error = "";

if (!stream->read(pcm, BUFFERSIZE, &size, &error)) {
GfError("OpenALMusicPlayer: Stream read error: %s\n", error);
3 changes: 2 additions & 1 deletion games-sports/torcs/torcs-1.3.6-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
Expand Down Expand Up @@ -34,6 +34,7 @@ PATCHES=(
"${FILESDIR}"/${P}-format.patch
"${FILESDIR}"/${P}-noXmuXt.patch
"${FILESDIR}"/${P}-gcc6.patch
"${FILESDIR}"/${P}-gcc7.patch
)

src_prepare() {
Expand Down

0 comments on commit 12df4e9

Please sign in to comment.