summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2009-06-08 10:45:13 +0000
committerAlfredo Tupone <tupone@gentoo.org>2009-06-08 10:45:13 +0000
commit58be9577940348d545fc544b558c3fc5f55aeda5 (patch)
treefd6fafbf1667ddabc22b51863e0591a2c7af49a0 /games-action
parentadd the generated formats to the list of directories to search while building... (diff)
downloadgentoo-2-58be9577940348d545fc544b558c3fc5f55aeda5.tar.gz
gentoo-2-58be9577940348d545fc544b558c3fc5f55aeda5.tar.bz2
gentoo-2-58be9577940348d545fc544b558c3fc5f55aeda5.zip
Fix build with glibc-2.10. Bug #272655
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'games-action')
-rw-r--r--games-action/xpilot-ng/ChangeLog8
-rw-r--r--games-action/xpilot-ng/files/xpilot-ng-4.7.2-glibc210.patch83
-rw-r--r--games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild16
3 files changed, 96 insertions, 11 deletions
diff --git a/games-action/xpilot-ng/ChangeLog b/games-action/xpilot-ng/ChangeLog
index 6aeebff2df97..7aab0f704c4e 100644
--- a/games-action/xpilot-ng/ChangeLog
+++ b/games-action/xpilot-ng/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-action/xpilot-ng
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/xpilot-ng/ChangeLog,v 1.10 2007/10/02 03:53:18 dirtyepic Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/xpilot-ng/ChangeLog,v 1.11 2009/06/08 10:45:13 tupone Exp $
+
+ 08 Jun 2009; Alfredo Tupone <tupone@gentoo.org>
+ +files/xpilot-ng-4.7.2-glibc210.patch, xpilot-ng-4.7.2-r1.ebuild:
+ Fix build with glibc-2.10. Bug #272655 by Diego Petteno'
02 Oct 2007; Ryan Hill <dirtyepic@gentoo.org> xpilot-ng-4.7.2-r1.ebuild:
Lock wxpython to 2.6.
diff --git a/games-action/xpilot-ng/files/xpilot-ng-4.7.2-glibc210.patch b/games-action/xpilot-ng/files/xpilot-ng-4.7.2-glibc210.patch
new file mode 100644
index 000000000000..6c91cd6c6f04
--- /dev/null
+++ b/games-action/xpilot-ng/files/xpilot-ng-4.7.2-glibc210.patch
@@ -0,0 +1,83 @@
+--- src/client/textinterface.c.old 2009-06-08 12:41:13.000000000 +0200
++++ src/client/textinterface.c 2009-06-08 12:41:35.000000000 +0200
+@@ -37,7 +37,7 @@
+ /*
+ * just like fgets() but strips newlines like gets().
+ */
+-static char* getline(char* buf, int len, FILE* stream)
++static char* mygetline(char* buf, int len, FILE* stream)
+ {
+ char *nl;
+
+@@ -251,7 +251,7 @@
+ else if (!auto_connect) {
+ printf("*** Server on %s. Enter command> ", conpar->server_name);
+
+- getline(linebuf, MAX_LINE, stdin);
++ mygetline(linebuf, MAX_LINE, stdin);
+ if (feof(stdin)) {
+ puts("");
+ c = 'Q';
+@@ -338,7 +338,7 @@
+ case 'K':
+ printf("Enter name of victim: ");
+ fflush(stdout);
+- if (!getline(linebuf, MAX_LINE, stdin)) {
++ if (!mygetline(linebuf, MAX_LINE, stdin)) {
+ printf("Nothing changed.\n");
+ continue;
+ }
+@@ -349,7 +349,7 @@
+ case 'M': /* Send a message to server. */
+ printf("Enter message: ");
+ fflush(stdout);
+- if (!getline(linebuf, MAX_LINE, stdin) || !linebuf[0]) {
++ if (!mygetline(linebuf, MAX_LINE, stdin) || !linebuf[0]) {
+ printf("No message sent.\n");
+ continue;
+ }
+@@ -364,7 +364,7 @@
+ case 'D': /* Shutdown */
+ if (!auto_shutdown) {
+ printf("Enter delay in seconds or return for cancel: ");
+- getline(linebuf, MAX_LINE, stdin);
++ mygetline(linebuf, MAX_LINE, stdin);
+ /*
+ * No argument = cancel shutdown = arg_int=0
+ */
+@@ -375,7 +375,7 @@
+ delay = 1;
+
+ printf("Enter reason: ");
+- getline(linebuf, MAX_LINE, stdin);
++ mygetline(linebuf, MAX_LINE, stdin);
+ } else {
+ strlcpy(linebuf, shutdown_reason, sizeof(linebuf));
+ delay = 60;
+@@ -388,7 +388,7 @@
+ case 'O': /* Tune an option. */
+ printf("Enter option: ");
+ fflush(stdout);
+- if (!getline(linebuf, MAX_LINE, stdin)
++ if (!mygetline(linebuf, MAX_LINE, stdin)
+ || (len=strlen(linebuf)) == 0) {
+ printf("Nothing changed.\n");
+ continue;
+@@ -396,7 +396,7 @@
+ printf("Enter new value for %s: ", linebuf);
+ fflush(stdout);
+ strcat(linebuf, ":"); len++;
+- if (!getline(&linebuf[len], MAX_LINE-len, stdin)
++ if (!mygetline(&linebuf[len], MAX_LINE-len, stdin)
+ || linebuf[len] == '\0') {
+ printf("Nothing changed.\n");
+ continue;
+@@ -450,7 +450,7 @@
+ case 'T': /* Set team. */
+ printf("Enter team: ");
+ fflush(stdout);
+- if (!getline(linebuf, MAX_LINE, stdin)
++ if (!mygetline(linebuf, MAX_LINE, stdin)
+ || (len = strlen(linebuf)) == 0)
+ printf("Nothing changed.\n");
+ else {
diff --git a/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild b/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild
index 56c8fb7d91df..4b72d6bcbd8c 100644
--- a/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild
+++ b/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild
@@ -1,6 +1,7 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild,v 1.5 2007/10/02 03:53:18 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/xpilot-ng/xpilot-ng-4.7.2-r1.ebuild,v 1.6 2009/06/08 10:45:13 tupone Exp $
+EAPI=2
inherit python eutils multilib games
@@ -30,10 +31,9 @@ DEPEND="${RDEPEND}
x11-proto/xextproto
x11-proto/xproto"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}"-xpngcc.patch
+src_prepare() {
+ epatch "${FILESDIR}/${P}"-xpngcc.patch \
+ "${FILESDIR}"/${P}-glibc210.patch
sed -i \
-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \
@@ -41,15 +41,13 @@ src_unpack() {
|| die "sed failed"
}
-src_compile() {
+src_configure() {
egamesconf \
--disable-dependency-tracking \
$(use_enable sdl sdl-client) \
$(use_enable sdl sdl-gameloop) \
$(use_enable openal sound) \
|| die
-
- emake || die "emake failed"
}
src_install() {