diff --git a/meta-refkit/conf/distro/refkit.conf b/meta-refkit/conf/distro/refkit.conf index b562acf84f..f1ac816ad2 100644 --- a/meta-refkit/conf/distro/refkit.conf +++ b/meta-refkit/conf/distro/refkit.conf @@ -75,7 +75,8 @@ BAD_RECOMMENDATIONS += "bluez5-client" PACKAGECONFIG_remove_pn-pulseaudio = "avahi" # leave out readline, gdbm, and db -PACKAGECONFIG_pn-python3 = "" +PACKAGECONFIG_pn-python3 ?= "" +PACKAGECONFIG_pn-python ?= "" # since we have OpenCL support, turn it on PACKAGECONFIG_append_pn-opencv = " opencl" diff --git a/meta-refkit/recipes-devtools/python/python_%.bbappend b/meta-refkit/recipes-devtools/python/python_%.bbappend new file mode 100644 index 0000000000..41eb32aada --- /dev/null +++ b/meta-refkit/recipes-devtools/python/python_%.bbappend @@ -0,0 +1,13 @@ +DEPENDS_remove = "readline gdbm db" + +PACKAGECONFIG ??= "readline gdbm db" +PACKAGECONFIG[readline] = ",,readline" +PACKAGECONFIG[gdbm] = ",,gdbm" +PACKAGECONFIG[db] = ",,db" + +RRECOMMENDS_${PN}-core = "${@bb.utils.contains('PACKAGECONFIG', 'readline', '${PN}-readline', '', d)}" + +# if readline is not there, don't create python-readline package +PACKAGES_remove += "${@bb.utils.contains('PACKAGECONFIG', 'readline', '', '${PN}-readline', d)}" +PROVIDES_remove += "${@bb.utils.contains('PACKAGECONFIG', 'readline', '', '${PN}-readline', d)}" +RDEPENDS_${PN}-modules_remove += "${@bb.utils.contains('PACKAGECONFIG', 'readline', '', '${PN}-readline', d)}"