<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<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 name="messageReplySection">On Nov 27, 2019, 9:10 PM -0700, Khem Raj <raj.khem@gmail.com>, wrote:<br />
<blockquote type="cite" class="spark_quote" 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 <raj.khem@gmail.com><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 />
bitbake-devel@lists.openembedded.org<br />
http://lists.openembedded.org/mailman/listinfo/bitbake-devel<br /></blockquote>
</div>
</body>
</html>