Openembedded Core Discussions
 help / color / mirror / Atom feed
* broken ncurses support for python
@ 2012-03-06 11:08 Sergey Lapin
  2012-03-06 13:06 ` Sergey Lapin
  0 siblings, 1 reply; 8+ messages in thread
From: Sergey Lapin @ 2012-03-06 11:08 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Christopher Larson

commit dd05e06b89906002f68d616a6326c962e725bc54
Author: Christopher Larson <chris_larson@mentor.com>
Date:   Tue Jan 10 13:51:18 2012 -0600

    ncurses-native: install to libdir, not base_libdir

breaks python ncurses support.

Any ideas on proper fixing? For myself I revert this locally and
everything works perfectly.
(I think .so files and .a archives should be in usr/lib while .so
can go to /lib which is not the case with current ncurses.)
so mv in do_install should be sufficient, not --libdir=${base_libdir}.

All the best,
S.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: broken ncurses support for python
  2012-03-06 11:08 broken ncurses support for python Sergey Lapin
@ 2012-03-06 13:06 ` Sergey Lapin
  2012-03-06 19:20   ` Scott Garman
  0 siblings, 1 reply; 8+ messages in thread
From: Sergey Lapin @ 2012-03-06 13:06 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer
  Cc: Christopher Larson, Scott Garman

On Tue, Mar 6, 2012 at 3:08 PM, Sergey Lapin <slapinid@gmail.com> wrote:
> commit dd05e06b89906002f68d616a6326c962e725bc54
> Author: Christopher Larson <chris_larson@mentor.com>
> Date:   Tue Jan 10 13:51:18 2012 -0600
>
>    ncurses-native: install to libdir, not base_libdir

I was wrong with this one, actual culprit is this one:

commit 796c3d038fb7892a5e5206fb10217623de18853f
Author: Scott Garman <scott.a.garman@intel.com>
Date:   Wed Jan 4 22:30:29 2012 -0800


>
> breaks python ncurses support.
>
> Any ideas on proper fixing? For myself I revert this locally and
> everything works perfectly.
> (I think .so files and .a archives should be in usr/lib while .so
> can go to /lib which is not the case with current ncurses.)
> so mv in do_install should be sufficient, not --libdir=${base_libdir}.
>
> All the best,
> S.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: broken ncurses support for python
  2012-03-06 13:06 ` Sergey Lapin
@ 2012-03-06 19:20   ` Scott Garman
  2012-03-06 22:33     ` Sergey Lapin
  0 siblings, 1 reply; 8+ messages in thread
From: Scott Garman @ 2012-03-06 19:20 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 03/06/2012 05:06 AM, Sergey Lapin wrote:
> On Tue, Mar 6, 2012 at 3:08 PM, Sergey Lapin<slapinid@gmail.com>  wrote:
>> commit dd05e06b89906002f68d616a6326c962e725bc54
>> Author: Christopher Larson<chris_larson@mentor.com>
>> Date:   Tue Jan 10 13:51:18 2012 -0600
>>
>>     ncurses-native: install to libdir, not base_libdir
>
> I was wrong with this one, actual culprit is this one:
>
> commit 796c3d038fb7892a5e5206fb10217623de18853f
> Author: Scott Garman<scott.a.garman@intel.com>
> Date:   Wed Jan 4 22:30:29 2012 -0800
>
>
>>
>> breaks python ncurses support.
>>
>> Any ideas on proper fixing? For myself I revert this locally and
>> everything works perfectly.
>> (I think .so files and .a archives should be in usr/lib while .so
>> can go to /lib which is not the case with current ncurses.)
>> so mv in do_install should be sufficient, not --libdir=${base_libdir}.

Could you be more specific about how python ncurses support is broken? I 
assume you're getting errors of unresolved symbols. If that's the case, 
you may need to rebuild the application so it links to ncurses from 
base_libdir.

Scott

-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: broken ncurses support for python
  2012-03-06 19:20   ` Scott Garman
@ 2012-03-06 22:33     ` Sergey Lapin
  2012-03-08 18:48       ` Scott Garman
  0 siblings, 1 reply; 8+ messages in thread
From: Sergey Lapin @ 2012-03-06 22:33 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, Mar 6, 2012 at 11:20 PM, Scott Garman <scott.a.garman@intel.com> wrote:
> On 03/06/2012 05:06 AM, Sergey Lapin wrote:
>>
>> On Tue, Mar 6, 2012 at 3:08 PM, Sergey Lapin<slapinid@gmail.com>  wrote:
>>>
>>> commit dd05e06b89906002f68d616a6326c962e725bc54
>>> Author: Christopher Larson<chris_larson@mentor.com>
>>> Date:   Tue Jan 10 13:51:18 2012 -0600
>>>
>>>    ncurses-native: install to libdir, not base_libdir
>>
>>
>> I was wrong with this one, actual culprit is this one:
>>
>> commit 796c3d038fb7892a5e5206fb10217623de18853f
>> Author: Scott Garman<scott.a.garman@intel.com>
>> Date:   Wed Jan 4 22:30:29 2012 -0800
>>
>>
>>>
>>> breaks python ncurses support.
>>>
>>> Any ideas on proper fixing? For myself I revert this locally and
>>> everything works perfectly.
>>> (I think .so files and .a archives should be in usr/lib while .so
>>> can go to /lib which is not the case with current ncurses.)
>>> so mv in do_install should be sufficient, not --libdir=${base_libdir}.
>
>
> Could you be more specific about how python ncurses support is broken? I
> assume you're getting errors of unresolved symbols. If that's the case, you
> may need to rebuild the application so it links to ncurses from base_libdir.
No, python fails to find the library.
And it is bad practice to put develeopment files in /lib anyway.
I think, putting .so.x.x intu lib was sufficient instead of setting
whole libdir to /lib.
Or development files might be moved to /usr/lib back (and .so symlink re-created
to address this).



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: broken ncurses support for python
  2012-03-06 22:33     ` Sergey Lapin
