portupgrade-devel & db5

olli hauer ohauer at gmx.de
Sat Jun 22 11:33:28 UTC 2013

On 2013-06-22 12:04, Jerry wrote:
> I am trying to wean off as many programs as I can from versions of
> Berkeley DB <5 on my system. In most cases I have been successful. Not
> so much with "portupgrade-devel".
> I placed this in the "/etc/make.conf" file and then rebuilt the port.
> # Portupgrade-devel
> .if $(.CURDIR:M*/ports-mgmt/portupgrade-devel)
> .endif

Because of this line in portupgrade-devel

> RUN_DEPENDS+=   ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb

you have to specify it this way

.if $(.CURDIR:M*/databases/ruby-bdb)

> Is it possible to get the port to build with the db5 or not?
> While I am at it, can I simply place this in the '/etc/make.conf" file:
> "WITH_BDB_VER=5" and get any port that depends on Berkeley DB to build
> with the db5 version? I believe that I have gotten all of the other
> programs that depended on older versions of Berkeley DB upgraded.

It is safe to specify it this way


I suspect most ports can run with at last db48, but a change from db42 to db48
can break many things on the user side (data loss of existing databases ...).


More information about the freebsd-ports mailing list