package/libsigrokdecode: needs python3 w/ zlib support

Some protocol decoders in libsigrokdecode need the zlib module:

    srd: ModuleNotFoundError: Failed to load decoder usb_power_delivery: import by name failed: No module named 'zlib'
    srd: Traceback (most recent call last):
      File "/usr/share/libsigrokdecode/decoders/usb_power_delivery/__init__.py", line 24, in <module>
        from .pd import *
      File "/usr/share/libsigrokdecode/decoders/usb_power_delivery/pd.py", line 24, in <module>
        import zlib   # for crc32
        ^^^^^^^^^^^
    ModuleNotFoundError: No module named 'zlib'

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Yann E. MORIN
2025-04-09 22:03:16 +02:00
committed by Thomas Petazzoni
parent d0994fd66d
commit 9d6ab1244a

View File

@@ -6,6 +6,7 @@ config BR2_PACKAGE_LIBSIGROKDECODE
depends on !BR2_STATIC_LIBS # python3
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_PYTHON3_ZLIB # runtime
help
Libsigrokdecode is a shared library written in C, which
provides (streaming) protocol decoding functionality. Say