aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>2020-12-09 16:15:50 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-12-22 11:51:18 +0100
commit8d80efb38b82b11477dcb4227f1022167ee82d9b (patch)
treecef73b9f1d32e0bf1c827cf5397ec0d306282c02
parentb46fe00c03a3dbeeafa3cde374885298ba96446d (diff)
downloadbuildroot-8d80efb38b82b11477dcb4227f1022167ee82d9b.tar.gz
buildroot-8d80efb38b82b11477dcb4227f1022167ee82d9b.tar.bz2
package/opkg-utils: needs Python3 on the host
The 'opkg.py' script installed by host-opkg-utils has as shebang: #!/usr/bin/env python3 which may not be available on all host machines. Add a potential dependency on host-python3 via BR2_PYTHON3_HOST_DEPENDENCY, which will only add the host-python3 dependency if no python3 is already available on the host. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit 7dcd20f9d5cca7dba2c510988b457c93532108cd) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/opkg-utils/opkg-utils.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/opkg-utils/opkg-utils.mk b/package/opkg-utils/opkg-utils.mk
index 38137bc67b..68876b874f 100644
--- a/package/opkg-utils/opkg-utils.mk
+++ b/package/opkg-utils/opkg-utils.mk
@@ -10,6 +10,8 @@ OPKG_UTILS_SITE_METHOD = git
OPKG_UTILS_LICENSE = GPL-2.0+
OPKG_UTILS_LICENSE_FILES = COPYING
+HOST_OPKG_UTILS_DEPENDENCIES += $(BR2_PYTHON3_HOST_DEPENDENCY)
+
define HOST_OPKG_UTILS_BUILD_CMDS
$(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS)
endef