commit: 650f13dce660ef67fd90b7e6134a9ab79fa36c2c Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Mon Apr 1 07:51:45 2024 +0000 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> CommitDate: Sun Apr 14 16:06:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=650f13dc
mail-mta/opensmtpd: Add missing include Fixes GCC-14 build error implicit declaration of function snprintf Closes: https://bugs.gentoo.org/922951 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/36035 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> .../opensmtpd/files/opensmtpd-7.4.0-missing-include.patch | 11 +++++++++++ mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild | 2 ++ 2 files changed, 13 insertions(+) diff --git a/mail-mta/opensmtpd/files/opensmtpd-7.4.0-missing-include.patch b/mail-mta/opensmtpd/files/opensmtpd-7.4.0-missing-include.patch new file mode 100644 index 000000000000..b11d62456743 --- /dev/null +++ b/mail-mta/opensmtpd/files/opensmtpd-7.4.0-missing-include.patch @@ -0,0 +1,11 @@ +diff -ur '--exclude=*.o' opensmtpd-7.4.0p1.orig/openbsd-compat/getdtablecount.c opensmtpd-7.4.0p1/openbsd-compat/getdtablecount.c +--- a/openbsd-compat/getdtablecount.c 2024-04-01 07:25:41.230753002 +0000 ++++ b/openbsd-compat/getdtablecount.c 2024-04-01 07:27:23.556124378 +0000 +@@ -20,6 +20,7 @@ + + #include <glob.h> + #include <unistd.h> ++#include <stdio.h> + + void fatal(const char *, ...); + void fatalx(const char *, ...); diff --git a/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild index c5b98eddea63..9dfe3df3f2c5 100644 --- a/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild +++ b/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild @@ -57,6 +57,8 @@ QA_CONFIG_IMPL_DECL_SKIP=( closefrom ) DOCS=( {CHANGES,README}.md ) +PATCHES=( "${FILESDIR}/${PN}-7.4.0-missing-include.patch" ) + src_unpack() { if use verify-sig; then # Too many levels of symbolic links