package/zxing-cpp: drop support for Python bindings

Since the bump of zxing-cpp to version 2.3.0 in Buildroot commit
fb032bd34a ("package/zxing-cpp: bump to
version 2.3.0"), the build of the Python bindings has been broken. We
tried to figure things out, but couldn't, and nobody bothered fixing
this since February 2025, so let's drop support for the Python
bindings for the time being.

Fixes:

  https://autobuild.buildroot.net/results/93ffa69b9f92f142c65169f9c3a7c7ad0e733551/

Cc: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit f78163431c4ea5a7d8aa083639fc5435d8d64957)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Thomas Petazzoni
2025-12-16 10:55:30 +01:00
committed by Thomas Perale
parent 32dcee9454
commit f777594d19

View File

@@ -14,17 +14,8 @@ ZXING_CPP_DEPENDENCIES = host-pkgconf stb
ZXING_CPP_CONF_OPTS = \
-DBUILD_BLACKBOX_TESTS=OFF \
-DBUILD_UNIT_TESTS=OFF \
-DBUILD_DEPENDENCIES=LOCAL
ifeq ($(BR2_PACKAGE_PYTHON3)$(BR2_PACKAGE_PYTHON_PYBIND),yy)
ZXING_CPP_DEPENDENCIES += python3 python-pybind
ZXING_CPP_CONF_OPTS += \
-DBUILD_PYTHON_MODULE=ON \
-DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3 \
-DPYTHON_INCLUDE_DIRS=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
else
ZXING_CPP_CONF_OPTS += -DBUILD_PYTHON_MODULE=OFF
endif
-DBUILD_DEPENDENCIES=LOCAL \
-DBUILD_PYTHON_MODULE=OFF
ifeq ($(BR2_PACKAGE_ZXING_CPP_READERS),y)
ZXING_CPP_CONF_OPTS += -DBUILD_READERS=ON