summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2024-08-12 14:01:22 +0300
committerSteve Sakoman <steve@sakoman.com>2024-08-28 06:49:22 -0700
commit1c798dccd1a8735305d2f8a855496cfb40ba520c (patch)
treecf4c46bb7f6fb5c863004b838abcab867a1b218d /meta
parentda7126134444d4cfca8dd869828c9bb4ce4bfaa8 (diff)
downloadpoky-1c798dccd1a8735305d2f8a855496cfb40ba520c.tar.gz
python3: add PACKAGECONFIG[editline]
Backport PACKAGECONFIG[editline] from Scarthgap to Kirkstone because libedit has feature parity with readline but is more permissively licensed (BSD verses GPLv3). This patch provides means of enabling editline in a distribution without GPLv3 and in this case improves Python REPL keyboard support. (From OE-Core rev: 12dc7d2081a1aaec90ffb3ed6718d757ce14b5ab) Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python3_3.10.14.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3_3.10.14.bb b/meta/recipes-devtools/python/python3_3.10.14.bb
index 31c458c09a..b5bc80ab88 100644
--- a/meta/recipes-devtools/python/python3_3.10.14.bb
+++ b/meta/recipes-devtools/python/python3_3.10.14.bb
@@ -106,7 +106,8 @@ CACHED_CONFIGUREVARS = " \
106PACKAGECONFIG:class-target ??= "readline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}" 106PACKAGECONFIG:class-target ??= "readline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}"
107PACKAGECONFIG:class-native ??= "readline gdbm" 107PACKAGECONFIG:class-native ??= "readline gdbm"
108PACKAGECONFIG:class-nativesdk ??= "readline gdbm" 108PACKAGECONFIG:class-nativesdk ??= "readline gdbm"
109PACKAGECONFIG[readline] = ",,readline" 109PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline"
110PACKAGECONFIG[editline] = "--with-readline=editline,,libedit,,,readline"
110# Use profile guided optimisation by running PyBench inside qemu-user 111# Use profile guided optimisation by running PyBench inside qemu-user
111PACKAGECONFIG[pgo] = "--enable-optimizations,,qemu-native" 112PACKAGECONFIG[pgo] = "--enable-optimizations,,qemu-native"
112PACKAGECONFIG[tk] = ",,tk" 113PACKAGECONFIG[tk] = ",,tk"
@@ -118,7 +119,7 @@ do_configure:prepend () {
118 cat > ${B}/Modules/Setup.local << EOF 119 cat > ${B}/Modules/Setup.local << EOF
119*disabled* 120*disabled*
120${@bb.utils.contains('PACKAGECONFIG', 'gdbm', '', '_gdbm _dbm', d)} 121${@bb.utils.contains('PACKAGECONFIG', 'gdbm', '', '_gdbm _dbm', d)}
121${@bb.utils.contains('PACKAGECONFIG', 'readline', '', 'readline', d)} 122${@bb.utils.contains_any('PACKAGECONFIG', 'readline editline', '', 'readline', d)}
122EOF 123EOF
123} 124}
124 125