diff mbox series

[meta-python,086/105] python3-send2trash: upgrade 2.1.0 -> 2.2.0

Message ID 20261116175359.342679-86-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,001/105] python3-absl: upgrade 2.1.0 -> 2.5.1 | expand

Commit Message

Khem Raj Nov. 16, 2026, 5:53 p.m. UTC
Drop tests/test_plat_mac.py from the ptest; it runs
send2trash/mac/__init__.py from the source tree, which isn't installed.

License-Update: Line endings only.

Changes:
- Security: fix path traversal on file restoration due to incorrect
  path when trashing (CVE-2026-55788, GHSA-fgv9-r74r-hqmx).
- Handle unavailable macOS version during backend selection.
- Resolve symlinked home directories when choosing the trash device.
- Improve legacy Windows error diagnostics; more Python 2 cleanup.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../send2trash/python3-send2trash_2.1.0.bb    | 14 --------------
 .../send2trash/python3-send2trash_2.2.0.bb    | 19 +++++++++++++++++++
 2 files changed, 19 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-extended/send2trash/python3-send2trash_2.1.0.bb
 create mode 100644 meta-python/recipes-extended/send2trash/python3-send2trash_2.2.0.bb
diff mbox series

Patch

diff --git a/meta-python/recipes-extended/send2trash/python3-send2trash_2.1.0.bb b/meta-python/recipes-extended/send2trash/python3-send2trash_2.1.0.bb
deleted file mode 100644
index f612e8137e..0000000000
--- a/meta-python/recipes-extended/send2trash/python3-send2trash_2.1.0.bb
+++ /dev/null
@@ -1,14 +0,0 @@ 
-SUMMARY = "Send file to trash natively under Mac OS X, Windows and Linux"
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=a02659c2d5f4cc626e4dcf6504b865eb"
-
-inherit pypi python_setuptools_build_meta ptest-python-pytest
-
-SRC_URI += "file://run-ptest"
-SRC_URI[sha256sum] = "1c72b39f09457db3c05ce1d19158c2cbef4c32b8bedd02c155e49282b7ea7459"
-
-
-RDEPENDS:${PN} += "\
-    python3-io \
-    python3-datetime \
-"
diff --git a/meta-python/recipes-extended/send2trash/python3-send2trash_2.2.0.bb b/meta-python/recipes-extended/send2trash/python3-send2trash_2.2.0.bb
new file mode 100644
index 0000000000..77ae719965
--- /dev/null
+++ b/meta-python/recipes-extended/send2trash/python3-send2trash_2.2.0.bb
@@ -0,0 +1,19 @@ 
+SUMMARY = "Send file to trash natively under Mac OS X, Windows and Linux"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=05faa35ba1ca10b723f19d286c9d5237"
+
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+SRC_URI += "file://run-ptest"
+SRC_URI[sha256sum] = "e0ac412073f7984288908d9d8b8d13c82be69a615bb513d948fa2f053447970a"
+
+# the macOS backend selection tests run send2trash/mac/__init__.py from the
+# source tree, which isn't installed
+do_install_ptest:append() {
+    rm -f ${D}${PTEST_PATH}/tests/test_plat_mac.py
+}
+
+RDEPENDS:${PN} += "\
+    python3-io \
+    python3-datetime \
+"