* [Buildroot] [PATCH 1/2] package/python-zlmdb: select python3 zlib support
@ 2026-10-13 14:04 Yegor Yefremov via buildroot
2026-10-13 14:04 ` [Buildroot] [PATCH 2/2] package/python-zlmdb: bump to version 26.7.1 Yegor Yefremov
2026-10-13 21:09 ` [Buildroot] [PATCH 1/2] package/python-zlmdb: select python3 zlib support Thomas Petazzoni via buildroot
0 siblings, 2 replies; 4+ messages in thread
From: Yegor Yefremov via buildroot @ 2026-10-13 14:04 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard
zlmdb/_pmap.py unconditionally imports the zlib module, so importing
zlmdb fails without it:
ModuleNotFoundError: No module named 'zlib'
Select BR2_PACKAGE_PYTHON3_ZLIB.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Assisted-by: Claude:claude-opus-5-5
---
package/python-zlmdb/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/python-zlmdb/Config.in b/package/python-zlmdb/Config.in
index 884cfff182..1edf993ecd 100644
--- a/package/python-zlmdb/Config.in
+++ b/package/python-zlmdb/Config.in
@@ -5,6 +5,7 @@ config BR2_PACKAGE_PYTHON_ZLMDB
depends on BR2_INSTALL_LIBSTDCPP # python-numpy
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
+ select BR2_PACKAGE_PYTHON3_ZLIB # runtime
select BR2_PACKAGE_PYTHON_CBOR2 # runtime
select BR2_PACKAGE_PYTHON_CFFI # runtime
select BR2_PACKAGE_PYTHON_CLICK # runtime
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] package/python-zlmdb: bump to version 26.7.1
2026-10-13 14:04 [Buildroot] [PATCH 1/2] package/python-zlmdb: select python3 zlib support Yegor Yefremov via buildroot
@ 2026-10-13 14:04 ` Yegor Yefremov
2026-10-13 21:12 ` Thomas Petazzoni via buildroot
2026-10-13 21:09 ` [Buildroot] [PATCH 1/2] package/python-zlmdb: select python3 zlib support Thomas Petazzoni via buildroot
1 sibling, 1 reply; 4+ messages in thread
From: Yegor Yefremov @ 2026-10-13 14:04 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard
Version 23.1.1 ships a vendored copy of flatbuffers as a top-level
"flatbuffers" package, which conflicts with python-flatbuffers that
python-zlmdb itself selects:
FileExistsError: File already exists: .../target/usr/lib/python3.14/site-packages/flatbuffers/__init__.py
Starting with this release the flatbuffers runtime is vendored as
zlmdb.flatbuffers, and py-lmdb plus a patched LMDB are vendored as
zlmdb._lmdb_vendor, built as a CFFI extension. Thus drop the
python-flatbuffers and python-lmdb selects.
The build system switched to hatchling. The build hook needs host cffi
and setuptools to compile the LMDB extension and uses cmake to build
the bundled flatc compiler.
Update the license information to cover the bundled LMDB, py-lmdb and
flatbuffers code.
Fixes: https://autobuild.buildroot.org/results/e3b026cb48f41ec531e5bdae9e07b8e581f1a06b
Changelog: https://github.com/crossbario/zlmdb/blob/master/docs/changelog.rst
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Assisted-by: Claude:claude-opus-5-5
---
package/python-zlmdb/Config.in | 2 --
package/python-zlmdb/python-zlmdb.hash | 7 ++++---
package/python-zlmdb/python-zlmdb.mk | 15 ++++++++++-----
3 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/package/python-zlmdb/Config.in b/package/python-zlmdb/Config.in
index 1edf993ecd..f6b8caebcb 100644
--- a/package/python-zlmdb/Config.in
+++ b/package/python-zlmdb/Config.in
@@ -9,8 +9,6 @@ config BR2_PACKAGE_PYTHON_ZLMDB
select BR2_PACKAGE_PYTHON_CBOR2 # runtime
select BR2_PACKAGE_PYTHON_CFFI # runtime
select BR2_PACKAGE_PYTHON_CLICK # runtime
- select BR2_PACKAGE_PYTHON_FLATBUFFERS # runtime
- select BR2_PACKAGE_PYTHON_LMDB # runtime
select BR2_PACKAGE_PYTHON_NUMPY # runtime
select BR2_PACKAGE_PYTHON_PYNACL # runtime
select BR2_PACKAGE_PYTHON_PYYAML # runtime
diff --git a/package/python-zlmdb/python-zlmdb.hash b/package/python-zlmdb/python-zlmdb.hash
index ed1b6db8c2..e29bbea280 100644
--- a/package/python-zlmdb/python-zlmdb.hash
+++ b/package/python-zlmdb/python-zlmdb.hash
@@ -1,5 +1,6 @@
# md5, sha256 from https://pypi.org/pypi/zlmdb/json
-md5 4d96b46d1724b9d4cb6961874e5b4a9a zlmdb-23.1.1.tar.gz
-sha256 ddcf680bf49352cabe35bfb5bfe3acbd5d6b8d481cafa508c423e0b18d654d05 zlmdb-23.1.1.tar.gz
+md5 186642d7df261a781631a734244f785e zlmdb-26.7.1.tar.gz
+sha256 3cbc9447cfbf3b33dad0a30f7e671d467d72b41e5bc4e999b4f41914eff5fcb9 zlmdb-26.7.1.tar.gz
# Locally computed sha256 checksums
-sha256 8a139bf325dcca11e0e476ce537bf791a6cfbeed8899a9b6ddc55238e180d230 LICENSE
+sha256 0ba0c0c595fd01ee19478ca417f210b75740f9b84ca937ebf783154e1cc01174 LICENSE
+sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 deps/flatbuffers/LICENSE
diff --git a/package/python-zlmdb/python-zlmdb.mk b/package/python-zlmdb/python-zlmdb.mk
index 70538ce63c..da625f9777 100644
--- a/package/python-zlmdb/python-zlmdb.mk
+++ b/package/python-zlmdb/python-zlmdb.mk
@@ -4,11 +4,16 @@
#
################################################################################
-PYTHON_ZLMDB_VERSION = 23.1.1
+PYTHON_ZLMDB_VERSION = 26.7.1
PYTHON_ZLMDB_SOURCE = zlmdb-$(PYTHON_ZLMDB_VERSION).tar.gz
-PYTHON_ZLMDB_SITE = https://files.pythonhosted.org/packages/56/b2/abaeb5419435a6224a0beb2b5edad621ec975fe4802297963ecf1728b883
-PYTHON_ZLMDB_SETUP_TYPE = setuptools
-PYTHON_ZLMDB_LICENSE = MIT
-PYTHON_ZLMDB_LICENSE_FILES = LICENSE
+PYTHON_ZLMDB_SITE = https://files.pythonhosted.org/packages/87/21/5b877e438d652f78bcf88aec83474b373f8ab1b98b6c0c5d47db3481d6b0
+PYTHON_ZLMDB_SETUP_TYPE = hatch
+PYTHON_ZLMDB_LICENSE = MIT, OLDAP-2.8 (bundled lmdb, py-lmdb), Apache-2.0 (bundled flatbuffers)
+PYTHON_ZLMDB_LICENSE_FILES = LICENSE deps/flatbuffers/LICENSE
+# cmake is used to build the bundled flatc compiler
+PYTHON_ZLMDB_DEPENDENCIES = \
+ $(BR2_CMAKE_HOST_DEPENDENCY) \
+ host-python-cffi \
+ host-python-setuptools
$(eval $(python-package))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/python-zlmdb: select python3 zlib support
2026-10-13 14:04 [Buildroot] [PATCH 1/2] package/python-zlmdb: select python3 zlib support Yegor Yefremov via buildroot
2026-10-13 14:04 ` [Buildroot] [PATCH 2/2] package/python-zlmdb: bump to version 26.7.1 Yegor Yefremov
@ 2026-10-13 21:09 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-13 21:09 UTC (permalink / raw)
To: Yegor Yefremov; +Cc: buildroot, James Hilliard
On Tue, Oct 13, 2026 at 04:04:22PM +0200, Yegor Yefremov via buildroot wrote:
> zlmdb/_pmap.py unconditionally imports the zlib module, so importing
> zlmdb fails without it:
>
> ModuleNotFoundError: No module named 'zlib'
>
> Select BR2_PACKAGE_PYTHON3_ZLIB.
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> Assisted-by: Claude:claude-opus-5-5
Usual request: when providing a fix, always include the information of
which commit introduced the problem. If it has been a problem since
the package was added, the Fixes: tag can point to the commit adding
the package.
Without this information, LTS maintainers will have to dig themselves
into this to figure out whether this fix needs to be backported or
not, and our LTS maintainers already have to crawl through hundreds of
commits, so let's make their life easier :)
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 2/2] package/python-zlmdb: bump to version 26.7.1
2026-10-13 14:04 ` [Buildroot] [PATCH 2/2] package/python-zlmdb: bump to version 26.7.1 Yegor Yefremov
@ 2026-10-13 21:12 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-13 21:12 UTC (permalink / raw)
To: Yegor Yefremov; +Cc: buildroot, James Hilliard
On Tue, Oct 13, 2026 at 04:04:23PM +0200, Yegor Yefremov wrote:
> Version 23.1.1 ships a vendored copy of flatbuffers as a top-level
> "flatbuffers" package, which conflicts with python-flatbuffers that
> python-zlmdb itself selects:
>
> FileExistsError: File already exists: .../target/usr/lib/python3.14/site-packages/flatbuffers/__init__.py
>
> Starting with this release the flatbuffers runtime is vendored as
> zlmdb.flatbuffers, and py-lmdb plus a patched LMDB are vendored as
> zlmdb._lmdb_vendor, built as a CFFI extension. Thus drop the
> python-flatbuffers and python-lmdb selects.
>
> The build system switched to hatchling. The build hook needs host cffi
> and setuptools to compile the LMDB extension and uses cmake to build
> the bundled flatc compiler.
>
> Update the license information to cover the bundled LMDB, py-lmdb and
> flatbuffers code.
>
> Fixes: https://autobuild.buildroot.org/results/e3b026cb48f41ec531e5bdae9e07b8e581f1a06b
When was the problem introduced? I.e does the problem exist in
2025.02.x?
It's always a bit annoying to have to do a major bump to fix an issue,
as it's more risk in terms of backporting to an LTS branch;
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-13 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 14:04 [Buildroot] [PATCH 1/2] package/python-zlmdb: select python3 zlib support Yegor Yefremov via buildroot
2026-10-13 14:04 ` [Buildroot] [PATCH 2/2] package/python-zlmdb: bump to version 26.7.1 Yegor Yefremov
2026-10-13 21:12 ` Thomas Petazzoni via buildroot
2026-10-13 21:09 ` [Buildroot] [PATCH 1/2] package/python-zlmdb: select python3 zlib support Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.