summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-legacy-cgi/0001-cgi.py-fixup-interpreter-according-to-OE.patch28
-rw-r--r--meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.2.bb22
2 files changed, 50 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-legacy-cgi/0001-cgi.py-fixup-interpreter-according-to-OE.patch b/meta-python/recipes-devtools/python/python3-legacy-cgi/0001-cgi.py-fixup-interpreter-according-to-OE.patch
new file mode 100644
index 0000000000..0af8ef4842
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-legacy-cgi/0001-cgi.py-fixup-interpreter-according-to-OE.patch
@@ -0,0 +1,28 @@
1From eaa9964cd6d22564fa5f1270d194eb65ebaef57c Mon Sep 17 00:00:00 2001
2From: Your Name <you@example.com>
3Date: Wed, 12 Mar 2025 17:44:39 +0000
4Subject: [PATCH] cgi.py: fixup interpreter according to OE
5
6The underlying distribution is required to update the interpreter
7by design. This can be referenced from the notice that is found
8on top of the same file being patched here.
9
10Upstream-Status: Inappropriate [OE specific]
11Signed-off-by: Awais Belal <awais.belal@gmail.com>
12---
13 cgi.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/cgi.py b/cgi.py
17index 22897a1..f86db84 100755
18--- a/cgi.py
19+++ b/cgi.py
20@@ -1,4 +1,4 @@
21-#! /usr/local/bin/python
22+#!/usr/bin/env python
23
24 # NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is
25 # intentionally NOT "/usr/bin/env python". On many systems
26--
272.43.0
28
diff --git a/meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.2.bb b/meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.2.bb
new file mode 100644
index 0000000000..2b2840ae14
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.2.bb
@@ -0,0 +1,22 @@
1SUMMARY = "Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594"
2HOMEPAGE = "https://github.com/jackrosenthal/legacy-cgi"
3LICENSE = "PSF-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=4b8801e752a2c70ac41a5f9aa243f766"
5
6PYPI_PACKAGE = "legacy_cgi"
7
8inherit python_poetry_core pypi
9
10SRC_URI += "\
11 file://0001-cgi.py-fixup-interpreter-according-to-OE.patch \
12"
13
14DEPENDS += "\
15 ${PYTHON_PN}-setuptools-scm-native \
16"
17
18#RDEPENDS:${PN} = "python3-core"
19
20BBCLASSEXTEND = "native nativesdk"
21
22SRC_URI[sha256sum] = "9952471ceb304043b104c22d00b4f333cac27a6abe446d8a528fc437cf13c85f"