summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-11-30 00:07:05 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-06 14:41:28 +0000
commit6a8f66ab23d144e9aaa5a754908c0b980b391c0f (patch)
tree66c04323d5115875dd56ac7645a95f182c20ecc2 /meta/classes
parent56086ba84d35c465482342955fedebb1e714d9f2 (diff)
downloadpoky-6a8f66ab23d144e9aaa5a754908c0b980b391c0f.tar.gz
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. (From OE-Core rev: 3adaaab787bd105cc0049d36c7b8caeaa9b633e5) 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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 1cea3a2213..3306b316bb 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -606,6 +606,7 @@ python () {
606 # Mercurial packages should DEPEND on mercurial-native 606 # Mercurial packages should DEPEND on mercurial-native
607 elif scheme == "hg": 607 elif scheme == "hg":
608 needsrcrev = True 608 needsrcrev = True
609 d.appendVar("EXTRANATIVEPATH", ' python3-native ')
609 d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot') 610 d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot')
610 611
611 # Perforce packages support SRCREV = "${AUTOREV}" 612 # Perforce packages support SRCREV = "${AUTOREV}"