commit: 2f60169115bada72bbf046a698cc901d8d7384ac Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> AuthorDate: Sat Dec 24 21:24:04 2022 +0000 Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> CommitDate: Sat Dec 24 21:24:04 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2f601691
x11-misc/gromit-mpx: Fix implicit function declaration. This fixes compilation with -Werror,-Wimplicit-function-declaration. Closes: https://bugs.gentoo.org/888149 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> .../gromit-mpx-1.4.3-fwd-declare-app_parse_args.patch | 16 ++++++++++++++++ x11-misc/gromit-mpx/gromit-mpx-1.4.3.ebuild | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/x11-misc/gromit-mpx/files/gromit-mpx-1.4.3-fwd-declare-app_parse_args.patch b/x11-misc/gromit-mpx/files/gromit-mpx-1.4.3-fwd-declare-app_parse_args.patch new file mode 100644 index 000000000..90367cfb4 --- /dev/null +++ b/x11-misc/gromit-mpx/files/gromit-mpx-1.4.3-fwd-declare-app_parse_args.patch @@ -0,0 +1,16 @@ +Fixes compilation with -Werror,-Wimplicit-function-declaration. + +Bug: https://bugs.gentoo.org/888149 +Bug: https://github.com/bk138/gromit-mpx/pull/173 + +--- gromit-mpx-1.4.3/src/gromit-mpx.c 2022-09-25 14:43:43.000000000 +0200 ++++ gromit-mpx-1.4.3/src/gromit-mpx.c 2022-12-24 18:32:23.629233288 +0100 +@@ -696,7 +696,7 @@ + } + + +- ++int app_parse_args (int argc, char **argv, GromitData *data); + + + void setup_main_app (GromitData *data, int argc, char ** argv) diff --git a/x11-misc/gromit-mpx/gromit-mpx-1.4.3.ebuild b/x11-misc/gromit-mpx/gromit-mpx-1.4.3.ebuild index 95600ede0..1d64637ab 100644 --- a/x11-misc/gromit-mpx/gromit-mpx-1.4.3.ebuild +++ b/x11-misc/gromit-mpx/gromit-mpx-1.4.3.ebuild @@ -27,6 +27,10 @@ RDEPEND=" " DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}"/${PN}-1.4.3-fwd-declare-app_parse_args.patch +) + src_prepare () { cmake_src_prepare }