Bug 2115362

Summary: python3-clang depends on libclang.so
Product: [Fedora] Fedora Reporter: Marc-Andre Lureau <marcandre.lureau>
Component: clangAssignee: Nikita Popov <npopov>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: airlied, jchecahi, kkleine, npopov, sbergman, sguelton, siddharth.kde, tstellar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: clang-15.0.6-3.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-11 01:20:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marc-Andre Lureau 2022-08-04 13:58:13 UTC
The clang python binding need libclang.so, otherwise it's useless/broken:

clang.cindex.LibclangError: libclang.so: cannot open shared object file: No such file or directory. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().

python3-clang should probably have a "Depends:" on clang-libs.

But that's not all, since clang-libs doesn't provide libclang.so! Any idea why or what would be the solution?

thanks

Comment 1 Nikita Popov 2022-08-04 14:22:46 UTC
python3-clang does depend on clang-libs, see https://src.fedoraproject.org/rpms/clang/blob/rawhide/f/clang.spec#_232.

However libclang.so is provided only by clang-devel, not clang-libs (clang-libs only provides libclang.so.14 or similar, not the libclang.so symlink). Probably python3-clang should depend on clang-devel to make it directly usable.

Comment 3 Fedora Update System 2023-01-02 09:14:02 UTC
FEDORA-2023-2522d9d420 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2522d9d420

Comment 4 Fedora Update System 2023-01-03 01:08:56 UTC
FEDORA-2023-2522d9d420 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-2522d9d420`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2522d9d420

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-01-11 01:20:46 UTC
FEDORA-2023-2522d9d420 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.