diff options
| author | Awais Belal <awais.belal@gmail.com> | 2025-03-12 23:31:32 +0500 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-03-13 22:09:35 -0700 |
| commit | 77888be72ee477d5c80822108d346fd628cc7614 (patch) | |
| tree | f899c7b373607bf611ae671ccf8e1ec05e606741 /meta-python/recipes-devtools/python/python3-legacy-cgi | |
| parent | 32b4e9807954d6eb06d407a2b02df2bf1cf4c7cd (diff) | |
| download | meta-openembedded-77888be72ee477d5c80822108d346fd628cc7614.tar.gz | |
python3-legacy-cgi: introduce recipe
With the cgi module being dropped in python3.13 a stop
gap solution for modules relying on cgi is to use the
legacy-cgi module. Introduce the recipe so it could be
leveraged in the upcoming changes.
Signed-off-by: Awais Belal <awais.belal@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-legacy-cgi')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-legacy-cgi/0001-cgi.py-fixup-interpreter-according-to-OE.patch | 28 |
1 files changed, 28 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 @@ | |||
| 1 | From eaa9964cd6d22564fa5f1270d194eb65ebaef57c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Your Name <you@example.com> | ||
| 3 | Date: Wed, 12 Mar 2025 17:44:39 +0000 | ||
| 4 | Subject: [PATCH] cgi.py: fixup interpreter according to OE | ||
| 5 | |||
| 6 | The underlying distribution is required to update the interpreter | ||
| 7 | by design. This can be referenced from the notice that is found | ||
| 8 | on top of the same file being patched here. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [OE specific] | ||
| 11 | Signed-off-by: Awais Belal <awais.belal@gmail.com> | ||
| 12 | --- | ||
| 13 | cgi.py | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/cgi.py b/cgi.py | ||
| 17 | index 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 | -- | ||
| 27 | 2.43.0 | ||
| 28 | |||
