gentoo-ebuilds/dev-games/libmt_client/files/libmt_client-0.1.98-format.patch
Sam James 1b8ce79f27
dev-games/libmt_client: port to EAPI 7, install M4 macro, fix libdir
* Fix libdir in our macro (then install it)
* Install M4 macro

This helps consumers like games-board/mt_ncurses_client find
dev-games/libmt_client.

We need to install the M4 macro so that we can actually regenerate
(eautoreconf).

Right now, some	consumers don't	have bundled macros at all,
and others lack the needed libdir fixes.

Let's install fixed ones here (and in libmaitretarot) so that consumers
can just rely on those.

Closes:	https://bugs.gentoo.org/729734
Closes: https://bugs.gentoo.org/716102
Closes: https://bugs.gentoo.org/715582
Signed-off-by: Sam James <sam@gentoo.org>
2021-03-17 05:40:00 +00:00

50 lines
2.2 KiB
Diff

--- a/src/mt_client_game.c
+++ b/src/mt_client_game.c
@@ -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);
}