Skip to contentSkip to conversation

package/python3: remove configure option --without-cxx-main

PATCH Applied Bernd Kuhls 2 participants 5 messages Oct 4 – Oct 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/python3: remove configure option --without-cxx-main

Upstream release 3.12.0 first included commit
https://github.com/python/cpython/commit/398ed84dc40abc58e16f5014d44c08f20cb4b5f6
which removed the configure option --with-cxx-main.

Buildroot commit 36e635d2d5c0166476858aa239ccbe78e8f2af14 bumped the package from 3.11.6 to 3.12.1 but forgot to remove that configure option.

---
 package/python3/python3.mk | 2 --
 1 file changed, 2 deletions(-)
package/python3/python3.mk +0 -2
index 0a7bb05992..a75af82ce4 100644
@@ -18,7 +18,6 @@ PYTHON3_CPE_ID_PRODUCT = python
 
 HOST_PYTHON3_CONF_OPTS += \
 	--without-ensurepip \
-	--without-cxx-main \
 	--disable-sqlite3 \
 	--disable-tk \
 	--with-expat=system \
@@ -202,7 +201,6 @@ endif
 
 PYTHON3_CONF_OPTS += \
 	--without-ensurepip \
-	--without-cxx-main \
 	--with-build-python=$(HOST_DIR)/bin/python3 \
 	--disable-pydoc \
 	--disable-test-modules \
Signature · 6 lines
2.47.3

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

PATCH 2/2 package/python3: remove 2to3

Upstream release 3.13.0 first included commit
https://github.com/python/cpython/commit/ae00b810d1d3ad7f1f7e226b02ece37c986330e7
which removed the 2to3 program and the lib2to3 module.

Buildroot commit d63e207eb869063f82c867658676c2903beb08cb bumped the package from 3.13.9 to 3.13.2 but forgot to remove its handling.

Current versions of Kodi do not need lib2to3.

---
 Config.in.legacy           | 6 ++++++
 package/kodi/Config.in     | 1 -
 package/python3/Config.in  | 5 -----
 package/python3/python3.mk | 6 ------
 4 files changed, 6 insertions(+), 12 deletions(-)
Config.in.legacy +6 -0
index bb6257f532..9ba6ab243e 100644
@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2026.11"
 
+config BR2_PACKAGE_PYTHON3_2TO3
+	bool "python module 2to3 has been removed"
+	select BR2_LEGACY
+	help
+	  The python module 2to3 has been removed upstream
+
 config BR2_PACKAGE_LIBCPPRESTSDK
 	bool "libcpprestsdk has been removed"
 	select BR2_LEGACY
package/kodi/Config.in +0 -1
index d64a6fee7e..16b86f3fe5 100644
@@ -95,7 +95,6 @@ menuconfig BR2_PACKAGE_KODI
 	select BR2_PACKAGE_LZO
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_PCRE2
-	select BR2_PACKAGE_PYTHON3_2TO3
 	select BR2_PACKAGE_PYTHON3_PYEXPAT
 	select BR2_PACKAGE_PYTHON3_SQLITE
 	select BR2_PACKAGE_PYTHON3_SSL
package/python3/Config.in +0 -5
index f9d3d3aaa2..c362c52ab3 100644
@@ -41,11 +41,6 @@ menu "core python3 modules"
 
 comment "The following modules are unusual or require extra libraries"
 
-config BR2_PACKAGE_PYTHON3_2TO3
-	bool "2to3 module"
-	help
-	  code translation from python 2 to 3
-
 config BR2_PACKAGE_PYTHON3_BERKELEYDB
 	bool "berkeleydb"
 	select BR2_PACKAGE_BERKELEYDB
package/python3/python3.mk +0 -6
index a75af82ce4..6c9fe2178a 100644
@@ -75,12 +75,6 @@ endif
 
 PYTHON3_INSTALL_STAGING = YES
 
-ifeq ($(BR2_PACKAGE_PYTHON3_2TO3),y)
-PYTHON3_CONF_OPTS += --enable-lib2to3
-else
-PYTHON3_CONF_OPTS += --disable-lib2to3
-endif
-
 ifeq ($(BR2_PACKAGE_PYTHON3_BERKELEYDB),y)
 PYTHON3_DEPENDENCIES += berkeleydb
 else
Signature · 6 lines
2.47.3

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

Re: [Buildroot] [PATCH 2/2] package/python3: remove 2to3

In reply of:

Quoted 10 lines

Upstream release 3.13.0 first included commit
https://github.com/python/cpython/commit/ae00b810d1d3ad7f1f7e226b02ece37c986330e7
which removed the 2to3 program and the lib2to3 module.

