commit: 6c3947467c0c15b653cb09f6fd62a0a786a62cdd
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 21 12:30:09 2015 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Oct 21 12:31:07 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c394746
games-board/mt_ncurses_client: Fix compile with -Wformat-security. Bug #546406
Package-Manager: portage-2.2.20.1
.../files/mt_ncurses_client-0.1.98-format.patch | 11 +++++++++++
games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild | 6 +++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git
a/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-format.patch
b/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-format.patch
new file mode 100644
index 0000000..e070a23
--- /dev/null
+++ b/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-format.patch
@@ -0,0 +1,11 @@
+--- src/player_client.c.old 2015-10-21 14:21:04.317896103 +0200
++++ src/player_client.c 2015-10-21 14:21:40.001225103 +0200
+@@ -38,7 +38,7 @@
+ {
+ player->nick[0] = g_string_new (config->player_name->str);
+
+- g_printerr (player->nick[0]->str);
++ g_printerr ("%s", player->nick[0]->str);
+
+ return 0;
+ }
diff --git a/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild
b/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild
index 6341f8c..a92f435 100644
--- a/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild
+++ b/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild
@@ -3,7 +3,7 @@
# $Id$
EAPI=5
-inherit games
+inherit games eutils
DESCRIPTION="client for the french tarot game maitretarot"
HOMEPAGE="http://www.nongnu.org/maitretarot/"
@@ -21,6 +21,10 @@ DEPEND="dev-libs/glib:2
sys-libs/ncurses"
RDEPEND=${DEPEND}
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format.patch
+}
+
src_install() {
default
prepgamesdirs