Re: git: 85ba298b7e0c - main - databases/lmdb: allow to install both 0.x and 1.x together

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Wed, 21 Oct 2026 06:34:59 UTC
On 10/20/26 2:51 AM, Baptiste Daroussin wrote:
> The branch main has been updated by bapt:
>
> URL:https://cgit.FreeBSD.org/ports/commit/?id=85ba298b7e0c5fbf9c5629abb3721cf485553b3e
>
> commit 85ba298b7e0c5fbf9c5629abb3721cf485553b3e
> Author:     Baptiste Daroussin<bapt@FreeBSD.org>
> AuthorDate: 2026-10-15 12:21:37 +0000
> Commit:     Baptiste Daroussin<bapt@FreeBSD.org>
> CommitDate: 2026-10-20 09:48:39 +0000
>
>      databases/lmdb: allow to install both 0.x and 1.x together
>      
>      LMDB 1.0 and the legacy 0.9 ABI cannot be mixed, the datanase format are
>      incompatibles as well.

Thank you for addressing this!

It may be incomplete. At least samba425 with LMDB0 option complains 
about missing lmdb.h. May be lacking the new include path?

[3158/4458] Compiling lib/ldb/tests/ldb_lmdb_test.c
runner ['cc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O2', '-pipe', 
'-fno-color-diagnostics', '-DLIBICONV_PLUG', '-DLDAP_DEPRECATED', '-fstack-
protector-strong', '-isystem', '/usr/local/include', 
'-fno-strict-aliasing', '-fno-omit-frame-pointer', '-MMD', 
'-D_GNU_SOURCE=1', '-
D_XOPEN_SOURCE_EXTENDED=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', 
'-D_REENTRANT', '-fstack-protector-strong', '-Wp,-U_FORTIFY_SOURCE,-
D_FORTIFY_SOURCE=3', '-fstack-clash-protection', 
'-DSTATIC_ldb_lmdb_test_MODULES=NULL', 
'-DSTATIC_ldb_lmdb_test_MODULES_PROTO=extern void
__ldb_lmdb_test_dummy_module_proto(void)', '-Ilib/ldb', 
'-I../../lib/ldb', '-Iinclude/public', '-I../../include/public', 
'-Isource4', '-I../../
source4', '-Ilib', '-I../../lib', '-Isource4/lib', 
'-I../../source4/lib', '-Isource4/include', '-I../../source4/include', 
'-Iinclude', '-I../../
include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', 
'-Ilib/ldb/include', '-I../../lib/ldb/include', '-I/usr/local/include', 
'../../lib/
ldb/tests/ldb_lmdb_test.c', '-c', 
'-o/wrkdirs/usr/ports/net/samba424/work/samba-4.24.8/bin/default/lib/ldb/tests/ldb_lmdb_test.c.131.o', 
'-
DLIBICONV_PLUG', '-isystem', '/usr/local/include']
In file included from ../../lib/ldb/tests/ldb_lmdb_test.c:60:
../../lib/ldb/tests/../ldb_mdb/ldb_mdb.h:29:10: fatal error: 'lmdb.h' 
file not found
    29 | #include <lmdb.h>
       |          ^~~~~~~~
1 error generated.

Waf: Leaving directory 
`/wrkdirs/usr/ports/net/samba424/work/samba-4.24.8/bin/default'
Build failed