deleted file mode 100644
@@ -1,44 +0,0 @@
-From 3d1f9f8043e239d6313d9b9c02a9d6ead6c32302 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Thu, 20 Aug 2026 00:14:29 +0200
-Subject: [PATCH] main: initialize banner for the default Python shell
-
-interact() only assigns the local variable "banner" in the branches that
-handle the ipython, ptipython, ptpython and bpython shells. The plain
-Python shell leaves it unbound, so the unconditional
-
- banner += "\n"
-
-in the "if mybanner is not None:" block raises
-
- UnboundLocalError: cannot access local variable 'banner' where it is
- not associated with a value
-
-This is easy to hit: requesting an interpreter that is not installed
-(e.g. conf.interactive_shell = "ipython" without IPython) falls back to
-conf.interactive_shell = "python", and any caller passing mybanner then
-crashes instead of getting a shell. The mybanneronly path happens to be
-safe only because it assigns banner = "" first.
-
-Initialize banner from banner_text before the shell-specific chain so it
-is always bound.
-
-Upstream-Status: Pending
-
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- scapy/main.py | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/scapy/main.py b/scapy/main.py
-index 990f27f..924e6dc 100644
---- a/scapy/main.py
-+++ b/scapy/main.py
-@@ -828,6 +828,7 @@ def interact(mydict=None,
- # repl.use_ui_colorscheme("scapy")
-
- # Extend banner text
-+ banner = banner_text
- if conf.interactive_shell in ["ipython", "ptipython"]:
- import IPython
- if conf.interactive_shell == "ptipython":
similarity index 94%
rename from meta-networking/recipes-devtools/python/python3-scapy_2.7.0.bb
rename to meta-networking/recipes-devtools/python/python3-scapy_2.8.0.bb
@@ -16,16 +16,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
# If you want ptest support, use the git repo
# UTscapy does not exist in the pypi pkg
#
-SRCREV = "40fc5ecf9e69e9bd76664d63ae133d4973fcf81b"
+SRCREV = "e2e35c07bce2f40e7513e1b29a6d300d5329dbc3"
SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https;tag=v${PV} \
file://0001-python3-scapy-skip-ICMP-regression-tests-in-ptest.patch \
- file://0002-main-initialize-banner-for-the-default-Python-shell.patch \
file://0003-libpcap-load-libpcap-even-when-find_library-cannot-l.patch \
file://0004-test-don-t-depend-on-libc-formatting-of-IPv4-compati.patch \
file://0005-test-skip-live-whois-tests-in-ptest.patch \
file://run-ptest"
-UPSTREAM_CHECK_COMMITS = "1"
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
CVE_PRODUCT = "scapy"
A security-focused release after an audit by Trail of Bits and OpenAI ("Patch the Planet"); five issues are rated high: - arbitrary read of on-disk files while parsing TLS packets (GHSA-g94r-m85q-4mpj) - out-of-band read while receiving packets through libpcap (GHSA-c547-xwrv-q9jm) - malicious SMB directory entries overwriting local files during recursive downloads (GHSA-7vg7-7f47-97qf) - SMB server share case handling serving the default folder (GHSA-72w4-gq3w-rrpp) - zero-width NetFlow template looping NetflowSession forever (GHSA-f6x2-gmgm-25p8) Also Kerberos, SMB and DCE/RPC improvements, SAE J1939 and standalone UDS/KWP/OBD/GMLAN packets, RADIUS Message-Authenticator verification and many parser robustness fixes. 2.8 is the last series to support Python 3.7 and 3.8. Drop 0002-main-initialize-banner-for-the-default-Python-shell.patch, which is upstream. The recipe fetches release tags, so check for new tags instead of new commits. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...-banner-for-the-default-Python-shell.patch | 44 ------------------- ...-scapy_2.7.0.bb => python3-scapy_2.8.0.bb} | 5 +-- 2 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 meta-networking/recipes-devtools/python/python3-scapy/0002-main-initialize-banner-for-the-default-Python-shell.patch rename meta-networking/recipes-devtools/python/{python3-scapy_2.7.0.bb => python3-scapy_2.8.0.bb} (94%)