From 397ee9398c9f1d30d52e07559406037049efc83a Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Fri, 10 Jun 2022 11:27:18 +0200 Subject: [PATCH] UBUNTU: [Packaging] workaround missing python3-dev dependency The following commit is meant to fix build issues in environment where python2 runtime is only installed: 630af16eee49 ("perf tools: Use Python devtools for version autodetection rather than runtime") However, this requires python3-dev that is not specified in the build dependencies. As a temporary workaround set PYTHON=python3 in debian/rules to enforce the usage of python3 when python is needed. TODO: add python3-dev to the build dependencies and update all our build chroots. Signed-off-by: Andrea Righi --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index 435b1616a4a9..dfb32e8fdc76 100755 --- a/debian/rules +++ b/debian/rules @@ -20,6 +20,10 @@ export SHELL=/bin/bash -e # Where do we find the common configuration. export DROOT=debian +# Temporary workaround to fix build issues if only python2 runtime is installed +# (without python3-dev). +export PYTHON=python3 + # Common variables for all architectures include $(DROOT)/rules.d/0-common-vars.mk