<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#f7f7f7" text="#2c2c2c" link="#4a90d9" vlink="#4a90d9">
<div>On Wed, 2016-06-29 at 07:33 &#43;0100, Richard Purdie wrote:</div>
<blockquote type="cite">
<pre>On Wed, 2016-06-29 at 11:12 &#43;0800, Li Zhou wrote:
<blockquote type="cite">
When python3 rebased its multilib patch, the hard coded &quot;lib&quot; path
isn't really changed because of the rebasing's error, and cause
phthon3's failure when running on 64bit platforms as below:
Could not find platform independent libraries &lt;prefix&gt;
Could not find platform dependent libraries &lt;exec_prefix&gt;
Consider setting $PYTHONHOME to &lt;prefix&gt;[:&lt;exec_prefix&gt;]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'

Here correct the rebasing error and solve this issue.

Signed-off-by: Li Zhou &lt;<a href="mailto:li.zhou@windriver.com">li.zhou@windriver.com</a>&gt;
---
 ...ython3-correct-the-multilib-support-patch.patch | 47
&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;
 meta/recipes-devtools/python/python3_3.5.1.bb      |  1 &#43;
 2 files changed, 48 insertions(&#43;)
 create mode 100644 meta/recipes-devtools/python/python3/0001-python3
-correct-the-multilib-support-patch.patch
</blockquote>


Don't we want to correct the &quot;bad&quot; patch rather than adding an
additional patch? Or did I misunderstand the problem?

Also, are there some automated tests we should be adding to catch this
kind of problem? I'm a little worried none of our testing caught this.

Cheers,

Richard
</pre>
</blockquote>
<div><br>
</div>
<div>I would agree that since the original patch has not been accepted upstream, &nbsp;it would make the most sense to just regenerate it.</div>
<div><br>
</div>
<div>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 'L:lib/pyhton00.zip&quot;' and ~line 718 'L&quot;lib/lib-dynload&quot;'. 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.)</div>
<div><br>
</div>
<div>&nbsp; &nbsp; -Bill</div>
</body>
</html>