Bug 57584 - cvise cannot find clang-format
Summary: cvise cannot find clang-format
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: cvise (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-21 14:24 MSK by Ivan A. Melnikov
Modified: 2026-01-22 11:16 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).