All of lore.kernel.org
 help / color / mirror / Atom feed
* Incomplete runtime dependencies for gdb python PACKAGECONFIG
@ 2015-06-20  3:00 Andre McCurdy
  2015-06-20 15:11 ` Andreas Oberritter
  0 siblings, 1 reply; 3+ messages in thread
From: Andre McCurdy @ 2015-06-20  3:00 UTC (permalink / raw)
  To: OE Core mailing list

The runtime dependencies for gdb seem to be incomplete when python
support is enabled via gdb's PACKAGECONFIG.

gdb ends up with a runtime dependency on libpython, but not on python
or any python modules, and gdb then fails to run:

  root@7401:~# gdb
  Could not find platform independent libraries <prefix>
  Could not find platform dependent libraries <exec_prefix>
  Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
  ImportError: No module named site

Manually installing python and all python modules seems to be a fix,
but I haven't narrowed down which specific python modules are
required.

The issue is a little more serious for anyone using meta-qt5, since
meta-qt5 (fido and later) contains a .bbappend for gdb which enables
the python PACKAGECONFIG by default:

  https://github.com/meta-qt5/meta-qt5/commit/9d17546d56b5e710a6420b482514202236f410e3


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

* Re: Incomplete runtime dependencies for gdb python PACKAGECONFIG
  2015-06-20  3:00 Incomplete runtime dependencies for gdb python PACKAGECONFIG Andre McCurdy
@ 2015-06-20 15:11 ` Andreas Oberritter
  2015-06-23  5:01   ` Andre McCurdy
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Oberritter @ 2015-06-20 15:11 UTC (permalink / raw)
  To: openembedded-core

Hello Andre,

On 20.06.2015 05:00, Andre McCurdy wrote:
> The runtime dependencies for gdb seem to be incomplete when python
> support is enabled via gdb's PACKAGECONFIG.
> 
> gdb ends up with a runtime dependency on libpython, but not on python
> or any python modules, and gdb then fails to run:
> 
>   root@7401:~# gdb

just curious, is this a BCM7401?

>   Could not find platform independent libraries <prefix>
>   Could not find platform dependent libraries <exec_prefix>
>   Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>   ImportError: No module named site
> 
> Manually installing python and all python modules seems to be a fix,
> but I haven't narrowed down which specific python modules are
> required.
> 
> The issue is a little more serious for anyone using meta-qt5, since
> meta-qt5 (fido and later) contains a .bbappend for gdb which enables
> the python PACKAGECONFIG by default:
> 
>   https://github.com/meta-qt5/meta-qt5/commit/9d17546d56b5e710a6420b482514202236f410e3
> 

Here's a patch for fido that I was going to submit after testing
with master, whenever that may be.

http://git.openembedded.org/openembedded-core-contrib/commit/?h=obi/fido&id=5461b4a6db9b9429132952ce31d293550c945179

Feel free to adapt, test and submit.

Regards,
Andreas


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

* Re: Incomplete runtime dependencies for gdb python PACKAGECONFIG
  2015-06-20 15:11 ` Andreas Oberritter
@ 2015-06-23  5:01   ` Andre McCurdy
  0 siblings, 0 replies; 3+ messages in thread
From: Andre McCurdy @ 2015-06-23  5:01 UTC (permalink / raw)
  To: Andreas Oberritter; +Cc: OE Core mailing list

Hi Andreas,

On Sat, Jun 20, 2015 at 8:11 AM, Andreas Oberritter
<obi@opendreambox.org> wrote:
> Hello Andre,
>
> On 20.06.2015 05:00, Andre McCurdy wrote:
>> The runtime dependencies for gdb seem to be incomplete when python
>> support is enabled via gdb's PACKAGECONFIG.
>>
>> gdb ends up with a runtime dependency on libpython, but not on python
>> or any python modules, and gdb then fails to run:
>>
>>   root@7401:~# gdb
>
> just curious, is this a BCM7401?

No, just a coincidence. 7401 is the code name for the box. CPU is
Intel's CE4200.

>>   Could not find platform independent libraries <prefix>
>>   Could not find platform dependent libraries <exec_prefix>
>>   Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>>   ImportError: No module named site
>>
>> Manually installing python and all python modules seems to be a fix,
>> but I haven't narrowed down which specific python modules are
>> required.
>>
>> The issue is a little more serious for anyone using meta-qt5, since
>> meta-qt5 (fido and later) contains a .bbappend for gdb which enables
>> the python PACKAGECONFIG by default:
>>
>>   https://github.com/meta-qt5/meta-qt5/commit/9d17546d56b5e710a6420b482514202236f410e3
>>
>
> Here's a patch for fido that I was going to submit after testing
> with master, whenever that may be.
>
> http://git.openembedded.org/openembedded-core-contrib/commit/?h=obi/fido&id=5461b4a6db9b9429132952ce31d293550c945179
>
> Feel free to adapt, test and submit.

Yes, that fixes the issue - tested with both fido and master. Thanks!

I'll submit your patch for both branches. Hopefully it can be included
in the next fido update.

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


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

end of thread, other threads:[~2015-06-23  5:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-20  3:00 Incomplete runtime dependencies for gdb python PACKAGECONFIG Andre McCurdy
2015-06-20 15:11 ` Andreas Oberritter
2015-06-23  5:01   ` Andre McCurdy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.