mail-mta/sendmail: fix compilation with >=sys-libs/db-5.0.0 for version 8.19.0.0

Closes: https://bugs.gentoo.org/971182
Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/45946
Closes: https://github.com/gentoo/gentoo/pull/45946
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Cristian Othón Martínez Vera
2026-03-16 10:22:52 -06:00
committed by Sam James
parent b15176b347
commit fd866d03a2
2 changed files with 15 additions and 0 deletions

View File

@@ -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

View File

@@ -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() {