From f352e71062cb18d2175bbe71311cd07e0016fa51 Mon Sep 17 00:00:00 2001 From: Eray Aslan Date: Thu, 19 Mar 2026 07:46:15 +0100 Subject: [PATCH] mail-mta/postfix: add warning if upgrading to postfix-3.11 Signed-off-by: Eray Aslan --- mail-mta/postfix/postfix-3.11.1-r1.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mail-mta/postfix/postfix-3.11.1-r1.ebuild b/mail-mta/postfix/postfix-3.11.1-r1.ebuild index cf77552845ad2..3df0053e1ce76 100644 --- a/mail-mta/postfix/postfix-3.11.1-r1.ebuild +++ b/mail-mta/postfix/postfix-3.11.1-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/postfix.asc -inherit pam systemd toolchain-funcs verify-sig +inherit eapi9-ver pam systemd toolchain-funcs verify-sig if [[ ${PV} == *_rc* ]]; then MY_PV="${PV/_rc/-RC}" @@ -303,6 +303,13 @@ src_install() { } pkg_postinst() { + if ver_replacing -lt 3.11 ; then + # This is an upgrade which requires user review + ewarn "Default database and cache type changed to lmdb" + ewarn "with postfix-3.11. Please read the migration guide:" + ewarn " https://www.postfix.org/NON_BERKELEYDB_README.html" + fi + if ! use berkdb && ! use cdb && ! use lmdb; then ewarn ewarn "No backend for local database files is configured."