git: a396e4f13134 - main - Mk/Uses/bdb.mk: Allow bdb:18 to work by default.

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Mon, 09 May 2022 18:58:33 UTC
The branch main has been updated by bdrewery:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a396e4f131341b58bf897f73d1ce1f8a6f6e5256

commit a396e4f131341b58bf897f73d1ce1f8a6f6e5256
Author:     Bryan Drewery <bdrewery@FreeBSD.org>
AuthorDate: 2022-05-09 18:56:31 +0000
Commit:     Bryan Drewery <bdrewery@FreeBSD.org>
CommitDate: 2022-05-09 18:58:30 +0000

    Mk/Uses/bdb.mk: Allow bdb:18 to work by default.
    
    mail/mutt currently has USES=bdb:18 which causes an obscure error in
    Poudriere causing it to be IGNORED unless WITH_BDB6_PERMITTED is set.
    We already have a license framework so this flag seems odd but in the
    case where a port explicitly is asking for the version it makes sense
    to permit it as the default.
---
 Mk/Uses/bdb.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/Uses/bdb.mk b/Mk/Uses/bdb.mk
index 645b9e9a7b0e..0316ff061229 100644
--- a/Mk/Uses/bdb.mk
+++ b/Mk/Uses/bdb.mk
@@ -63,7 +63,7 @@ _DB_DEFAULTS=	5
 #   Since 2020-12-02, this name is not fitting too much but
 #   retained for now for compatibility. The name of this variable
 #   is subject to change especially once db6 were removed.
-.  if defined(WITH_BDB6_PERMITTED)
+.  if defined(WITH_BDB6_PERMITTED) || ${_bdb_ARGS} == 18
 _DB_DEFAULTS+=	18
 .  endif