Build perf tools using Python 3

This change updates the Debian build rules to build the Linux perf tools
using Python 3 as opposed to Python 2.7 that is currently specified in
the rules. Python 2.7 was already dropped from the build requirements,
but this line was not updated in the process.
This commit is contained in:
Fabian Mastenbroek 2021-07-27 17:00:52 +02:00
parent ce7514fc1e
commit 2bb89ae564
No known key found for this signature in database
GPG key ID: 405FC6F81F0A7B85

4
debian/rules vendored
View file

@ -140,7 +140,7 @@ debian/${PVE_KERNEL_PKG}.%: debian/templates/pve-kernel.%.in
NO_LIBPYTHON=1 \
NO_LIBPERL=1 \
NO_LIBCRYPTO=1 \
PYTHON=python2.7
PYTHON=python3
echo "checking GPL-2 only perf binary for library linkage with incompatible licenses.."
! ldd ${KERNEL_SRC}/tools/perf/perf | grep -q -E '\blibbfd'
! ldd ${KERNEL_SRC}/tools/perf/perf | grep -q -E '\blibcrypto'
@ -208,4 +208,4 @@ debian/${PVE_HEADER_PKG}.%: debian/templates/pve-headers.%.in
mv $(OUT_DIR)/include/asm $(OUT_DIR)/include/$(DEB_HOST_MULTIARCH)/
test ! -d $(OUT_DIR)/include/arch || \
mv $(OUT_DIR)/include/arch $(OUT_DIR)/include/$(DEB_HOST_MULTIARCH)/
touch $@
touch $@