summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2015-10-14 21:36:49 +0200
committerTupone Alfredo <tupone@gentoo.org>2015-10-14 21:37:59 +0200
commite036f115730476b3f621d1e910ea0d4e98588504 (patch)
tree337f4d3c69c8b307c93af2c0e918b5d2c8b7da23 /games-board/mt_dolphin_ia
parentapp-office/homebank: remove 5.0.0 (diff)
downloadgentoo-e036f115730476b3f621d1e910ea0d4e98588504.tar.gz
gentoo-e036f115730476b3f621d1e910ea0d4e98588504.tar.bz2
gentoo-e036f115730476b3f621d1e910ea0d4e98588504.zip
games-board/mt_dolphin_ia: compile with format-security (bug #546546)
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'games-board/mt_dolphin_ia')
-rw-r--r--games-board/mt_dolphin_ia/files/mt_dolphin_ia-0.1.98-formatsecurity.patch11
-rw-r--r--games-board/mt_dolphin_ia/mt_dolphin_ia-0.1.98.ebuild6
2 files changed, 16 insertions, 1 deletions
diff --git a/games-board/mt_dolphin_ia/files/mt_dolphin_ia-0.1.98-formatsecurity.patch b/games-board/mt_dolphin_ia/files/mt_dolphin_ia-0.1.98-formatsecurity.patch
new file mode 100644
index 000000000000..c949a4a5817c
--- /dev/null
+++ b/games-board/mt_dolphin_ia/files/mt_dolphin_ia-0.1.98-formatsecurity.patch
@@ -0,0 +1,11 @@
+--- src/player_client.c.old 2015-10-14 21:19:05.347505352 +0200
++++ src/player_client.c 2015-10-14 21:19:22.057195175 +0200
+@@ -33,7 +33,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_dolphin_ia/mt_dolphin_ia-0.1.98.ebuild b/games-board/mt_dolphin_ia/mt_dolphin_ia-0.1.98.ebuild
index 6d276408cc52..6a7d705aaaa6 100644
--- a/games-board/mt_dolphin_ia/mt_dolphin_ia-0.1.98.ebuild
+++ b/games-board/mt_dolphin_ia/mt_dolphin_ia-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/"
@@ -20,6 +20,10 @@ DEPEND="dev-libs/glib:2
dev-games/libmt_client"
RDEPEND=${DEPEND}
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-formatsecurity.patch
+}
+
src_install() {
default
prepgamesdirs