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

From: Hajimu UMEMOTO <ume_at_FreeBSD.org>
Date: Wed, 21 Oct 2026 06:49:12 UTC
Hi,

> 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 the work.
It broke databases/py−lmdb.
This patch should fix it:

diff --git databases/py-lmdb/Makefile databases/py-lmdb/Makefile
index 7f7f083b6733..bc0b78112db3 100644
--- databases/py-lmdb/Makefile
+++ databases/py-lmdb/Makefile
@@ -26,9 +26,9 @@ USE_PYTHON=	autoplist pep517
 
 MAKE_ENV=	LMDB_FORCE_SYSTEM=1 \
 		LMDB_FORCE_CFFI=1 \
-		CPPFLAGS="-I${LOCALBASE}/lmdb0/include" \
-		LDFLAGS="-L${LOCALBASE}/lmdb0/lib" \
 		PKG_CONFIG_PATH="${LOCALBASE}/lmdb0/libdata/pkgconfig"
+CPPFLAGS+=	-I${LOCALBASE}/lmdb0/include
+LDFLAGS+=	-L${LOCALBASE}/lmdb0/lib
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/lmdb/lmdb_cffi*.so

Sincerely,

--
Hajimu UMEMOTO
ume@mahoroba.org  ume@FreeBSD.org