python3-django: upgrade 4.2.20 -> 4.2.25
PATCH 1/2 python3-django: upgrade 4.2.20 -> 4.2.25
The pypi package was renamed from Django to django, so the custom name is not required anymore.
This upgrade contains fix for CVE-2025-32873, CVE-2025-48432 and CVE-2025-59682.
Changelog:
https://github.com/django/django/blob/main/docs/releases/4.2.21.txt
https://github.com/django/django/blob/main/docs/releases/4.2.22.txt
https://github.com/django/django/blob/main/docs/releases/4.2.23.txt
https://github.com/django/django/blob/main/docs/releases/4.2.24.txt
https://github.com/django/django/blob/main/docs/releases/4.2.25.txt
---
meta-python/recipes-devtools/python/python3-django.inc | 3 ---
.../{python3-django_4.2.20.bb => python3-django_4.2.25.bb} | 4 ++--
2 files changed, 2 insertions(+), 5 deletions(-)
rename meta-python/recipes-devtools/python/{python3-django_4.2.20.bb => python3-django_4.2.25.bb} (64%)meta-python/recipes-devtools/python/python3-django.inc +0 -3
@@ -3,9 +3,6 @@ HOMEPAGE = "https://www.djangoproject.com/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa" -PYPI_PACKAGE = "Django" -UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" - inherit pypi FILES:${PN} += "${datadir}/django"
meta-python/recipes-devtools/python/python3-django_4.2.25.bb renamed from meta-python/recipes-devtools/python/python3-django_4.2.20.bb +2 -2
@@ -1,7 +1,7 @@ require python3-django.inc inherit python_setuptools_build_meta -SRC_URI[sha256sum] = "92bac5b4432a64532abb73b2ac27203f485e40225d2640a7fbef2b62b876e789" +SRC_URI[sha256sum] = "2391ab3d78191caaae2c963c19fd70b99e9751008da22a0adcc667c5a4f8d311" RDEPENDS:${PN} += "\ python3-sqlparse \
@@ -10,5 +10,5 @@ RDEPENDS:${PN} += "\ # Set DEFAULT_PREFERENCE so that the LTS version of django is built by # default. To build the 4.x branch, -# PREFERRED_VERSION_python3-django = "4.2.20" can be added to local.conf +# PREFERRED_VERSION_python3-django = "4.2.25" can be added to local.conf DEFAULT_PREFERENCE = "-1"
PATCH 2/2 python3-django: upgrade 5.2 -> 5.2.7
This contains a fix for CVE-2025-32873, CVE-2025-48432, CVE-2025-57833 and CVE-2025-59681.
Drop patch which has been incorporated by upstream in this release.
Chagelog:
https://github.com/django/django/blob/main/docs/releases/5.2.1.txt
https://github.com/django/django/blob/main/docs/releases/5.2.2.txt
https://github.com/django/django/blob/main/docs/releases/5.2.3.txt
https://github.com/django/django/blob/main/docs/releases/5.2.4.txt
https://github.com/django/django/blob/main/docs/releases/5.2.5.txt
https://github.com/django/django/blob/main/docs/releases/5.2.6.txt
https://github.com/django/django/blob/main/docs/releases/5.2.7.txt
--- ...ated-setuptools-to-normalize-package.patch | 27 ------------------- .../python/python3-django_5.2.7.bb | 9 +++++++ .../python/python3-django_5.2.bb | 13 --------- 3 files changed, 9 insertions(+), 40 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-django/0001-Fixed-35980-Updated-setuptools-to-normalize-package.patch create mode 100644 meta-python/recipes-devtools/python/python3-django_5.2.7.bb delete mode 100644 meta-python/recipes-devtools/python/python3-django_5.2.bb
meta-python/recipes-devtools/python/python3-django/0001-Fixed-35980-Updated-setuptools-to-normalize-package.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From 3ae049b26b995c650c41ef918d5f60beed52b4ba Mon Sep 17 00:00:00 2001 -From: Nick Pope <[email protected]> -Date: Fri, 6 Dec 2024 18:32:39 +0000 -Subject: [PATCH] Fixed #35980 -- Updated setuptools to normalize package names - in built artifacts. - -Upstream-Status: Backport [https://github.com/django/django/commit/3ae049b26b995c650c41ef918d5f60beed52b4ba] - -Signed-off-by: Mingli Yu <[email protected]> ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index f10d15d20d..b9e82334cd 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -1,5 +1,5 @@ - [build-system] --requires = ["setuptools>=61.0.0,<69.3.0"] -+requires = ["setuptools>=75.8.1"] - build-backend = "setuptools.build_meta" - - [project] --- -2.34.1 -
meta-python/recipes-devtools/python/python3-django_5.2.7.bb new file +9 -0
@@ -0,0 +1,9 @@ +require python3-django.inc +inherit python_setuptools_build_meta + +SRC_URI[sha256sum] = "e0f6f12e2551b1716a95a63a1366ca91bbcd7be059862c1b18f989b1da356cdd" + +RDEPENDS:${PN} += "\ + python3-sqlparse \ + python3-asgiref \ +"
meta-python/recipes-devtools/python/python3-django_5.2.bb deleted +0 -13
@@ -1,13 +0,0 @@ -require python3-django.inc -inherit python_setuptools_build_meta - -SRC_URI[sha256sum] = "1a47f7a7a3d43ce64570d350e008d2949abe8c7e21737b351b6a1611277c6d89" - -SRC_URI += "\ - file://0001-Fixed-35980-Updated-setuptools-to-normalize-package.patch \ -" - -RDEPENDS:${PN} += "\ - python3-sqlparse \ - python3-asgiref \ -"
Ooops, I just noticed that django update was sent by someone else too just a few hours ago. Feel free to ignore mine.
Quoted 56 lines · Gyorgy Sarvari
The pypi package was renamed from Django to django, so the custom name is not required anymore.
This upgrade contains fix for CVE-2025-32873, CVE-2025-48432 and CVE-2025-59682.
Changelog:
https://github.com/django/django/blob/main/docs/releases/4.2.21.txt
https://github.com/django/django/blob/main/docs/releases/4.2.22.txt
https://github.com/django/django/blob/main/docs/releases/4.2.23.txt
https://github.com/django/django/blob/main/docs/releases/4.2.24.txt
https://github.com/django/django/blob/main/docs/releases/4.2.25.txtSigned-off-by Gyorgy Sarvari <[email protected]>--- meta-python/recipes-devtools/python/python3-django.inc | 3 --- .../{python3-django_4.2.20.bb => python3-django_4.2.25.bb} | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) rename meta-python/recipes-devtools/python/{python3-django_4.2.20.bb => python3-django_4.2.25.bb} (64%)meta-python/recipes-devtools/python/python3-django.inc +0
-3@@ -3,9 +3,6 @@ HOMEPAGE = "https://www.djangoproject.com/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa" -PYPI_PACKAGE = "Django" -UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" - inherit pypi FILES:${PN} += "${datadir}/django"meta-python/recipes-devtools/python/python3-django_4.2.25.bb renamed from meta-python/recipes-devtools/python/python3-django_4.2.20.bb +2
-2@@ -1,7 +1,7 @@ require python3-django.inc inherit python_setuptools_build_meta -SRC_URI[sha256sum] = "92bac5b4432a64532abb73b2ac27203f485e40225d2640a7fbef2b62b876e789" +SRC_URI[sha256sum] = "2391ab3d78191caaae2c963c19fd70b99e9751008da22a0adcc667c5a4f8d311" RDEPENDS:${PN} += "\ python3-sqlparse \@@ -10,5 +10,5 @@ RDEPENDS:${PN} += "\ # Set DEFAULT_PREFERENCE so that the LTS version of django is built by # default. To build the 4.x branch, -# PREFERRED_VERSION_python3-django = "4.2.20" can be added to local.conf +# PREFERRED_VERSION_python3-django = "4.2.25" can be added to local.conf DEFAULT_PREFERENCE = "-1"