Buildroot commit d63e207eb869063f82c867658676c2903beb08cb bumped the package from 3.13.9 to 3.13.2 but forgot to remove its handling.

Current versions of Kodi do not need lib2to3.

Applied to 2026.08.x. Thanks

Quoted 59 lines
---
 Config.in.legacy           | 6 ++++++
 package/kodi/Config.in     | 1 -
 package/python3/Config.in  | 5 -----
 package/python3/python3.mk | 6 ------
 4 files changed, 6 insertions(+), 12 deletions(-)
Config.in.legacy +6 -0
index bb6257f532..9ba6ab243e 100644
@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2026.11"
 
+config BR2_PACKAGE_PYTHON3_2TO3
+	bool "python module 2to3 has been removed"
+	select BR2_LEGACY
+	help
+	  The python module 2to3 has been removed upstream
+
 config BR2_PACKAGE_LIBCPPRESTSDK
 	bool "libcpprestsdk has been removed"
 	select BR2_LEGACY
package/kodi/Config.in +0 -1
index d64a6fee7e..16b86f3fe5 100644
@@ -95,7 +95,6 @@ menuconfig BR2_PACKAGE_KODI
 	select BR2_PACKAGE_LZO
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_PCRE2
-	select BR2_PACKAGE_PYTHON3_2TO3
 	select BR2_PACKAGE_PYTHON3_PYEXPAT
 	select BR2_PACKAGE_PYTHON3_SQLITE
 	select BR2_PACKAGE_PYTHON3_SSL
package/python3/Config.in +0 -5
index f9d3d3aaa2..c362c52ab3 100644
@@ -41,11 +41,6 @@ menu "core python3 modules"
 
 comment "The following modules are unusual or require extra libraries"
 
-config BR2_PACKAGE_PYTHON3_2TO3
-	bool "2to3 module"
-	help
-	  code translation from python 2 to 3
-
 config BR2_PACKAGE_PYTHON3_BERKELEYDB
 	bool "berkeleydb"
 	select BR2_PACKAGE_BERKELEYDB
package/python3/python3.mk +0 -0
index a75af82ce4..6c9fe2178a 100644
@@ -75,12 +75,6 @@ endif
 
 PYTHON3_INSTALL_STAGING = YES

package/python3/python3.mk endif · line 80

Quoted 10 lines
package/python3/python3.mk +0 -6
 
-ifeq ($(BR2_PACKAGE_PYTHON3_2TO3),y)
-PYTHON3_CONF_OPTS += --enable-lib2to3
-else
-PYTHON3_CONF_OPTS += --disable-lib2to3
-endif
-
 ifeq ($(BR2_PACKAGE_PYTHON3_BERKELEYDB),y)
 PYTHON3_DEPENDENCIES += berkeleydb
 else

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

#3 lore raw
In reply to Bernd Kuhls
Quoted 9 lines · Bernd Kuhls

Upstream release 3.12.0 first included commit
https://github.com/python/cpython/commit/398ed84dc40abc58e16f5014d44c08f20cb4b5f6
which removed the configure option --with-cxx-main.

Buildroot commit 36e635d2d5c0166476858aa239ccbe78e8f2af14 bumped the package from 3.11.6 to 3.12.1 but forgot to remove that configure option.

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Bernd Kuhls

In reply of:

Quoted 9 lines

Upstream release 3.12.0 first included commit
https://github.com/python/cpython/commit/398ed84dc40abc58e16f5014d44c08f20cb4b5f6
which removed the configure option --with-cxx-main.

Buildroot commit 36e635d2d5c0166476858aa239ccbe78e8f2af14 bumped the package from 3.11.6 to 3.12.1 but forgot to remove that configure option.

Applied to 2025.02.x, 2026.08.x. Thanks

Quoted 17 lines
---
 package/python3/python3.mk | 2 --
 1 file changed, 2 deletions(-)
package/python3/python3.mk +0 -1
index 0a7bb05992..a75af82ce4 100644
@@ -18,7 +18,6 @@ PYTHON3_CPE_ID_PRODUCT = python
 
 HOST_PYTHON3_CONF_OPTS += \
 	--without-ensurepip \
-	--without-cxx-main \
 	--disable-sqlite3 \
 	--disable-tk \
 	--with-expat=system \

package/python3/python3.mk endif · line 206

Quoted 7 lines
package/python3/python3.mk +0 -1
@@ -202,7 +201,6 @@ endif
 
 PYTHON3_CONF_OPTS += \
 	--without-ensurepip \
-	--without-cxx-main \
 	--with-build-python=$(HOST_DIR)/bin/python3 \
 	--disable-pydoc \
 	--disable-test-modules \

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