<p dir="ltr">On 29 Jun 2016 9:44 a.m., &quot;Randle, William C&quot; &lt;<a href="mailto:william.c.randle@intel.com">william.c.randle@intel.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Wed, 2016-06-29 at 07:33 +0100, Richard Purdie wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Wed, 2016-06-29 at 11:12 +0800, Li Zhou wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; When python3 rebased its multilib patch, the hard coded &quot;lib&quot; path<br>
&gt;&gt;&gt; isn&#39;t really changed because of the rebasing&#39;s error, and cause<br>
&gt;&gt;&gt; phthon3&#39;s failure when running on 64bit platforms as below:<br>
&gt;&gt;&gt; Could not find platform independent libraries &lt;prefix&gt;<br>
&gt;&gt;&gt; Could not find platform dependent libraries &lt;exec_prefix&gt;<br>
&gt;&gt;&gt; Consider setting $PYTHONHOME to &lt;prefix&gt;[:&lt;exec_prefix&gt;]<br>
&gt;&gt;&gt; Fatal Python error: Py_Initialize: Unable to get the locale encoding<br>
&gt;&gt;&gt; ImportError: No module named &#39;encodings&#39;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Here correct the rebasing error and solve this issue.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Signed-off-by: Li Zhou &lt;<a href="mailto:li.zhou@windriver.com">li.zhou@windriver.com</a>&gt;<br>
&gt;&gt;&gt; ---<br>
&gt;&gt;&gt;  ...ython3-correct-the-multilib-support-patch.patch | 47<br>
&gt;&gt;&gt; ++++++++++++++++++++++<br>
&gt;&gt;&gt;  meta/recipes-devtools/python/<a href="http://python3_3.5.1.bb">python3_3.5.1.bb</a>      |  1 +<br>
&gt;&gt;&gt;  2 files changed, 48 insertions(+)<br>
&gt;&gt;&gt;  create mode 100644 meta/recipes-devtools/python/python3/0001-python3<br>
&gt;&gt;&gt; -correct-the-multilib-support-patch.patch<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Don&#39;t we want to correct the &quot;bad&quot; patch rather than adding an<br>
&gt;&gt; additional patch? Or did I misunderstand the problem?<br>
&gt;&gt;<br>
&gt;&gt; Also, are there some automated tests we should be adding to catch this<br>
&gt;&gt; kind of problem? I&#39;m a little worried none of our testing caught this.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt; Richard<br>
&gt;<br>
&gt;<br>
&gt; I would agree that since the original patch has not been accepted upstream,  it would make the most sense to just regenerate it.<br>
&gt;<br>
&gt; In addition, there are a couple of other places in getpath.c that have a hard coded &quot;lib/&quot;. Have you verified those are correct as is? (I.e., ~line 706 &#39;L:lib/pyhton00.zip&quot;&#39; and ~line 718 &#39;L&quot;lib/lib-dynload&quot;&#39;. Seems like the second case should use code similar other palces lib-dynload is used in the file that uses lib_python to build the path.)<br>
&gt;<br>
&gt;     -Bill</p>
<p dir="ltr">Fedora and others have similar patches. Have people checked them out?</p>
<p dir="ltr">&gt;<br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
&gt;<br>
</p>