From b99fc5050295e6f9d125d1db3d560ed9cf3c5c5d Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Tue, 15 Aug 2023 13:37:43 +0100 Subject: [PATCH] ts-xtf-install: Install python symlink MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ts-xtf-run does run ./xtf-runner, which run `python` in its shebang. So install a `python` symlink to `python3`. Signed-off-by: Anthony PERARD Acked-by: Roger Pau Monné --- ts-xtf-install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ts-xtf-install b/ts-xtf-install index a64fd32..fea737f 100755 --- a/ts-xtf-install +++ b/ts-xtf-install @@ -28,6 +28,11 @@ $whhost ||= 'host'; our $ho= selecthost($whhost); +sub packages () { + if ($ho->{Suite} !~ m/wheezy|jessie|stretch|buster/) { + target_install_packages($ho, qw(python-is-python3)); + } +} sub extract () { my %distpath; @@ -35,4 +40,5 @@ sub extract () { $r{xtfbuildjob}, \%distpath); } +packages(); extract(); -- 2.39.5