UBUNTU: [Packaging] workaround missing python3-dev dependency

The following commit is meant to fix build issues in environment where
python2 runtime is only installed:

 630af16eee ("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 <andrea.righi@canonical.com>
This commit is contained in:
Andrea Righi
2022-06-10 11:27:18 +02:00
committed by Paolo Pisati
parent 9d92038d25
commit 397ee9398c
+4
View File
@@ -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