<div>Using split() will break if the path contains a space if that is a concern.<br></div><div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 7, 2018 at 8:04 AM &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 2018-12-06 at 21:27 -0600, Joshua Watt wrote:<br>
&gt; On Thu, Dec 6, 2018 at 4:05 PM Richard Purdie<br>
&gt; &lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br>
&gt; &gt; On Thu, 2018-12-06 at 12:55 -0600, Joshua Watt wrote:<br>
&gt; &gt; &gt; It is occasionally useful to pass additional flags to fakeroot<br>
&gt; &gt; &gt; (pseudo)<br>
&gt; &gt; &gt; either for debugging or for behavioral system changes. Add a<br>
&gt; &gt; &gt; variable<br>
&gt; &gt; &gt; called &quot;FAKEROOTARGS&quot; that can be used for this purpose.<br>
&gt; &gt; <br>
&gt; &gt; Why wouldn&#39;t you just append to FAKEROOT/FAKEROOTCMD ?<br>
&gt; <br>
&gt; You can&#39;t currently add arguments to FAKEROOTCMD because it is passed<br>
&gt; as an array member to subprocess.Popen sort of like:<br>
&gt; <br>
&gt;  subprocess.Popen([d.getVar(&#39;FAKEROOTCMD&#39;), &#39;blah&#39;, &#39;blah&#39;, ...<br>
&gt; <br>
&gt; In order to pass arguments, it would probably have to have split into<br>
&gt; an array i.e. :<br>
&gt; <br>
&gt;  subprocess.Popen(d.getVar(&#39;FAKEROOTCMD&#39;).split() + [&#39;blah&#39;, &#39;blah&#39;,<br>
&gt; ...<br>
&gt; <br>
&gt; I wasn&#39;t sure if that was desirable or if it would break anything, so<br>
&gt; I went with the lower risk approach of adding a new variables. I can<br>
&gt; certainly make a change to modify the usage of FAKEROOTCMD as<br>
&gt; described above and simply append the flags to it if that is<br>
&gt; preferred.<br>
<br>
I&#39;d prefer to fix this to work than add more variables...<br>
<br>
Cheers,<br>
<br>
Richard<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" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/bitbake-devel</a><br>
</blockquote></div></div>