Skip to contentSkip to conversation

base.bbclass: Add python3-native to native paths for hg fetcher

PATCH New Khem Raj 1 participant 1 message Nov 30, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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.

Cc Christopher Larson <[email protected]>
---
 meta/classes/base.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/base.bbclass +1 -0
index ff3fbb28c3..31457f9f12 100644
@@ -601,6 +601,7 @@ python () {
         # Mercurial packages should DEPEND on mercurial-native
         elif scheme == "hg":
             needsrcrev = True
+            d.appendVar("EXTRANATIVEPATH", ' python3-native ')
             d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot')
 
         # Perforce packages support SRCREV = "${AUTOREV}"
Signature · 1 line
2.24.0