1 |
commit: 2b4cd14d0f64279df6a8cf6fc4e2a8e2ea1e7f3a |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 16 21:06:18 2015 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 16 21:06:18 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b4cd14d |
7 |
|
8 |
games-board/maitretarot: format-security. Bug #543016 |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
games-board/maitretarot/files/maitretarot-0.1.98-format.patch | 11 +++++++++++ |
13 |
games-board/maitretarot/maitretarot-0.1.98.ebuild | 6 +++++- |
14 |
2 files changed, 16 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/games-board/maitretarot/files/maitretarot-0.1.98-format.patch b/games-board/maitretarot/files/maitretarot-0.1.98-format.patch |
17 |
new file mode 100644 |
18 |
index 0000000..b3ff1fe |
19 |
--- /dev/null |
20 |
+++ b/games-board/maitretarot/files/maitretarot-0.1.98-format.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+--- src/game.c.old 2015-12-16 21:59:49.400430743 +0100 |
23 |
++++ src/game.c 2015-12-16 21:59:11.085058332 +0100 |
24 |
+@@ -642,7 +642,7 @@ |
25 |
+ (game, prev_winner, c, ((i + prev_winner) % 4), |
26 |
+ game->players[((i + prev_winner) % 4)]->turn, &err)) |
27 |
+ { |
28 |
+- g_message (err->message); |
29 |
++ g_message ("%s", err->message); |
30 |
+ turn_nok = TRUE; |
31 |
+ game->players[((i + prev_winner) % 4)]->ready = |
32 |
+ MT_PLAYER_READY_SEND_NOK_FOR_CARD; |
33 |
|
34 |
diff --git a/games-board/maitretarot/maitretarot-0.1.98.ebuild b/games-board/maitretarot/maitretarot-0.1.98.ebuild |
35 |
index 631fc95..fb65203 100644 |
36 |
--- a/games-board/maitretarot/maitretarot-0.1.98.ebuild |
37 |
+++ b/games-board/maitretarot/maitretarot-0.1.98.ebuild |
38 |
@@ -3,7 +3,7 @@ |
39 |
# $Id$ |
40 |
|
41 |
EAPI=5 |
42 |
-inherit games |
43 |
+inherit games eutils |
44 |
|
45 |
DESCRIPTION="server for the french tarot game maitretarot" |
46 |
HOMEPAGE="http://www.nongnu.org/maitretarot/" |
47 |
@@ -19,6 +19,10 @@ DEPEND="dev-libs/glib:2 |
48 |
dev-games/libmaitretarot" |
49 |
RDEPEND=${DEPEND} |
50 |
|
51 |
+src_prepare() { |
52 |
+ epatch "${FILESDIR}"/${P}-format.patch |
53 |
+} |
54 |
+ |
55 |
src_configure() { |
56 |
egamesconf \ |
57 |
--with-default-config-file="${GAMES_SYSCONFDIR}/maitretarotrc.xml" |