Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion meta-refkit/conf/distro/refkit.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 13 additions & 0 deletions meta-refkit/recipes-devtools/python/python_%.bbappend
Original file line number Diff line number Diff line change
@@ -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)}"