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
This commit is contained in:
Pim van Pelt
2024-01-15 11:06:19 +01:00
committed by Damjan Marion
parent 276cd73b75
commit 4a515d35a8

View File

@ -109,6 +109,8 @@ else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-11)
else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-12) else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-12)
DEB_DEPENDS += virtualenv DEB_DEPENDS += virtualenv
DEB_DEPENDS += clang-14 clang-format-14 DEB_DEPENDS += clang-14 clang-format-14
# for extras/scripts/checkstyle.sh
export CLANG_FORMAT_VER=14
LIBFFI=libffi8 LIBFFI=libffi8
else else
DEB_DEPENDS += clang-11 clang-format-11 DEB_DEPENDS += clang-11 clang-format-11