[Bug 261638] Mk/Uses/bdb.mk: setting default version to 18 causes ports to be marked as IGNORE

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 31 Jan 2022 22:19:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261638

            Bug ID: 261638
           Summary: Mk/Uses/bdb.mk: setting default version to 18 causes
                    ports to be marked as IGNORE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: cyberbotx@cyberbotx.com
                CC: ume@FreeBSD.org
                CC: ume@FreeBSD.org

So recently I was getting messages saying that bdb 5 was deprecated and it was
recommended to switch to bdb 18. But when I change my DEFAULT_VERSIONS to have
bdb=18, I started getting ports marked as IGNORE in my poudriere builds. For
instance, security/cyrus-sasl2 tells me this:

cannot install: no eligible BerkeleyDB version. Requested: 18, incompatible: 2.
Try: make debug-bdb

Most ports say the same thing except for having nothing where the 2 after
incompatible is.

When I enter an interactive poudriere session with no bdb installed and my
default set to 5 (or unset) and run debug-bdb inside of
/usr/ports/security/cyrus-sasl2, I get the following:

--INPUTS----------------------------------------------------
CYRUS_SASL_WITH_BDB_VER: 
BDB_DEFAULT: 5
BDB_BUILD_DEPENDS: 
bdb_ARGS (original): 
WITH_BDB_HIGHEST (original): 
--PROCESSING------------------------------------------------
supported versions: 5
invalid versions: 2
installed versions: 
eligible versions: 5
bdb_ARGS (effective): 5
WITH_BDB_HIGHEST (override): yes
--OUTPUTS---------------------------------------------------
IGNORE=
BDB_VER=5
BDB_INCLUDE_DIR=/usr/local/include/db5
BDB_LIB_NAME=db-5.3
BDB_LIB_CXX_NAME=db_cxx-5.3
BDB_LIB_DIR=/usr/local/lib/db5
BUILD_DEPENDS=
LIB_DEPENDS=libdb-5.3.so:databases/db5
------------------------------------------------------------

But if I set my default version to 18, I get the following instead:

--INPUTS----------------------------------------------------
CYRUS_SASL_WITH_BDB_VER: 
BDB_DEFAULT: 18
BDB_BUILD_DEPENDS: 
bdb_ARGS (original): 
WITH_BDB_HIGHEST (original): 
--PROCESSING------------------------------------------------
supported versions: 18
invalid versions: 2
installed versions: 
eligible versions: 
bdb_ARGS (effective): 18
WITH_BDB_HIGHEST (override): yes
--OUTPUTS---------------------------------------------------
IGNORE=cannot install: no eligible BerkeleyDB version. Requested: 18,
incompatible: 2. Try: make debug-bdb
BDB_VER=
BDB_INCLUDE_DIR=
BDB_LIB_NAME=
BDB_LIB_CXX_NAME=
BDB_LIB_DIR=
BUILD_DEPENDS=
LIB_DEPENDS=
------------------------------------------------------------

I don't know enough about how bdb.mk is structured to know how to fix this,
though.

-- 
You are receiving this mail because:
You are the assignee for the bug.