From 476b723696dc08de246bba060316f282a7726520 Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Tue, 10 Feb 2026 20:19:23 +0100 Subject: python3-django: upgrade 6.0.1 -> 6.0.2 Some new tests expect the PWD to be writable, however this is not the case when running the tests in $PTEST_PATH with a non-root user. This patch makes it writable. Ptests passed, however there is a flaky test. Upstream has a bug[1] about it: Ran 18651 tests in 144.573s OK (skipped=1396, expected failures=5) Changes: Contains fixes for CVE-2025-13473, CVE-2025-14550, CVE-2026-1207, CVE-2026-1285, CVE-2026-2187 and CVE-2026-1312 [1]: https://code.djangoproject.com/ticket/36770 Signed-off-by: Gyorgy Sarvari Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-django.inc | 4 ++++ meta-python/recipes-devtools/python/python3-django_6.0.1.bb | 9 --------- meta-python/recipes-devtools/python/python3-django_6.0.2.bb | 9 +++++++++ 3 files changed, 13 insertions(+), 9 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-django_6.0.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-django_6.0.2.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-django.inc b/meta-python/recipes-devtools/python/python3-django.inc index 589f6a5b85..4191d4384f 100644 --- a/meta-python/recipes-devtools/python/python3-django.inc +++ b/meta-python/recipes-devtools/python/python3-django.inc @@ -43,6 +43,10 @@ do_install_ptest(){ cp -r ${S}/tests ${D}${PTEST_PATH} sed -i 's,/usr/bin/env python,/usr/bin/env python3,' ${D}${PTEST_PATH}/tests/runtests.py ln -sr ${D}${libdir}/python3.*/site-packages/django ${D}${PTEST_PATH}/django + + # make the top folder writable for all - django 6 creates a test db file in there + # with a test user + chmod 777 ${D}${PTEST_PATH}/tests } RDEPENDS:${PN}-ptest += " \ diff --git a/meta-python/recipes-devtools/python/python3-django_6.0.1.bb b/meta-python/recipes-devtools/python/python3-django_6.0.1.bb deleted file mode 100644 index 9642a3c581..0000000000 --- a/meta-python/recipes-devtools/python/python3-django_6.0.1.bb +++ /dev/null @@ -1,9 +0,0 @@ -require python3-django.inc -inherit python_setuptools_build_meta - -SRC_URI[sha256sum] = "ed76a7af4da21551573b3d9dfc1f53e20dd2e6c7d70a3adc93eedb6338130a5f" - -# Set DEFAULT_PREFERENCE so that the LTS version of django is built by -# default. To build the 6.x branch, -# PREFERRED_VERSION_python3-django = "6.0.%" can be added to local.conf -DEFAULT_PREFERENCE = "-1" diff --git a/meta-python/recipes-devtools/python/python3-django_6.0.2.bb b/meta-python/recipes-devtools/python/python3-django_6.0.2.bb new file mode 100644 index 0000000000..001abf48e8 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-django_6.0.2.bb @@ -0,0 +1,9 @@ +require python3-django.inc +inherit python_setuptools_build_meta + +SRC_URI[sha256sum] = "3046a53b0e40d4b676c3b774c73411d7184ae2745fe8ce5e45c0f33d3ddb71a7" + +# Set DEFAULT_PREFERENCE so that the LTS version of django is built by +# default. To build the 6.x branch, +# PREFERRED_VERSION_python3-django = "6.0.%" can be added to local.conf +DEFAULT_PREFERENCE = "-1" -- cgit v1.2.3-54-g00ecf