commit: bebe48a569c277bfa5b4835cababf62c3b7c9769 Author: Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com> AuthorDate: Sat Sep 17 11:51:03 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Sep 17 21:13:31 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bebe48a5
mail-filter/imapfilter: fix build with -Werror=strict-prototypes Closes: https://bugs.gentoo.org/870682 Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com> Closes: https://github.com/gentoo/gentoo/pull/27304 Signed-off-by: Sam James <sam <AT> gentoo.org> .../imapfilter/files/2.7.6-prototypes.patch | 30 ++++++++++++++++++++++ mail-filter/imapfilter/imapfilter-2.7.6.ebuild | 4 +++ 2 files changed, 34 insertions(+) diff --git a/mail-filter/imapfilter/files/2.7.6-prototypes.patch b/mail-filter/imapfilter/files/2.7.6-prototypes.patch new file mode 100644 index 000000000000..33448834fa2f --- /dev/null +++ b/mail-filter/imapfilter/files/2.7.6-prototypes.patch @@ -0,0 +1,30 @@ + +Patch from: https://github.com/lefcha/imapfilter/pull/257 +Bug: https://bugs.gentoo.org/870682 + +From 9580bfca0d8a1cf92a79a24b9f1b83fd3b778375 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <[email protected]> +Date: Sat, 17 Sep 2022 13:42:30 +0200 +Subject: [PATCH] Fix compilation failure with -Werror=strict-prototypes +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Holger Hoffstätte <[email protected]> +--- + src/lua.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lua.c b/src/lua.c +index 868ddb7..02514bb 100644 +--- a/src/lua.c ++++ b/src/lua.c +@@ -26,7 +26,7 @@ void interactive_mode(void); + * Lua interface functions, load and execute imapfilter's configuration file. + */ + void +-start_lua() ++start_lua(void) + { + + lua = luaL_newstate(); diff --git a/mail-filter/imapfilter/imapfilter-2.7.6.ebuild b/mail-filter/imapfilter/imapfilter-2.7.6.ebuild index 8c65a881ad44..d129899e7bff 100644 --- a/mail-filter/imapfilter/imapfilter-2.7.6.ebuild +++ b/mail-filter/imapfilter/imapfilter-2.7.6.ebuild @@ -25,6 +25,10 @@ DEPEND="${RDEPEND}" DOCS="AUTHORS NEWS README samples/*" +PATCHES=( + "${FILESDIR}/${PV}-prototypes.patch" +) + src_prepare() { default sed -i -e "/^PREFIX/s:/usr/local:${EPREFIX}/usr:" \
