]> code.ossystems Code Review - openembedded-core.git/commit
python3: Fix python interpreter line length for nativesdk
authorMingli Yu <mingli.yu@windriver.com>
Mon, 22 Feb 2021 01:21:31 +0000 (09:21 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Mar 2021 00:24:18 +0000 (00:24 +0000)
commit57af8ed4d3f1645d9a648ae1e569c792d9bcb361
tree7b07e3fb068489aca60a89511b66235f40eaf511
parent4fd20fa9c49019b039c5e39d6ed5c9b67732ce15
python3: Fix python interpreter line length for nativesdk

Make sure the python interpreter is "#!/usr/bin/env python3" for
nativesdk to avoid the shebang path exceeding the limit when install
the sdk under the directory with long path.

Before:
 $ cd ${target_sdk_dir}
 $ vi ./sysroots/x86_64-oesdk-linux/usr/bin/2to3
 #!${target_sdk_dir}/sysroots/${SDK_SYS}/usr/bin/python3.9
 [snip]

After:
 $ cd ${target_sdk_dir}
 $ vi ./sysroots/x86_64-oesdk-linux/usr/bin/2to3
 #!/usr/bin/env python3
 [snip]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a748e6098fa7d2ff594319937c7e0cf97700e83a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-devtools/python/python3_3.8.5.bb