From 4a515d35a8702fafb1119e3dc4f969160b0e4372 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Mon, 15 Jan 2024 11:06:19 +0100 Subject: build: Provide clang-14 for Debian12 checkstyle.sh assumes clang-format-11 but allows it to be overridden. Debian12 ships with a minimal version of clang-14, so set the correct version for checkstyle. Before: $ make checkstyle extras/scripts/checkstyle.sh: line 41: --version: command not found make: *** [Makefile:720: checkstyle] Error 127 After: $ make checkstyle Debian clang-format version 14.0.6 ******************************************************************* * CHECKSTYLE SUCCESSFULLY COMPLETED ******************************************************************* Type: make Fixes: 712fc0308981c61444e593d6bcc2ad62102c726d Change-Id: I0c58456477011397115810dab825865b5850d10d Signed-off-by: pim@ipng.nl --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index dadb7620cf4..ccfc2a50531 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,8 @@ else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-11) else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-12) DEB_DEPENDS += virtualenv DEB_DEPENDS += clang-14 clang-format-14 + # for extras/scripts/checkstyle.sh + export CLANG_FORMAT_VER=14 LIBFFI=libffi8 else DEB_DEPENDS += clang-11 clang-format-11 -- cgit 1.2.3-korg