From fd866d03a25dd68e9af5a11d9037a4a387bca242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Oth=C3=B3n=20Mart=C3=ADnez=20Vera?= Date: Mon, 16 Mar 2026 10:22:52 -0600 Subject: [PATCH] mail-mta/sendmail: fix compilation with >=sys-libs/db-5.0.0 for version 8.19.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/971182 Signed-off-by: Cristian Othón Martínez Vera Part-of: https://github.com/gentoo/gentoo/pull/45946 Closes: https://github.com/gentoo/gentoo/pull/45946 Signed-off-by: Sam James --- .../sendmail/files/sendmail-8.19.0.0-newdb.patch | 14 ++++++++++++++ ...8.19.0.0.ebuild => sendmail-8.19.0.0-r1.ebuild} | 1 + 2 files changed, 15 insertions(+) create mode 100644 mail-mta/sendmail/files/sendmail-8.19.0.0-newdb.patch rename mail-mta/sendmail/{sendmail-8.19.0.0.ebuild => sendmail-8.19.0.0-r1.ebuild} (99%) diff --git a/mail-mta/sendmail/files/sendmail-8.19.0.0-newdb.patch b/mail-mta/sendmail/files/sendmail-8.19.0.0-newdb.patch new file mode 100644 index 0000000000000..0310e7f9dff1a --- /dev/null +++ b/mail-mta/sendmail/files/sendmail-8.19.0.0-newdb.patch @@ -0,0 +1,14 @@ +Link: https://narkive.com/H54UQbMD.3 +Bug: https://bugs.gentoo.org/971182 + +--- a/libsmdb/smdb2.c ++++ b/libsmdb/smdb2.c +@@ -440,7 +440,7 @@ + + static void + db_err_cb( +-# if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 ++# if DB_VERSION_MAJOR > 4 || DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 + const DB_ENV *dbenv, const char *errpfx, const char *msg + # else + const char *errpfx, char *msg diff --git a/mail-mta/sendmail/sendmail-8.19.0.0.ebuild b/mail-mta/sendmail/sendmail-8.19.0.0-r1.ebuild similarity index 99% rename from mail-mta/sendmail/sendmail-8.19.0.0.ebuild rename to mail-mta/sendmail/sendmail-8.19.0.0-r1.ebuild index 8b7f6c28c5fb6..221c435e3c606 100644 --- a/mail-mta/sendmail/sendmail-8.19.0.0.ebuild +++ b/mail-mta/sendmail/sendmail-8.19.0.0-r1.ebuild @@ -85,6 +85,7 @@ PDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-8.13.1-delivered_hdr.patch "${FILESDIR}"/${PN}-8.16.1-build-system.patch + "${FILESDIR}"/${PN}-8.19.0.0-newdb.patch ) src_prepare() {