Bug 1328091 - [RFE] Package clang-query and clang-tidy
Summary: [RFE] Package clang-query and clang-tidy
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-18 12:32 UTC by Côme David
Modified: 2019-07-31 17:55 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-23 18:09:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
add clang-tools-extra take one (2.23 KB, patch)
2016-12-20 16:09 UTC, David Goerger
no flags Details | Diff

Description Côme David 2016-04-18 12:32:56 UTC
Description of problem:
clang-query and clang-tidy are not in any packages 

Version-Release number of selected component (if applicable):
A least clang 3.7

How reproducible:
Always

Steps to Reproduce:
1. dnf install clang 
2. Neither clang-query nor clang-tidy are available 

Actual results:

NA 

Expected results:
clang-query nor clang-tidy should be available, either in the clang or in some clang-extra-tool package

Additional info:

Comment 1 Yann Golanski 2016-06-27 06:55:27 UTC
http://unix.stackexchange.com/q/278292/10526 has some query about this. Sadly, it's not many people. It would be good if this bug got some attention.

Comment 2 Jan Včelák 2016-06-27 08:56:18 UTC
Sorry Yann, rebuilding LLVM/clang takes quite a long time which makes any change in the package demanding. At least for me.

I already have some clang patches in a queue. I'll take a look at this one as well.

Comment 3 Yann Golanski 2016-06-27 09:00:52 UTC
Just to be clear, I very much appreciate your hard work and know how much of a pain packaging things is.

If I could work out how to compile it myself, I would but the last time I tried, I got no where fast.

If you need a tester, please do not hesitate to contact me.

Thank you for looking into it.

Comment 4 Fedora End Of Life 2016-11-25 07:23:22 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Georg Sauthoff 2016-11-29 20:15:44 UTC
I can still reproduce this on Fedora 25:

~ # dnf provides '*/clang-query'
Last metadata expiration check: 0:36:40 ago on Tue Nov 29 20:35:48 2016.
Error: No Matches found
~ # dnf provides '*/clang-tidy' 
Last metadata expiration check: 0:36:47 ago on Tue Nov 29 20:35:48 2016.
Error: No Matches found

After installing the clang package there is just:

clang         clang-3.8     clang-cl      
clang++       clang-check   clang-format

Comment 6 Yann Golanski 2016-11-30 09:03:10 UTC
Sadly I think that the interest in this bug is close to none existent which is a real shame…

Comment 7 Sascha Zorn 2016-12-01 20:29:26 UTC
I would also appreciate if you could ship a package with clang-tidy and clang-query.

Comment 8 David Goerger 2016-12-20 16:08:36 UTC
I have a patched specfile[1] and compiled binaries for F24 (F25 package is still building)[2], adding a clang-tools-extra subpackage to provide clang-tidy, clang-query, etc.

Jan, or someone with commit privs, mind taking a look? I'll upload the patchfile in a sec.

[1] https://github.com/dgoerger/zoo-specs/blob/master/SPECS/clang.spec
[2] https://copr.fedorainfracloud.org/coprs/dgoerger/yale-zoo/package/clang/

Comment 9 David Goerger 2016-12-20 16:09:21 UTC
Created attachment 1233924 [details]
add clang-tools-extra take one

Comment 10 Fedora End Of Life 2016-12-20 20:00:55 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 11 Yann Golanski 2016-12-21 08:16:21 UTC
Please stop closing this bug! It is a valid one on F24 and F25.

Comment 12 Ben Boeckel 2016-12-21 14:23:38 UTC
Reopening, moving to Rawhide and marking as `RFE` so that the EOL bot no longer closes it.

Comment 13 Yann Golanski 2016-12-21 14:30:46 UTC
@BenBoeckel Thank you very much for doing this. Also, apologies if I sounded arrogant, I did not mean to. ⍨ Damned text which does not convey tone of voices…

Comment 14 Marek Skalický 2017-03-01 19:47:03 UTC
Any progress on this?

Comment 15 Brad Hubbard 2017-03-19 00:56:21 UTC
+1

I think this would be a valuable addition to Fedora.

Comment 16 Tom Stellard 2017-03-21 11:53:13 UTC
(In reply to David Goerger from comment #9)
> Created attachment 1233924 [details]
> add clang-tools-extra take one

Thanks for the patch.  I have ported it to 3.9.1, added a few cleanups, and pushed it to the rawhide branch.  If the builds are successful, this should be in rawhide soon.

Comment 17 Tom Stellard 2017-03-23 18:09:37 UTC
clang-tools-extra package has been added to rawhide.

Comment 18 Thomas Moschny 2017-05-11 16:13:49 UTC
Would it be possible to get this extra tools also for F25 (where we already have 3.9.1 in updates)?

Comment 19 Bernardo Sulzbach 2017-05-28 19:59:42 UTC
(In reply to Thomas Moschny from comment #18)
> Would it be possible to get this extra tools also for F25 (where we already
> have 3.9.1 in updates)?

You could try doing the following:

    sudo dnf install fedora-repos-rawhide
    sudo dnf install clang-tools-extra --enablerepo=rawhide

I am very thankful for the people responsible for packaging this. Checking out LLVM and building it takes some time and memory.


Note You need to log in before you can comment on or make changes to this bug.