diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2015-12-22 09:01:21 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2015-12-22 09:02:06 +0100 |
commit | b1149886f5c9e56d4879d709c196318571b4bcca (patch) | |
tree | 29c30e441772c4f741b2f402e95d700825bc67ea /dev-games/libmt_client | |
parent | gnome-extra/gnome-tweak-tool: add missing libsoup-gnome RDEPEND, bug #569014 (diff) | |
download | gentoo-b1149886f5c9e56d4879d709c196318571b4bcca.tar.gz gentoo-b1149886f5c9e56d4879d709c196318571b4bcca.tar.bz2 gentoo-b1149886f5c9e56d4879d709c196318571b4bcca.zip |
dev-games/libmt_client: build with format-security. Bug #543014
Package-Manager: portage-2.2.24
Diffstat (limited to 'dev-games/libmt_client')
-rw-r--r-- | dev-games/libmt_client/files/libmt_client-0.1.98-format.patch | 50 | ||||
-rw-r--r-- | dev-games/libmt_client/libmt_client-0.1.98.ebuild | 7 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-games/libmt_client/files/libmt_client-0.1.98-format.patch b/dev-games/libmt_client/files/libmt_client-0.1.98-format.patch new file mode 100644 index 000000000000..5173853849cc --- /dev/null +++ b/dev-games/libmt_client/files/libmt_client-0.1.98-format.patch @@ -0,0 +1,50 @@ +--- src/mt_client_game.c.old 2015-12-22 08:51:19.858561807 +0100 ++++ src/mt_client_game.c 2015-12-22 08:52:48.934904973 +0100 +@@ -56,7 +56,7 @@ + } + else + { +- g_printerr (str_err_function[num]); ++ g_printerr ("%s\n", str_err_function[num]); + exit (-1); + } + } +@@ -110,27 +110,27 @@ + } + + str_err_function[LIBMT_CLIENT_FUNCTION_INIT] = +- _("libmt_client_function INIT : not initialised\n"); ++ _("libmt_client_function INIT : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_GAME_INIT] = +- _("libmt_client_function GAME_INIT : not initialised\n"); ++ _("libmt_client_function GAME_INIT : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_MAKE_BID] = +- _("libmt_client_function MAKE_BID : not initialised\n"); ++ _("libmt_client_function MAKE_BID : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_MAKE_CHIEN] = +- _("libmt_client_function MAKE_CHIEN : not initialised\n"); ++ _("libmt_client_function MAKE_CHIEN : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_NOT_MAKE_CHIEN] = +- _("libmt_client_function NOT_MAKE_CHIEN : not initialised\n"); ++ _("libmt_client_function NOT_MAKE_CHIEN : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_CHOOSE_CARD] = +- _("libmt_client_function CHOOSE_CARD : not initialised\n"); ++ _("libmt_client_function CHOOSE_CARD : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_DRAW] = +- _("libmt_client_function DRAW : not initialised\n"); ++ _("libmt_client_function DRAW : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_REMOVE_CARD] = +- _("libmt_client_function REMOVE CARD : not initialised\n"); ++ _("libmt_client_function REMOVE CARD : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_ACK_REPLAY] = +- _("libmt_client_function ACK REPLAY : not initialised\n"); ++ _("libmt_client_function ACK REPLAY : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_LOST_CONNECTION] = +- _("libmt_client_function LOST CONNECTION : not initialised\n"); ++ _("libmt_client_function LOST CONNECTION : not initialised"); + str_err_function[LIBMT_CLIENT_FUNCTION_NORMAL_CLOSE] = +- _("libmt_client_function NORMAL CLOSE : not initialised\n"); ++ _("libmt_client_function NORMAL CLOSE : not initialised"); + + return (0); + } diff --git a/dev-games/libmt_client/libmt_client-0.1.98.ebuild b/dev-games/libmt_client/libmt_client-0.1.98.ebuild index c431a655f6b2..a4767c813895 100644 --- a/dev-games/libmt_client/libmt_client-0.1.98.ebuild +++ b/dev-games/libmt_client/libmt_client-0.1.98.ebuild @@ -3,6 +3,9 @@ # $Id$ EAPI=5 + +inherit eutils + DESCRIPTION="backend library for the maitretarot clients" HOMEPAGE="http://www.nongnu.org/maitretarot/" SRC_URI="http://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" @@ -16,3 +19,7 @@ DEPEND="dev-libs/glib:2 dev-libs/libxml2 dev-games/libmaitretarot" RDEPEND=${DEPEND} + +src_prepare () { + epatch "${FILESDIR}"/${P}-format.patch +} |