Skip to content

Commit

Permalink
games-util/grfcodec: Fix build failure with GCC 10
Browse files Browse the repository at this point in the history
Patch taken from Fedora's grfcodec package.

Closes: https://bugs.gentoo.org/707758
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Matt Smith <[email protected]>
Closes: gentoo#17954
Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
00-matt authored and chewi committed Oct 22, 2020
1 parent 8e7ec58 commit 33caed6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions games-util/grfcodec/files/grfcodec-6.0.6-gcc10.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -Nrup a/src/command.cpp b/src/command.cpp
--- a/src/command.cpp 2015-05-09 04:59:46.000000000 -0600
+++ b/src/command.cpp 2019-09-24 11:37:06.667911307 -0600
@@ -303,7 +303,7 @@ bool parse_comment(const string&line){
uint val=find_command(command_part,beaut),togglebit;
if(val!=(uint)-1&&val!=OFF)_commandState.beautifier=true;
switch(val){
- case -1:
+ case -1u:
IssueMessage(0,COMMAND_INVALID_ARG,gen[BEAUTIFY].name);
return true;
case OFF:_commandState.beautifier=false;break;
4 changes: 3 additions & 1 deletion games-util/grfcodec/grfcodec-6.0.6.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
Expand Down Expand Up @@ -27,6 +27,8 @@ DEPEND="
dev-libs/boost
"

PATCHES=("${FILESDIR}/${PN}-6.0.6-gcc10.patch")

src_prepare() {
default

Expand Down

0 comments on commit 33caed6

Please sign in to comment.