]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemtap: avoid RDEPENDS on python3-core when not using python3
authorYann Dirson <yann@blade-group.com>
Tue, 17 Nov 2020 09:54:48 +0000 (10:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Nov 2020 10:27:38 +0000 (10:27 +0000)
distutils3-base.bbclass unconditionally adds python3-core to RDEPENDS_${PN},
yuck.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/systemtap/systemtap_git.bb

index 8dad5b15f05e7858066fee2392ab8e46f9a91eff..923d64b975b92f6acba72df0c610536efd140043 100644 (file)
@@ -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"