commit: 9e5a888796306a04ee632220be918026b1a51e1c Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Tue Oct 11 08:22:48 2022 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Tue Oct 11 08:56:00 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e5a8887
mail-filter/dcc: fix for -std=c2x early Only two functions were using K&R style and no other issues, so patching rather than pass -std=gnu89 (since not going to use it, also drop unused flag-o-matic while here). (not actively hunting for these, merely revisiting packages previously looked at for clang16 even if not an issue "yet"). Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> mail-filter/dcc/dcc-1.3.158-r2.ebuild | 3 ++- mail-filter/dcc/files/dcc-1.3.158-c2x.patch | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/mail-filter/dcc/dcc-1.3.158-r2.ebuild b/mail-filter/dcc/dcc-1.3.158-r2.ebuild index 7aac567ecd12..6c09223f5624 100644 --- a/mail-filter/dcc/dcc-1.3.158-r2.ebuild +++ b/mail-filter/dcc/dcc-1.3.158-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit flag-o-matic toolchain-funcs +inherit toolchain-funcs DESCRIPTION="Distributed Checksum Clearinghouse" HOMEPAGE="https://www.rhyolite.com/dcc/" @@ -36,6 +36,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.3.140-freebsd.patch "${FILESDIR}"/${P}-fno-common.patch "${FILESDIR}"/${P}-clang16.patch + "${FILESDIR}"/${P}-c2x.patch ) src_configure() { diff --git a/mail-filter/dcc/files/dcc-1.3.158-c2x.patch b/mail-filter/dcc/files/dcc-1.3.158-c2x.patch new file mode 100644 index 000000000000..79b70f300f8f --- /dev/null +++ b/mail-filter/dcc/files/dcc-1.3.158-c2x.patch @@ -0,0 +1,21 @@ +This is the only K&R-style functions in the source, incompatible with C2x. +--- a/dcclib/inet_ntop.c ++++ b/dcclib/inet_ntop.c +@@ -88,7 +88,3 @@ + */ +-static const char * +-inet_ntop4(src, dst, size) +- const u_char *src; +- char *dst; +- size_t size; ++static const char *inet_ntop4(const u_char *src, char *dst, size_t size) + { +@@ -115,7 +111,3 @@ + */ +-static const char * +-inet_ntop6(src, dst, size) +- const u_char *src; +- char *dst; +- size_t size; ++static const char *inet_ntop6(const u_char *src, char *dst, size_t size) + {
