mirror of
https://git.yoctoproject.org/poky
synced 2026-11-26 06:38:05 +00:00
This backports the click.edit() hardening identified as the fix in the public advisory [2], using upstream commit [1]. Upstream follow-up commit [3] adds regression-test coverage for editor command parsing and clarifies the related source comments. It does not change runtime behavior or provide an additional security fix. Carry it as a separate patch to preserve the upstream commit boundaries. [1] https://github.com/pallets/click/commit/b96c2601af4e01341b4d2c0db494ebee4aef8f42 [2] https://github.com/tsigouris007/security-advisories/security/advisories/GHSA-47fr-3ffg-hgmw [3] https://github.com/pallets/click/commit/b55294797ef32e22eb41e7d9657edb8faefa4976 (From OE-Core rev: c9b000059a37241c5b97426f0aadc012b13bd20f) Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Paul Barker <paul@pbarker.dev>
46 lines
1.2 KiB
BlitzBasic
46 lines
1.2 KiB
BlitzBasic
SUMMARY = "A simple wrapper around optparse for powerful command line utilities."
|
|
DESCRIPTION = "\
|
|
Click is a Python package for creating beautiful command line interfaces \
|
|
in a composable way with as little code as necessary. It's the "Command \
|
|
Line Interface Creation Kit". It's highly configurable but comes with \
|
|
sensible defaults out of the box."
|
|
HOMEPAGE = "http://click.pocoo.org/"
|
|
LICENSE = "BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=1fa98232fd645608937a0fdc82e999b8"
|
|
|
|
SRC_URI[sha256sum] = "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"
|
|
|
|
inherit pypi setuptools3 ptest
|
|
|
|
SRC_URI += "file://run-ptest \
|
|
file://CVE-2026-7246.patch \
|
|
file://CVE-2026-7246-regression.patch \
|
|
"
|
|
|
|
CVE_PRODUCT = "palletsprojects:click"
|
|
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-pytest \
|
|
python3-terminal \
|
|
python3-unixadmin \
|
|
"
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/tests
|
|
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
|
cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/
|
|
cp -rf ${S}/docs ${D}${PTEST_PATH}/
|
|
}
|
|
|
|
UPSTREAM_CHECK_REGEX = "click/(?P<pver>\d+(\.\d+)+)/"
|
|
|
|
CLEANBROKEN = "1"
|
|
|
|
RDEPENDS:${PN} += "\
|
|
python3-io \
|
|
python3-threading \
|
|
python3-shell \
|
|
"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|