Bug 57584

Summary: cvise cannot find clang-format
Product: Sisyphus Reporter: Ivan A. Melnikov <iv>
Component: cviseAssignee: Vitaly Lipatov <lav>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: lav
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Ivan A. Melnikov 2026-01-21 14:24:04 MSK
cvise не может найти clang-format, хотя он и установлен в системе:

$ which clang-format
/usr/bin/clang-format
$ cvise test.sh test.c
00:00:00 ERROR cannot find external program clang-format
00:00:00 ERROR Prereqs not found for pass IndentPass::regular
00:00:00 ERROR cannot find external program clang-format
00:00:00 ERROR Prereqs not found for pass IndentPass::final
[...]
Comment 1 Ivan A. Melnikov 2026-01-21 14:27:28 MSK
$ rpm -q cvise
cvise-2.12.0-alt1.x86_64
$ rpm -ql cvise | xargs grep CLANG_FORMAT 2>/dev/null
/usr/share/cvise/utils/externalprograms.py:    programs['clang-format'] = 'CLANG_FORMAT_PATH-NOTFOUND'

По такому пути clang-format действительно не находится.

По хорошему, нужно исправить cvise/CMakeLists.txt в апстриме, займусь на досуге. А для пакета проще всего, мне кажется, добавить /usr/bin/clang-format в BuildRequires -- должно помочь.
Comment 2 Ivan A. Melnikov 2026-01-21 15:48:32 MSK
> По хорошему, нужно исправить cvise/CMakeLists.txt в апстриме

https://github.com/marxin/cvise/pull/475

> Проще всего, мне кажется, добавить /usr/bin/clang-format в BuildRequires -- должно помочь.

помогло: https://git.altlinux.org/tasks/405743/
Comment 3 Repository Robot 2026-01-22 11:16:22 MSK
cvise-2.12.0-alt2 -> sisyphus:

Wed Jan 21 2026 Ivan A. Melnikov <iv@altlinux> 2.12.0-alt2
- NMU: add clang-tools (for clang-format) to BR and package
  requires (ALT#57584).