]> code.ossystems Code Review - openembedded-core.git/commit
base.bbclass: Add python3-native to native paths for hg fetcher
authorKhem Raj <raj.khem@gmail.com>
Sat, 30 Nov 2019 08:07:05 +0000 (00:07 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2019 20:35:27 +0000 (20:35 +0000)
commit3adaaab787bd105cc0049d36c7b8caeaa9b633e5
treea2ddeeafaa1a131bc11fa5052223f677d9f12a4b
parent1fdf8a651422bbc9fb0ee29bbebc90d8a0075ede
base.bbclass: Add python3-native to native paths for hg fetcher

This helps fix an issue where python interpreter in hg script could
overflow the BINPRM_BUF_SIZE which is 128 on most of systems, because
interpreter is hardcoded and build paths can be deep.

This patch helps, because now the absolute python interp path in hg can
be replaced with '/usr/bin/env python3' and it will ensure that python3
from native install is used instead of the one on host.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass