[Bug 285495] devel/subversion: doest not build due to BDB version and missing libsvn_fs_base object files

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 18 Mar 2025 08:22:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285495

            Bug ID: 285495
           Summary: devel/subversion: doest not build due to BDB version
                    and missing libsvn_fs_base object files
           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: ardovm@yahoo.it

Created attachment 258758
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258758&action=edit
Accept BDB version "185" instead of "18"

There seems to be an issue with the detection of the BDB version that is
compiled in the devel/apr1 libraries.

On my 13.4-RELEASE-p3 system:
# cd /usr/ports/devel/subversion && make showconfig
===> The following configuration options are available for subversion-1.14.5:
     BDB=on: Berkeley DB support
     DOCS=off: Build and/or install documentation
     GPG_AGENT=off: Enable GPG agent password store
     NLS=off: Native Language Support
     SASL=off: SASL authentication support
     SERF=off: WebDAV/Delta-V (HTTP/HTTPS) repo access module
     SVNSERVE_WRAPPER=on: Enable svnserve wrapper (umask setter)
     TEST=off: Run subversion test suite
     TOOLS=on: Install several tools
===> Use 'make config' to modify these settings

The port does not build but rather says:

You should build `devel/apr1' with Berkeley DB (4, 5, 6 or 18) support to use
subversion with it.
Please rebuild `devel/apr1' with option `BDB' and try again.

Or you can disable Berkeley DB support. Only 'fs' repository backend will be
available.

Then I went to check devel/apr1:

# cd /usr/ports/devel/apr1 && make showconfig
===> The following configuration options are available for apr-1.7.5.1.6.3_3:
     IPV6=off: IPv6 protocol support
====> Database support
     GDBM=off: GNU dbm library support
     LDAP=off: LDAP protocol support
     MYSQL=off: MySQL database support
     NDBM=off: NDBM support
     ODBC=off: ODBC database backend
     PGSQL=off: PostgreSQL database support
     SQLITE=off: SQLite database support
====> Berkeley DB provider: you can only select none or one of them
     BDB1=off: Berkeley DB 1.85 support (BSD 3-clause)
     BDB5=off: Berkeley DB v5 support (deprecated)
     BDB18=on: Berkeley DB 18.x support (AGPLv3)
====> Cryptography provider: you can only select none or one of them
     SSL=on: OpenSSL crypto driver
     NSS=off: NSS crypto driver
===> Use 'make config' to modify these settings

The problem seems to be that the Makefile expects
${APR_APU_DIR}/${APU_CONFIG} --db-version 
to return "18", while in my case it returns "185".

I patched devel/subversion's Makefile to accept "185" instead of "18" (see
attachment) but then it fails at the install phase:

# make install
===>  Installing for subversion-1.14.5
===>  Checking if subversion is already installed
===>   Registering installation for subversion-1.14.5
pkg-static: Unable to access file
/usr/ports/devel/subversion/work/stage/usr/local/lib/libsvn_fs_base-1.a:No such
file or directory
pkg-static: Unable to access file
/usr/ports/devel/subversion/work/stage/usr/local/lib/libsvn_fs_base-1.so:No
such file or directory
pkg-static: Unable to access file
/usr/ports/devel/subversion/work/stage/usr/local/lib/libsvn_fs_base-1.so.0:No
such file or directory
pkg-static: Unable to access file
/usr/ports/devel/subversion/work/stage/usr/local/lib/libsvn_fs_base-1.so.0.0.0:No
such file or directory
pkg-static: Unable to access file
/usr/ports/devel/subversion/work/stage/usr/local/libdata/pkgconfig/libsvn_fs_base.pc:No
such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/subversion
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/subversion

I look forward to your help because I ran the "make deinstall" part and now I
am stuck with no svn...

Thank you in advance!

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Maintainer informed via mail

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