From patchwork Thu Dec 3 11:13:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Tyagi X-Patchwork-Id: 107153 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11849.1796296632583615813 for ; Thu, 03 Dec 2026 03:17:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=j8srwy+y; spf=pass (domain: gmail.com, ip: 209.85.214.172, mailfrom: ankur.tyagi85@gmail.com) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2f04fab527eso107121865ad.0 for ; Thu, 03 Dec 2026 03:17:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796296632; x=1796901432; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mmIX3zTiyM90k9SjiEQxK5EmywrvOOD5SfrSvFvaI7k=; b=j8srwy+y14lRDZHoa+Hl0E9xL++1B90vCuHufYXbMF1SaQ2k9NJ6n0ZSh7z3MzKWmj pSWHt+5VNckiM0BriQYY8c76UWIm1xZOzFYyev50qrpgbNc42Ns0u1ljyMwtbUw339fH Jq68uVG3qa3a7iO9CT4dPhVqu1a6BpBck72scCmnZ/tDFKsCOmbffYMN9/XB/aLxr3eH aKzYE6nc/3MbJ8zFZb2KvzNSMKLqvgYLGd2YHtTuGzu9LcX6cRCDM5/F9KVmWRnmNyl1 RKi5+hR/TFq1SAoRSymnWtIRhZo/2AQ3mhlouya8Sx56THq0a0aYhvexlB5wqosCzQGp O+aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796296632; x=1796901432; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=mmIX3zTiyM90k9SjiEQxK5EmywrvOOD5SfrSvFvaI7k=; b=dj2SzIoaJhqBcbuU46FGagMDLNq2RL6kCEdyKwqKCe3Oc+UK8m37nyRtf2qAFwSDNY 7n0h6wX6aB9rq0RzCFuiyZVK1G+z9ZCPdajA2v9CQXh5vAK4NuZQ57CeAeGcghmeLPLJ yhHxP4Ue/+xfpszsR3tlzw7lTIMjSl6KHE7Pbh1qudXK35YV71LqSN0XqfJai/Bwnanz 5B7OgiW/XP37j2EZFjGKW7GphXKs94YGdFKZViynT7BBlNgDgUJVKElZaGD6jmwZKrYL o9fL0Xysr+SHJflmRYss5NDN4HWg51HsymhgLCrgW/O+V/Yg5Dnw+ZrY8g33ZCPfzIjj v14w== X-Gm-Message-State: APuU4Z+uEaImu4Q0KatHuhQpNxhe41Hrw3DYKESQY0DMuSLLBdX+h3gL B/YIufGq6aPi2Y0UBpX+jsxtW0a0vwkJP+LPTQuh3EIlRdu6BU20YJf0bYcZVR60 X-Gm-Gg: AZFdTZfCTBcFj/so22ncdTtS0Vos0Bq2UkC4sb7OUZCRDZFTusfZyYO+nDCmwcqJZ7d +vHFO6VmJiKze38PfH9rbwEwMJ8y5vEMV4I2V0oXl0UwCd/80gS5K2rOt6TMH84hyi5MPQO/CG8 GsMX+fjrUMkCH98z8wq/7NJS8pGaFEJqb82YvjuJNlvEa7wWc+XpQeqNneWU4+gF6XiBaboVk1r XbM/BVopTm1FyeBmFoQ5HZu3JlyVpI5XZU+pgmk3QmlmsmUwHZGY2Pozgit9UlOTScxl71img4p dO4HG7mhtkZzfp16uuBJ9xKN/VpozjbNxnn6VK9uBcAIp4dCf8ivaUt2YXgPOUD9xViSsJvnOdr DgQEeFB8ExzOFZ26NoSdfwqZFr1cZoC9krg7upSXhXR+wYb8GQiBG+F03/chtmcy3zgrxuzTDnu yAagg1PCswYjgLnuvUVJ8TKl4nTC+efwBGHByZP7U8z9m2fsdjWgwTKrywUwuefVJhg10Kws3KL vDrnbPieKo33xdDHMntg3xgBz0o7C16yPWxJWfAibqHKTcEBhJdiV0OA2c1LaqebmGfr9JDTJXb fv8JZ2FBbA/K/kuEIcAhidSoKsWz0DMSbX/N9OQ3PLJlq9lkV74T/ySnDhtaMX1kWCJmB/96un8 n9s4djnfiq667z0x/K/6Aqw== X-Received: by 2002:a17:90b:3d4d:b0:3ac:95d7:2fa5 with SMTP id 98e67ed59e1d1-3b41c959e14mr43520528a91.44.1796296631568; Thu, 03 Dec 2026 03:17:11 -0800 (PST) Return-Path: Received: from NVAPF55DW0D-IPD.. ([147.161.219.8]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d65b94sm3890436a91.12.2026.12.03.03.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 03:17:11 -0800 (PST) From: ankur.tyagi85@gmail.com To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Ankur Tyagi Subject: [oe][meta-python][blacksail][PATCH 55/95] python3-send2trash: upgrade 2.1.0 -> 2.2.0 Date: Fri, 4 Dec 2026 00:13:26 +1300 Message-ID: <20261203111406.4182597-55-ankur.tyagi85@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261203111406.4182597-1-ankur.tyagi85@gmail.com> References: <20261203111406.4182597-1-ankur.tyagi85@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 03 Dec 2026 11:17:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133945 From: Khem Raj 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 (cherry picked from commit 8e0cfc7b50abb5103ad1ea1ef84cd636a7c0b677) Signed-off-by: Ankur Tyagi --- .../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 --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 \ +"