systemtap: avoid RDEPENDS on python3-core when not using python3

Submitted by yann.dirson@blade-group.com on Nov. 17, 2020, 9:54 a.m. | Patch ID: 177984

Details

Message ID 20201117095448.1701563-1-yann@blade-group.com
State Accepted
Commit 323b9728b31f785d64722ab3b03fae8d687f7cf4
Headers show

Commit Message

yann.dirson@blade-group.com Nov. 17, 2020, 9:54 a.m.
From: Yann Dirson <yann@blade-group.com>


distutils3-base.bbclass unconditionally adds python3-core to RDEPENDS_${PN},
yuck.
---
 meta/recipes-kernel/systemtap/systemtap_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.29.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144691): https://lists.openembedded.org/g/openembedded-core/message/144691
Mute This Topic: https://lists.openembedded.org/mt/78313024/1003190
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb
index 8dad5b15f0..923d64b975 100644
--- a/meta/recipes-kernel/systemtap/systemtap_git.bb
+++ b/meta/recipes-kernel/systemtap/systemtap_git.bb
@@ -25,7 +25,8 @@  PACKAGECONFIG[sqlite] = "--enable-sqlite,--disable-sqlite,sqlite3"
 PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor,ncurses json-c"
 PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,python3-setuptools-native"
 
-inherit autotools gettext pkgconfig distutils3-base systemd
+inherit autotools gettext pkgconfig systemd
+inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3-probes', 'distutils3-base', '', d)}
 
 # exporter comes with python3-probes
 PACKAGES =+ "${PN}-exporter"