Skip to contentSkip to conversation

package/opkg-utils: needs Python3 on the host

PATCH New Thomas De Schampheleire 2 participants 3 messages Dec 9, 2020 – Dec 22, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/opkg-utils: needs Python3 on the host

From: Thomas De Schampheleire <[email protected]>

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.

---
 package/opkg-utils/opkg-utils.mk | 2 ++
 1 file changed, 2 insertions(+)
package/opkg-utils/opkg-utils.mk +2 -0
index fa14053f65..a94a4cd5cd 100644
@@ -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
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 package/opkg-utils: needs Python3 on the host

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

From: Thomas De Schampheleire <[email protected]> The 'opkg.py' script installed by host-opkg-utils has as shebang:

Quoted 8 lines
    #!/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.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/opkg-utils: needs Python3 on the host

In reply to Thomas De Schampheleire
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

From: Thomas De Schampheleire <[email protected]> The 'opkg.py' script installed by host-opkg-utils has as shebang:

Quoted 8 lines
    #!/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.

Committed to 2020.02.x, 2020.08.x and 2020.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard