diff options
author | Silcet <camorga1@gmail.com> | 2021-04-23 16:28:02 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-04-29 09:02:39 -0700 |
commit | 5194af1afd6b1e834af52e9b38d5ae6e19c637b0 (patch) | |
tree | cb7953a1533c7160ffef7b883901d1f24aa5d7d7 /meta-python/recipes-devtools/python/python-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch | |
parent | 6725a3d3b28ae94a55737e9d0955ff64d81d95c0 (diff) | |
download | meta-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-python/recipes-devtools/python/python-m2crypto/0001-setup.py-link-in-sysroot-not-in-host-directories.patch')
0 files changed, 0 insertions, 0 deletions