<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 28, 2019 at 1:20 PM Christopher Larson <<a href="mailto:kergoth@gmail.com">kergoth@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div name="messageBodySection">
<div dir="auto">EXTRANATIVEPATH is an oe-core-ism, not bitbake, so this isn’t an appropriate place for it. Perhaps in do_fetch in base.bbclass.</div></div></div></blockquote><div dir="auto"><br></div><div dir="auto">Perhaps a better idea thanks </div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div name="messageBodySection"><div dir="auto"></div>
</div>
<div name="messageReplySection"></div></div><div><div name="messageReplySection">On Nov 27, 2019, 9:10 PM -0700, Khem Raj <<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>>, wrote:<br>
<blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #1abc9c">This helps fix an issue where python interpreter in hg script could<br>
overflow the BINPRM_BUF_SIZE which is 128 on most of systems, because<br>
interpreter is hardcoded and build paths can be deep.<br>
<br>
This patch helps, because now the absolute python interp path in hg can<br>
be replaced with '/usr/bin/env python3' and it will ensure that python3<br>
from native install is used instead of the one on host.<br>
<br>
Signed-off-by: Khem Raj <<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>><br>
---<br>
lib/bb/fetch2/hg.py | 1 +<br>
1 file changed, 1 insertion(+)<br>
<br>
diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py<br>
index e21115de..a640a80c 100644<br>
--- a/lib/bb/fetch2/hg.py<br>
+++ b/lib/bb/fetch2/hg.py<br>
@@ -65,6 +65,7 @@ class Hg(FetchMethod):<br>
ud.pkgdir = os.path.join(hgdir, hgsrcname)<br>
ud.moddir = os.path.join(ud.pkgdir, ud.module)<br>
ud.localfile = ud.moddir<br>
+ d.appendVar("EXTRANATIVEPATH", " python3-native ")<br>
ud.basecmd = d.getVar("FETCHCMD_hg") or "/usr/bin/env hg"<br>
<br>
ud.setup_revisions(d)<br>
--<br>
2.24.0<br>
<br>
--<br>
_______________________________________________<br>
bitbake-devel mailing list<br>
<a href="mailto:bitbake-devel@lists.openembedded.org" target="_blank">bitbake-devel@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" target="_blank">http://lists.openembedded.org/mailman/listinfo/bitbake-devel</a><br></blockquote>
</div>
</div>
</blockquote></div></div>