[Bug 209183] Uses/bdb.mk conversion appears broken
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jul 24 08:10:15 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209183
--- Comment #8 from Peter Wemm <peter at 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:=${_DB_DEFAULTS}
# make sure we use a reasonable version for package builds
_WITH_BDB_HIGHEST=yes
. for i in ${_DFLT_BDB_VER}
. if empty(_SUPP_BDB_VER:M${i})
_DFLT_BDB_VER:= ${_DFLT_BDB_VER:N${i}}
. endif
. endfor
_ELIGIBLE_BDB_VER:=${_DFLT_BDB_VER}
.. completely ignores the one from DEFAULT_VERSIONS and uses its hard-coded
version list:
With DEFAULT_VERSIONS=bdb=48 in make.conf, then:
databases/py-bsddb # make debug-bdb
--INPUTS----------------------------------------------------
PY27_BSDDB_WITH_BDB_VER:
BDB_DEFAULT: 48
^^^^
BDB_BUILD_DEPENDS:
bdb_ARGS (original): 43+
WITH_BDB_HIGHEST (original):
--PROCESSING------------------------------------------------
supported versions: 48 5 6
invalid versions:
installed versions:
eligible versions: 48 5
bdb_ARGS (effective): 48+
WITH_BDB_HIGHEST (override): yes
^^^ What?
--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=
------------------------------------------------------------
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 requested
and depends on bdb-5 instead.
# WITH_BDB_HIGHEST
# - Use the highest installed version of Berkeley DB.
This is not what is happening.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list