Skip to contentSkip to conversation

package/zxing-cpp: drop support for Python bindings

PATCH Applied Thomas Petazzoni via buildroot 1 participant 2 messages Dec 16, 2025 – Jan 13

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/zxing-cpp: drop support for Python bindings

Since the bump of zxing-cpp to version 2.3.0 in Buildroot commit fb032bd34acf57f86f62bd474cbabd4e1e750e67 ("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 <[email protected]>
Cc Dario Binacchi <[email protected]>
---
 package/zxing-cpp/zxing-cpp.mk | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
package/zxing-cpp/zxing-cpp.mk +2 -11
index 515daf590f..8c44e8ea9a 100644
@@ -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
Signature · 6 lines
2.52.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

In reply of:

Quoted 7 lines

Since the bump of zxing-cpp to version 2.3.0 in Buildroot commit fb032bd34acf57f86f62bd474cbabd4e1e750e67 ("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.

Quoted 7 lines

Fixes:

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

Cc Thomas Bonnefille <[email protected]>
Cc Dario Binacchi <[email protected]>

Applied to 2025.02.x and 2025.11.x. Thanks

Quoted 35 lines
---
 package/zxing-cpp/zxing-cpp.mk | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
package/zxing-cpp/zxing-cpp.mk +2 -11
index 515daf590f..8c44e8ea9a 100644
@@ -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
Signature · 6 lines
2.52.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot