[Buildroot] [git commit] package/opkg-utils: needs Python3 on the host

Peter Korsgaard peter at korsgaard.com
Mon Dec 21 09:26:06 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=7dcd20f9d5cca7dba2c510988b457c93532108cd
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 at nokia.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/opkg-utils/opkg-utils.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/opkg-utils/opkg-utils.mk b/package/opkg-utils/opkg-utils.mk
index fa14053f65..a94a4cd5cd 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


More information about the buildroot mailing list