@ 2012-03-08 18:48       ` Scott Garman
  2012-03-10  4:57         ` Scott Garman
  0 siblings, 1 reply; 8+ messages in thread
From: Scott Garman @ 2012-03-08 18:48 UTC (permalink / raw)
  To: openembedded-core

On 03/06/2012 02:33 PM, Sergey Lapin wrote:
>>>> breaks python ncurses support.
>>>>
>>>> Any ideas on proper fixing? For myself I revert this locally and
>>>> everything works perfectly.
>>>> (I think .so files and .a archives should be in usr/lib while .so
>>>> can go to /lib which is not the case with current ncurses.)
>>>> so mv in do_install should be sufficient, not --libdir=${base_libdir}.
>>
>>
>> Could you be more specific about how python ncurses support is broken? I
>> assume you're getting errors of unresolved symbols. If that's the case, you
>> may need to rebuild the application so it links to ncurses from base_libdir.
> No, python fails to find the library.
> And it is bad practice to put develeopment files in /lib anyway.
> I think, putting .so.x.x intu lib was sufficient instead of setting
> whole libdir to /lib.
> Or development files might be moved to /usr/lib back (and .so symlink re-created
> to address this).

Thanks, I understand what you're saying now. I hope to look into this 
tomorrow and develop a fix; I've been away at a conference all week so far.

Scott

-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: broken ncurses support for python
  2012-03-08 18:48       ` Scott Garman
@ 2012-03-10  4:57         ` Scott Garman
  2012-03-10 11:06           ` Andreas Oberritter
  0 siblings, 1 reply; 8+ messages in thread
From: Scott Garman @ 2012-03-10  4:57 UTC (permalink / raw)
  To: openembedded-core

On 03/08/2012 10:48 AM, Scott Garman wrote:
> On 03/06/2012 02:33 PM, Sergey Lapin wrote:
>>>>> breaks python ncurses support.
>>>>>
>>>>> Any ideas on proper fixing? For myself I revert this locally and
>>>>> everything works perfectly.
>>>>> (I think .so files and .a archives should be in usr/lib while .so
>>>>> can go to /lib which is not the case with current ncurses.)
>>>>> so mv in do_install should be sufficient, not --libdir=${base_libdir}.
>>>
>>>
>>> Could you be more specific about how python ncurses support is broken? I
>>> assume you're getting errors of unresolved symbols. If that's the
>>> case, you
>>> may need to rebuild the application so it links to ncurses from
>>> base_libdir.
>> No, python fails to find the library.
>> And it is bad practice to put develeopment files in /lib anyway.
>> I think, putting .so.x.x intu lib was sufficient instead of setting
>> whole libdir to /lib.
>> Or development files might be moved to /usr/lib back (and .so symlink
>> re-created
>> to address this).
>
> Thanks, I understand what you're saying now. I hope to look into this
> tomorrow and develop a fix; I've been away at a conference all week so far.

Thanks again Sergey for troubleshooting this and suggesting a solution. 
I filed bug #2070 to track this and have created the following fix for it:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=sgarman/python-ncurses-fix&id=23c73da5f13b6c586353edb8143fa21058bf3a55

I'm going to queue up some build tests to run over the weekend and plan 
to submit this first thing on Monday should that go well.

Regards,

Scott

-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: broken ncurses support for python
  2012-03-10  4:57         ` Scott Garman
@ 2012-03-10 11:06           ` Andreas Oberritter
  2012-03-10 22:31             ` Scott Garman
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Oberritter @ 2012-03-10 11:06 UTC (permalink / raw)
  To: openembedded-core

Hello Scott,

On 10.03.2012 05:57, Scott Garman wrote:
> I filed bug #2070 to track this and have created the following fix for it:
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=sgarman/python-ncurses-fix&id=23c73da5f13b6c586353edb8143fa21058bf3a55

this will break if libdir equals base_libdir. A conditional is required
around mkdir and mv.

Regards,
Andreas



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: broken ncurses support for python
  2012-03-10 11:06           ` Andreas Oberritter
@ 2012-03-10 22:31             ` Scott Garman
  0 siblings, 0 replies; 8+ messages in thread
From: Scott Garman @ 2012-03-10 22:31 UTC (permalink / raw)
  To: openembedded-core

On 03/10/2012 03:06 AM, Andreas Oberritter wrote:
> Hello Scott,
>
> On 10.03.2012 05:57, Scott Garman wrote:
>> I filed bug #2070 to track this and have created the following fix for it:
>>
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=sgarman/python-ncurses-fix&id=23c73da5f13b6c586353edb8143fa21058bf3a55
>
> this will break if libdir equals base_libdir. A conditional is required
> around mkdir and mv.

Hi Andreas,

Good catch - my build testing uncovered this and I've made that and some 
other changes as well.

Thanks,

Scott

-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-10 22:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 11:08 broken ncurses support for python Sergey Lapin
2012-03-06 13:06 ` Sergey Lapin
2012-03-06 19:20   ` Scott Garman
2012-03-06 22:33     ` Sergey Lapin
2012-03-08 18:48       ` Scott Garman
2012-03-10  4:57         ` Scott Garman
2012-03-10 11:06           ` Andreas Oberritter
2012-03-10 22:31             ` Scott Garman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox