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: 3 additions & 0 deletions meta-refkit/conf/distro/refkit.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ PACKAGECONFIG_remove_pn-gstreamer1.0-plugins-base = "pango"

PACKAGECONFIG_remove_pn-pulseaudio = "avahi"

# leave out readline, gdbm, and db
PACKAGECONFIG_pn-python3 = ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?= is preferred.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right.


# since we have OpenCL support, turn it on
PACKAGECONFIG_append_pn-opencv = " opencl"
PREFERRED_PROVIDER_virtual/opencl-headers = "opencl-headers"
Expand Down
13 changes: 13 additions & 0 deletions meta-refkit/recipes-devtools/python/python3_%.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 python3-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)}"