summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-06-08 13:57:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-12 15:08:30 +0100
commitcbe13b3b10100da325e393a57b6877f10f48c252 (patch)
tree3a4eeeca7d71ccfec3702f53b62e6cb75f49ef19 /meta
parentd2390c0646eb6c66ea2bbce69cea9d2c412bdd93 (diff)
downloadpoky-cbe13b3b10100da325e393a57b6877f10f48c252.tar.gz
opkg-utils: if Python support is disabled, delete the Python scripts
To make it obvious what is lost when python is disabled, actually delete the scripts so the user can't attempt to use them. (From OE-Core rev: 25c8d738b904c8755df203122067afa0047b27ad) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils_git.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 06710b596b..ed5980b858 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -19,6 +19,7 @@ S = "${WORKDIR}/git"
19 19
20TARGET_CC_ARCH += "${LDFLAGS}" 20TARGET_CC_ARCH += "${LDFLAGS}"
21 21
22# For native builds we use the host Python
22PYTHONRDEPS = "python3 python3-shell python3-io python3-math python3-crypt python3-logging python3-fcntl python3-subprocess python3-pickle python3-compression python3-textutils python3-stringold" 23PYTHONRDEPS = "python3 python3-shell python3-io python3-math python3-crypt python3-logging python3-fcntl python3-subprocess python3-pickle python3-compression python3-textutils python3-stringold"
23PYTHONRDEPS_class-native = "" 24PYTHONRDEPS_class-native = ""
24 25
@@ -31,6 +32,10 @@ do_install() {
31 if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then 32 if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then
32 rm -f "${D}${bindir}/update-alternatives" 33 rm -f "${D}${bindir}/update-alternatives"
33 fi 34 fi
35
36 if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
37 grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
38 fi
34} 39}
35 40
36do_install_append_class-target() { 41do_install_append_class-target() {