Skip to contentSkip to conversation

Building python3 without readline fails for Kirkstone

DISCUSSION Peter Kjellerstedt 4 participants 5 messages Mar 14, 2022

lore
Share & tools
lore
#0 lore raw

We have readline support disabled for python3 for target. It works fine for Hardknott and Honister, but fails for Kirkstone with the following error:

The necessary bits to build these optional modules were not found:
_curses _curses_panel

The problem can be recreated by adding the following to local.conf:

PACKAGECONFIG:remove:pn-python3:class-target = "readline"

and then building python3.

Any help to solve the problem would be appreciated.

//Peter

#1 lore raw
Quoted 7 lines · Peter Kjellerstedt

We have readline support disabled for python3 for target. It works fine for Hardknott and Honister, but fails for Kirkstone with the following error:

The necessary bits to build these optional modules were not found:
_curses _curses_panel

Quoted 7 lines

The problem can be recreated by adding the following to local.conf:

PACKAGECONFIG:remove:pn-python3:class-target = "readline"

and then building python3.

Any help to solve the problem would be appreciated.

I'd have thought that those modules being missing was probably expected if you disable readline?

Cheers,

Richard

#2 lore raw
Quoted 19 lines

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: den 14 mars 2022 14:45
To: Peter Kjellerstedt <[email protected]>; OE Core ([email protected]) <openembedded- [email protected]>
Subject: Re: [OE-core] Building python3 without readline fails for Kirkstone

Quoted 9 lines · Peter Kjellerstedt

We have readline support disabled for python3 for target. It works fine for Hardknott and Honister, but fails for Kirkstone with the following error:

The necessary bits to build these optional modules were not found:
_curses _curses_panel

The problem can be recreated by adding the following to local.conf:

Quoted 8 lines
Quoted 5 lines

PACKAGECONFIG:remove:pn-python3:class-target = "readline"

and then building python3.

Any help to solve the problem would be appreciated.

I'd have thought that those modules being missing was probably expected if you disable readline?

AFAICT, both curses and curses_panel are built for Hardknott and Honister even if readline is removed from PACKAGECONFIG.

Quoted 3 lines

Cheers,

Richard

//Peter

#3 lore raw
In reply to Peter Kjellerstedt
Quoted 5 lines · Peter Kjellerstedt

We have readline support disabled for python3 for target. It works fine for Hardknott and Honister, but fails for Kirkstone with the following error:

Quoted 8 lines

The necessary bits to build these optional modules were not found:
_curses _curses_panel

The problem can be recreated by adding the following to local.conf:

PACKAGECONFIG:remove:pn-python3:class-target = "readline"

and then building python3.

The sanity check code has support for modules which have been disabled
(see MODDISABLED_NAMES in meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch) but that variable doesn't appear to be connected to the PACKAGECONFIG
settings.

Adding AlexK to the CC list as he wrote this in the first place.

Ross

#4 lore raw
Quoted 7 lines · Ross Burton

The sanity check code has support for modules which have been disabled
(see MODDISABLED_NAMES in meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch) but that variable doesn't appear to be connected to the PACKAGECONFIG
settings.

Adding AlexK to the CC list as he wrote this in the first place.

python is configured with autotools, so perhaps comparing the logs with and without readline would be a good first step, specifically the bifurcation point where ncurses is disabled.

Alex