Skip to contentSkip to conversation

package/python-django: fix build with older setuptools

PATCH Applied Thomas Perale via buildroot 1 participant 4 messages Nov 9 – Nov 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/python-django: fix build with older setuptools

Buildroot commit [1] bumped python-django package to its latest LTS version. This included the following upstream commit [2] which bumped the minimum setuptools version and broke the build on LTS.

[1] 8c1e897d56 package/python-django: security bump to v5.2.18
[2] https://github.com/django/django/commit/cd5ad8c81bf221868e3c33d90d6e021d067829b4

---
 ...ped-minimum-setuptools-version-to-83.patch | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 package/python-django/0001-Revert-5.2.x-Bumped-minimum-setuptools-version-to-83.patch
package/python-django/0001-Revert-5.2.x-Bumped-minimum-setuptools-version-to-83.patch new file +28 -0
new file mode 100644
index 0000000000..e26b8d904c
@@ -0,0 +1,28 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Thomas Perale <[email protected]>
+Date: Mon, 9 Nov 2026 12:00:00 +0100
+Subject: [PATCH] Revert "[5.2.x] Bumped minimum setuptools version to 83."
+
+This reverts upstream commit cd5ad8c81bf221868e3c33d90d6e021d067829b4.
+
+Buildroot provides an older setuptools version and no Django code depends
+setuptools 83 feature.
+
+See https://autobuild.buildroot.org/results/4ee/4ee28d52c1ea8883b8c66c899322a0c6f5d3fe83/build-end.log
+
+Upstream: N/A
+Signed-off-by: Thomas Perale <[email protected]>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=83"]
++requires = ["setuptools>=77.0.3"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
Signature · 6 lines
2.56.0

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

PATCH 2/2 package/python-django: security bump to version 5.2.19

Fixes the following security issues:

- CVE-2026-108147: memory exhaustion via base64-encoded file uploads.
- CVE-2026-111211: log injection through geometry form values.
- CVE-2026-111362: SSRF through GeoJSON coordinate system references.
- CVE-2026-113593: private data exposure through cached Vary headers.
- CVE-2026-114582: SSRF through SpatialReference string input.

https://docs.djangoproject.com/en/5.2/releases/5.2.19/

(alternative to commit 5b5c1c9b6b4086a405a5a2a8f3aa64e018e3697c)

---
 package/python-django/python-django.hash | 4 ++--
 package/python-django/python-django.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/python-django/python-django.hash +2 -2
index 9bb445877f..30676ddc60 100644
@@ -1,6 +1,6 @@
 # md5, sha256 from https://pypi.org/pypi/django/json
-md5  37d9504be21272595b91c2aa3ef4904c  django-5.2.18.tar.gz
-sha256  461c5dd06d2ea16bd5ca37d3f46e4def1d6b0fe7588c6f4e2119517bb0af8b2d  django-5.2.18.tar.gz
+md5  48e88356608f080fa460259205e88487  django-5.2.19.tar.gz
+sha256  ad03d8abc51dbff95ebf34b27123cf0c26a3b62db7ba0cd520783686362533d1  django-5.2.19.tar.gz
 # Locally computed sha256 checksums
 sha256  b846415d1b514e9c1dff14a22deb906d794bc546ca6129f950a18cd091e2a669  LICENSE
 sha256  a6fa72074c31928128aaa18162204507938b7a9a8b819bd833fa82467441800d  django/contrib/gis/measure.py
package/python-django/python-django.mk +1 -1
index a94853c518..d36c6b82ce 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PYTHON_DJANGO_VERSION = 5.2.18
+PYTHON_DJANGO_VERSION = 5.2.19
 PYTHON_DJANGO_SOURCE = django-$(PYTHON_DJANGO_VERSION).tar.gz
 # The official Django site has an unpractical URL
 PYTHON_DJANGO_SITE = https://files.pythonhosted.org/packages/source/d/django
Signature · 6 lines
2.56.0

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

Re: [Buildroot] [PATCH 2025.02.x 2/2] package/python-django: security bump to version 5.2.19

In reply of:

Quoted 8 lines

Fixes the following security issues:

- CVE-2026-108147: memory exhaustion via base64-encoded file uploads.
- CVE-2026-111211: log injection through geometry form values.
- CVE-2026-111362: SSRF through GeoJSON coordinate system references.
- CVE-2026-113593: private data exposure through cached Vary headers.
- CVE-2026-114582: SSRF through SpatialReference string input.

Quoted 4 lines

https://docs.djangoproject.com/en/5.2/releases/5.2.19/

(alternative to commit 5b5c1c9b6b4086a405a5a2a8f3aa64e018e3697c)

Applied to 2025.02.x. Thanks

Quoted 23 lines
---
 package/python-django/python-django.hash | 4 ++--
 package/python-django/python-django.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/python-django/python-django.hash +2 -2
index 9bb445877f..30676ddc60 100644
@@ -1,6 +1,6 @@
 # md5, sha256 from https://pypi.org/pypi/django/json
-md5  37d9504be21272595b91c2aa3ef4904c  django-5.2.18.tar.gz
-sha256  461c5dd06d2ea16bd5ca37d3f46e4def1d6b0fe7588c6f4e2119517bb0af8b2d  django-5.2.18.tar.gz
+md5  48e88356608f080fa460259205e88487  django-5.2.19.tar.gz
+sha256  ad03d8abc51dbff95ebf34b27123cf0c26a3b62db7ba0cd520783686362533d1  django-5.2.19.tar.gz
 # Locally computed sha256 checksums
 sha256  b846415d1b514e9c1dff14a22deb906d794bc546ca6129f950a18cd091e2a669  LICENSE
 sha256  a6fa72074c31928128aaa18162204507938b7a9a8b819bd833fa82467441800d  django/contrib/gis/measure.py
package/python-django/python-django.mk +0 -0
index a94853c518..d36c6b82ce 100644

package/python-django/python-django.mk line 10

Quoted 8 lines
package/python-django/python-django.mk +1 -1
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PYTHON_DJANGO_VERSION = 5.2.18
+PYTHON_DJANGO_VERSION = 5.2.19
 PYTHON_DJANGO_SOURCE = django-$(PYTHON_DJANGO_VERSION).tar.gz
 # The official Django site has an unpractical URL
 PYTHON_DJANGO_SITE = https://files.pythonhosted.org/packages/source/d/django

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

#3 lore raw
In reply to Thomas Perale via buildroot

In reply of:

Quoted 9 lines

Buildroot commit [1] bumped python-django package to its latest LTS version. This included the following upstream commit [2] which bumped the minimum setuptools version and broke the build on LTS.

[1] 8c1e897d56 package/python-django: security bump to v5.2.18
[2] https://github.com/django/django/commit/cd5ad8c81bf221868e3c33d90d6e021d067829b4

Applied to 2025.02.x. Thanks

Quoted 29 lines
---
 ...ped-minimum-setuptools-version-to-83.patch | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 package/python-django/0001-Revert-5.2.x-Bumped-minimum-setuptools-version-to-83.patch
package/python-django/0001-Revert-5.2.x-Bumped-minimum-setuptools-version-to-83.patch new file +18 -0
new file mode 100644
index 0000000000..e26b8d904c
@@ -0,0 +1,28 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Thomas Perale <[email protected]>
+Date: Mon, 9 Nov 2026 12:00:00 +0100
+Subject: [PATCH] Revert "[5.2.x] Bumped minimum setuptools version to 83."
+
+This reverts upstream commit cd5ad8c81bf221868e3c33d90d6e021d067829b4.
+
+Buildroot provides an older setuptools version and no Django code depends
+setuptools 83 feature.
+
+See https://autobuild.buildroot.org/results/4ee/4ee28d52c1ea8883b8c66c899322a0c6f5d3fe83/build-end.log
+
+Upstream: N/A
+Signed-off-by: Thomas Perale <[email protected]>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+

package/python-django/0001-Revert-5.2.x-Bumped-minimum-setuptools-version-to-83.patch line 28

Quoted 10 lines
package/python-django/0001-Revert-5.2.x-Bumped-minimum-setuptools-version-to-83.patch new file +10 -0
+diff --git a/pyproject.toml b/pyproject.toml
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=83"]
++requires = ["setuptools>=77.0.3"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]

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