aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb
diff options
context:
space:
mode:
authorSilcet <camorga1@gmail.com>2021-04-23 16:28:02 +0200
committerKhem Raj <raj.khem@gmail.com>2021-04-29 09:02:39 -0700
commit5194af1afd6b1e834af52e9b38d5ae6e19c637b0 (patch)
treecb7953a1533c7160ffef7b883901d1f24aa5d7d7 /meta-networking/recipes-connectivity/ufw/ufw_0.33.bb
parent6725a3d3b28ae94a55737e9d0955ff64d81d95c0 (diff)
downloadmeta-openembedded-5194af1afd6b1e834af52e9b38d5ae6e19c637b0.tar.gz
ufw: fix python shebang
[meta-openembedded ticket #327] -- https://github.com/openembedded/meta-openembedded/issues/327 The python version in the shebang at the begining of the ufw script should be the same one as the version the setup.py script was called with. The fix in patch "setup-only-make-one-reference-to-env.patch" depends on sys.executable returning "/usr/bin/env pythonX". However, it returns "/usr/bin/pythonX". Using sys.version_info we can get the major version of the python used to called the script and append that to the shebang line so it works as intended. Signed-off-by: Silcet <camorga1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/ufw/ufw_0.33.bb')
-rw-r--r--meta-networking/recipes-connectivity/ufw/ufw_0.33.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb b/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb
index 42fc262589..ee366aa665 100644
--- a/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb
+++ b/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb
@@ -16,6 +16,7 @@ SRC_URI = " \
file://0003-fix-typeerror-on-error.patch \
file://0004-lp1039729.patch \
file://0005-lp1191197.patch \
+ file://fix-dynamic-update-of-python-shebang.patch \
"
UPSTREAM_CHECK_URI = "https://launchpad.net/ufw"