Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2016 08:10:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209183] Uses/bdb.mk conversion appears broken
Message-ID:  <bug-209183-13-NHNfw9sRRF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209183-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209183-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209183

--- Comment #8 from Peter Wemm <peter@FreeBSD.org> ---
Unfortunately, this is still broken.

This code:

# 3b. if there is no usable version installed, check defaults
.if empty(_INST_BDB_VER)
_DFLT_BDB_VER:=3D${_DB_DEFAULTS}
# make sure we use a reasonable version for package builds
_WITH_BDB_HIGHEST=3Dyes
. for i in ${_DFLT_BDB_VER}
.  if empty(_SUPP_BDB_VER:M${i})
_DFLT_BDB_VER:=3D ${_DFLT_BDB_VER:N${i}}
.  endif
. endfor
_ELIGIBLE_BDB_VER:=3D${_DFLT_BDB_VER}

.. completely ignores the one from DEFAULT_VERSIONS and uses its hard-coded
version list:

With DEFAULT_VERSIONS=3Dbdb=3D48 in make.conf, then:

databases/py-bsddb # make debug-bdb
--INPUTS----------------------------------------------------
PY27_BSDDB_WITH_BDB_VER:=20
BDB_DEFAULT: 48
^^^^
BDB_BUILD_DEPENDS:=20
bdb_ARGS (original): 43+
WITH_BDB_HIGHEST (original):=20
--PROCESSING------------------------------------------------
supported versions:  48 5 6
invalid versions:=20
installed versions:=20
eligible versions: 48 5
bdb_ARGS (effective): 48+
WITH_BDB_HIGHEST (override): yes
^^^ What?
--OUTPUTS---------------------------------------------------
IGNORE=3D
BDB_VER=3D5
BDB_INCLUDE_DIR=3D/usr/local/include/db5
BDB_LIB_NAME=3Ddb-5.3
BDB_LIB_CXX_NAME=3Ddb_cxx-5.3
BDB_LIB_DIR=3D/usr/local/lib/db5
BUILD_DEPENDS=3D
LIB_DEPENDS=3D
------------------------------------------------------------

The code, as written, is if you don't have a version of bdb installed in
/usr/local already before you start, it completely ignores what you request=
ed
and depends on bdb-5 instead.

# WITH_BDB_HIGHEST
#                       - Use the highest installed version of Berkeley DB.

This is not what is happening.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209183-13-NHNfw9sRRF>