[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] [PATCH] python3: correct the multilib support patch
From:       Dan McGregor <danismostlikely () gmail ! com>
Date:       2016-06-29 22:47:05
Message-ID: CACS+7ZTjDFw--YRTNae6pEbPaqTbysD021zY2LDD9sqqCOvf8A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 29 Jun 2016 9:44 a.m., "Randle, William C" <william.c.randle@intel.com>
wrote:
>
> On Wed, 2016-06-29 at 07:33 +0100, Richard Purdie wrote:
>>
>> On Wed, 2016-06-29 at 11:12 +0800, Li Zhou wrote:
>>>
>>> When python3 rebased its multilib patch, the hard coded "lib" 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 <prefix>
>>> Could not find platform dependent libraries <exec_prefix>
>>> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>>> 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 <li.zhou@windriver.com>
>>> ---
>>>  ...ython3-correct-the-multilib-support-patch.patch | 47
>>> ++++++++++++++++++++++
>>>  meta/recipes-devtools/python/python3_3.5.1.bb      |  1 +
>>>  2 files changed, 48 insertions(+)
>>>  create mode 100644 meta/recipes-devtools/python/python3/0001-python3
>>> -correct-the-multilib-support-patch.patch
>>
>>
>>
>> Don't we want to correct the "bad" 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
>
>
> I would agree that since the original patch has not been accepted
upstream,  it would make the most sense to just regenerate it.
>
> In addition, there are a couple of other places in getpath.c that have a
hard coded "lib/". Have you verified those are correct as is? (I.e., ~line
706 'L:lib/pyhton00.zip"' and ~line 718 'L"lib/lib-dynload"'. 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.)
>
>     -Bill

Fedora and others have similar patches. Have people checked them out?

>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[Attachment #5 (text/html)]

<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>



-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic