Bug 40912 - git-clang-format is missing
Summary: git-clang-format is missing
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: clang12.0-tools (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-14 12:20 MSK by Олег Соловьев
Modified: 2021-09-21 21:26 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Олег Соловьев 2021-09-14 12:20:58 MSK
$ git commit --amend

git-clang-format: A symlink to the following path was installed along with the generic wrapper,
but it looks like the actual tool is not installed. You might want
to install the relevant package.
/usr/lib/llvm-12.0/bin/git-clang-format: No such file or directory
Comment 1 Arseny Maslennikov 2021-09-14 12:27:45 MSK
(In reply to Олег Соловьев from comment #0)
> $ git commit --amend
> 
> git-clang-format: A symlink to the following path was installed along with
> the generic wrapper,
> but it looks like the actual tool is not installed. You might want
> to install the relevant package.
> /usr/lib/llvm-12.0/bin/git-clang-format: No such file or directory

А что вы пытаетесь сделать и что говорит команда «rpm -qa \*clang\*»?
Comment 2 Олег Соловьев 2021-09-14 12:33:07 MSK
(Ответ для Arseny Maslennikov на комментарий #1)
> (In reply to Олег Соловьев from comment #0)
> > $ git commit --amend
> > 
> > git-clang-format: A symlink to the following path was installed along with
> > the generic wrapper,
> > but it looks like the actual tool is not installed. You might want
> > to install the relevant package.
> > /usr/lib/llvm-12.0/bin/git-clang-format: No such file or directory
> 
> А что вы пытаетесь сделать
Коммит в репозиторий kde для merge request. Там с какого-то момента git-clang-format используется в pre-commit hook.


> что говорит команда «rpm -qa \*clang\*»?
$ rpm -qa \*clang\*
clang12.0-libs-support-12.0.1-alt1.x86_64
clang-12.0.0-alt1.noarch
clang-devel-12.0.0-alt1.x86_64
clang11.0-libs-support-11.0.1-alt3.x86_64
clang12.0-libs-12.0.1-alt1.x86_64
clang12.0-devel-12.0.1-alt1.x86_64
clang12.0-12.0.1-alt1.x86_64
clang11.0-libs-11.0.1-alt3.x86_64
clang11.0-tools-11.0.1-alt3.x86_64
clang-tools-12.0.0-alt1.noarch
clang11.0-11.0.1-alt3.x86_64
clang12.0-tools-12.0.1-alt1.x86_64
Comment 3 Arseny Maslennikov 2021-09-14 12:42:34 MSK
(In reply to Олег Соловьев from comment #2)
> (Ответ для Arseny Maslennikov на комментарий #1)
> > (In reply to Олег Соловьев from comment #0)
> > > $ git commit --amend
> > > 
> > > git-clang-format: A symlink to the following path was installed along with
> > > the generic wrapper,
> > > but it looks like the actual tool is not installed. You might want
> > > to install the relevant package.
> > > /usr/lib/llvm-12.0/bin/git-clang-format: No such file or directory
> > 
> > А что вы пытаетесь сделать
> Коммит в репозиторий kde для merge request. Там с какого-то момента
> git-clang-format используется в pre-commit hook.
> 

OK, он у нас просто не упакован, между делом про него все забыли. Положу его в clang-tools, если нет других соображений (благо /usr/bin/git-clang-format и сам clang-format именно там).


> > что говорит команда «rpm -qa \*clang\*»?
> $ rpm -qa \*clang\*
> clang12.0-libs-support-12.0.1-alt1.x86_64
> clang-12.0.0-alt1.noarch
> clang-devel-12.0.0-alt1.x86_64
> clang11.0-libs-support-11.0.1-alt3.x86_64
> clang12.0-libs-12.0.1-alt1.x86_64
> clang12.0-devel-12.0.1-alt1.x86_64
> clang12.0-12.0.1-alt1.x86_64
> clang11.0-libs-11.0.1-alt3.x86_64
> clang11.0-tools-11.0.1-alt3.x86_64
> clang-tools-12.0.0-alt1.noarch
> clang11.0-11.0.1-alt3.x86_64
> clang12.0-tools-12.0.1-alt1.x86_64

OK.
Comment 4 Олег Соловьев 2021-09-14 13:31:07 MSK
(Ответ для Arseny Maslennikov на комментарий #3)
> OK, он у нас просто не упакован, между делом про него все забыли. Положу его
> в clang-tools, если нет других соображений (благо /usr/bin/git-clang-format
> и сам clang-format именно там).

Какая-то странная схема упаковки, которая пропустила файл и не оборвала сборку из-за unpackaged files.
Comment 5 Arseny Maslennikov 2021-09-14 13:45:47 MSK
(In reply to Олег Соловьев from comment #4)
> (Ответ для Arseny Maslennikov на комментарий #3)
> > OK, он у нас просто не упакован, между делом про него все забыли. Положу его
> > в clang-tools, если нет других соображений (благо /usr/bin/git-clang-format
> > и сам clang-format именно там).
> 
> Какая-то странная схема упаковки, которая пропустила файл и не оборвала
> сборку из-за unpackaged files.

В одном подпакете %exclude %_bindir/git-clang-format-*, в остальных подпакетах не упомянут. Как я понял, rpmbuild не ругается на такое.
Comment 6 Олег Соловьев 2021-09-21 10:23:32 MSK
ping
Comment 7 Arseny Maslennikov 2021-09-21 14:47:51 MSK
(In reply to Олег Соловьев from comment #6)
> ping

http://git.altlinux.org/tasks/285224/
* Tue Sep 21 2021 Arseny Maslennikov <arseny@altlinux.org> 12.0.1-alt3
- Included git-clang-format in clang-tools (closes: bug 40912).
  Split off LLVMgold.so to its own package.
  Added a requirement on llvmN-gold from llvmN-libs.

Скоро в сизифе.
Comment 8 Arseny Maslennikov 2021-09-21 21:26:45 MSK
2021-Sep-21 15:59:12 :: task #285224 for sisyphus resumed by arseny:
#300 llvm12.0 12.0.1-alt2 -> 12.0.1-alt3
 Tue Sep 21 2021 Arseny Maslennikov <arseny@altlinux> 12.0.1-alt3
 - Included git-clang-format in clang-tools (closes: bug 40912).
   Split off LLVMgold.so to its own package.
   Added a requirement on llvmN-gold from llvmN-libs.
2021-Sep-21 16:14:11 :: task #285224 for sisyphus DONE