<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>57584</bug_id>
          
          <creation_ts>2026-01-21 14:24:04 +0300</creation_ts>
          <short_desc>cvise cannot find clang-format</short_desc>
          <delta_ts>2026-01-22 11:16:22 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>cvise</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan A. Melnikov">iv</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>280602</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2026-01-21 14:24:04 +0300</bug_when>
    <thetext>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
[...]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280603</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2026-01-21 14:27:28 +0300</bug_when>
    <thetext>$ rpm -q cvise
cvise-2.12.0-alt1.x86_64
$ rpm -ql cvise | xargs grep CLANG_FORMAT 2&gt;/dev/null
/usr/share/cvise/utils/externalprograms.py:    programs[&apos;clang-format&apos;] = &apos;CLANG_FORMAT_PATH-NOTFOUND&apos;

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

По хорошему, нужно исправить cvise/CMakeLists.txt в апстриме, займусь на досуге. А для пакета проще всего, мне кажется, добавить /usr/bin/clang-format в BuildRequires -- должно помочь.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280610</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2026-01-21 15:48:32 +0300</bug_when>
    <thetext>&gt; По хорошему, нужно исправить cvise/CMakeLists.txt в апстриме

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

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

помогло: https://git.altlinux.org/tasks/405743/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280667</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-01-22 11:16:22 +0300</bug_when>
    <thetext>cvise-2.12.0-alt2 -&gt; sisyphus:

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

    </bug>

</bugzilla>