Bug 2123479 - Development headers for clang-tidy not present in Fedora
Summary: Development headers for clang-tidy not present in Fedora
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: serge-sans-paille
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-01 18:46 UTC by Kyle Edwards
Modified: 2022-10-06 11:44 UTC (History)
10 users (show)

Fixed In Version: clang-15.0.0-4.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-06 11:44:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kyle Edwards 2022-09-01 18:46:43 UTC
Description of problem:

clang-tidy includes development headers to allow you to build a custom plugin, but these headers are not packaged in Fedora.

This was prompted by: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7628

Version-Release number of selected component (if applicable):

clang-14.0.5-1.fc36

Comment 1 serge_sans_paille 2022-10-04 13:50:06 UTC
If I'm not mistaken, we don't even package the clangTidy library, which is why we don't ship the headers. Do you need just the headers?

Comment 2 Kyle Edwards 2022-10-04 14:18:50 UTC
clang-tidy has a --load argument, which loads a .so file as a plugin. The plugin doesn't need to link against the clangTidy library, because it resolves all of its symbols from the clang-tidy executable. Just the headers will suffice for building such a plugin.

Comment 3 serge_sans_paille 2022-10-04 16:18:10 UTC
good to know! I'll craft a test pass and I'll add that

Comment 4 serge_sans_paille 2022-10-05 09:42:16 UTC
https://src.fedoraproject.org/rpms/clang/pull-request/182#

Comment 5 Kyle Edwards 2022-10-05 18:22:17 UTC
Thanks. I built the packages from that PR locally, and clang-tools-extra-devel does indeed install the headers that I need. Once this is merged, and once we upgrade to Fedora 38, we'll be able to use that package.

Comment 6 Fedora Update System 2022-10-06 11:08:18 UTC
FEDORA-2022-26431de6f3 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-26431de6f3

Comment 7 serge_sans_paille 2022-10-06 11:15:22 UTC
Fixed as of clang-15.0.0-4.fc38

Comment 8 Fedora Update System 2022-10-06 11:44:57 UTC
FEDORA-2022-26431de6f3 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


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