summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2009-05-28 07:54:49 +0000
committerAlfredo Tupone <tupone@gentoo.org>2009-05-28 07:54:49 +0000
commit855bdbd043f8f489b63b28f14aadd4d7eb26762e (patch)
treebc020b050c01f45b0efb1e28d605be7358b32520 /games-puzzle
parentFixed configure with USE=kerberos and --as-needed (bug #271492). (diff)
downloadgentoo-2-855bdbd043f8f489b63b28f14aadd4d7eb26762e.tar.gz
gentoo-2-855bdbd043f8f489b63b28f14aadd4d7eb26762e.tar.bz2
gentoo-2-855bdbd043f8f489b63b28f14aadd4d7eb26762e.zip
Fix build with gcc-4.4.0 and glibc-2.10.1 Bug #271464
(Portage version: 2.1.6.11/cvs/Linux x86_64)
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/enigma/ChangeLog6
-rw-r--r--games-puzzle/enigma/files/enigma-1.01-gcc44.patch11
2 files changed, 16 insertions, 1 deletions
diff --git a/games-puzzle/enigma/ChangeLog b/games-puzzle/enigma/ChangeLog
index 6d0c8c57648a..b360e95cd53e 100644
--- a/games-puzzle/enigma/ChangeLog
+++ b/games-puzzle/enigma/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-puzzle/enigma
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/ChangeLog,v 1.45 2009/05/23 06:42:25 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/ChangeLog,v 1.46 2009/05/28 07:54:49 tupone Exp $
+
+ 28 May 2009; Alfredo Tupone <tupone@gentoo.org>
+ files/enigma-1.01-gcc44.patch:
+ Fix build with gcc-4.4.0 and glibc-2.10.1 Bug #271464 by Martin Vaeth
22 May 2009; Alfredo Tupone <tupone@gentoo.org>
+files/enigma-1.01-gcc44.patch, enigma-1.01.ebuild:
diff --git a/games-puzzle/enigma/files/enigma-1.01-gcc44.patch b/games-puzzle/enigma/files/enigma-1.01-gcc44.patch
index 4695ec4f2118..9a14063cf764 100644
--- a/games-puzzle/enigma/files/enigma-1.01-gcc44.patch
+++ b/games-puzzle/enigma/files/enigma-1.01-gcc44.patch
@@ -38,3 +38,14 @@
namespace enigma { namespace lev {
+--- src/lua.cc.old 2009-05-28 09:43:36.000000000 +0200
++++ src/lua.cc 2009-05-28 09:44:22.000000000 +0200
+@@ -574,7 +574,7 @@
+ int y = round_down<int>(lua_tonumber(L, 2));
+ const char *dir = lua_tostring(L,3);
+ const char *allowed = "wsen";
+- char *found = strchr(allowed, dir[0]);
++ const char *found = strchr(allowed, dir[0]);
+
+ if (found && found[0])
+ world::AddScramble(GridPos(x,y), enigma::Direction(found-allowed));