* [PATCH] python3: dont disable readline module for editline
@ 2024-02-27 21:56 Nick Owens
2024-03-29 14:39 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Nick Owens @ 2024-02-27 21:56 UTC (permalink / raw)
To: openembedded-core; +Cc: Nick Owens
if we use editline, then the readline module must also be enabled for
python to build the readline module and link it against libedit.
Signed-off-by: Nick Owens <nick.owens@eero.com>
---
meta/recipes-devtools/python/python3_3.12.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/python/python3_3.12.1.bb b/meta/recipes-devtools/python/python3_3.12.1.bb
index 771902cd2c..b4916d8cef 100644
--- a/meta/recipes-devtools/python/python3_3.12.1.bb
+++ b/meta/recipes-devtools/python/python3_3.12.1.bb
@@ -113,7 +113,7 @@ do_configure:prepend () {
cat > ${B}/Modules/Setup.local << EOF
*disabled*
${@bb.utils.contains('PACKAGECONFIG', 'gdbm', '', '_gdbm _dbm', d)}
-${@bb.utils.contains('PACKAGECONFIG', 'readline', '', 'readline', d)}
+${@bb.utils.contains_any('PACKAGECONFIG', 'readline editline', '', 'readline', d)}
${@bb.utils.contains('PACKAGECONFIG', 'tk', '', '_tkinter', d)}
EOF
}
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] python3: dont disable readline module for editline
2024-02-27 21:56 [PATCH] python3: dont disable readline module for editline Nick Owens
@ 2024-03-29 14:39 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2024-03-29 14:39 UTC (permalink / raw)
To: openembedded-core
unfortunately this change regresses ptests on musl based systems. Similar to https://github.com/python/cpython/issues/87338
but that issue is fixed so enabling both must be triggering it again in some way.
======================================================================
FAIL: test_write_read_append (test.test_readline.TestHistoryManipulation.test_write_read_append)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.12/test/test_readline.py", line 96, in test_write_read_append
self.assertEqual(readline.get_current_history_length(), 3)
AssertionError: 4 != 3
----------------------------------------------------------------------
Ran 9 tests in 0.178s
FAILED (failures=1, skipped=1)
test test_readline failed
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-29 14:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 21:56 [PATCH] python3: dont disable readline module for editline Nick Owens
2024-03-29 14:39 ` Khem Raj
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.