[Buildroot] [PATCH 2/2] package/python-bitstring: add missing runtime dependency

Romain Naour romain.naour at smile.fr
Tue Feb 6 15:51:40 UTC 2024


python-bitstring require python-bitarray and python-zlib at runtime
since 4.0.1 release [1][2].

python-zlib is now needed for the "Experimental support for two 8-bit
float types".

Intended to fixes (fixed locally):
https://gitlab.com/buildroot.org/buildroot/-/jobs/6104227183 (TestPythonPy3Bitstring)
https://gitlab.com/buildroot.org/buildroot/-/jobs/6093854810 (TestPythonPy3Crossbar)

gitlab-ci reports another issue at build time not reproduced locally:

  *** Error compiling '[...]/TestPythonPy3Bitstring/target/usr/lib/python3.11/site-packages/bitstring/plugin_test.py'...
  Sorry: IndentationError: expected an indented block after function definition on line 6 (plugin_test.py, line 8)

[1] https://github.com/scott-griffiths/bitstring/releases/tag/bitstring-4.1.1
[2] https://github.com/scott-griffiths/bitstring/commit/70c8af4d8bef557bc7d96f809d37e2c241587dd0

Signed-off-by: Romain Naour <romain.naour at smile.fr>
Cc: James Hilliard <james.hilliard1 at gmail.com>
---
 package/python-bitstring/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/python-bitstring/Config.in b/package/python-bitstring/Config.in
index 93d7682577..82d0bb29c6 100644
--- a/package/python-bitstring/Config.in
+++ b/package/python-bitstring/Config.in
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_PYTHON_BITSTRING
 	bool "python-bitstring"
+	select BR2_PACKAGE_PYTHON_BITARRAY # runtime
+	select BR2_PACKAGE_PYTHON3_ZLIB # runtime
 	help
 	  Simple construction, analysis and modification of binary data.
 
-- 
2.43.0




More information about the buildroot mailing list