Bug 2245376

Summary: libuv: cmake find_package(libuv CONFIG) doesn't work
Product: [Fedora] Fedora Reporter: Andreas Schneider <asn>
Component: libuvAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: igor.raits, sgallagh, tchollingsworth, zsvetlik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: libuv-1.47.0-3.fc38 libuv-1.47.0-3.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-27 02:31:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andreas Schneider 2023-10-21 05:38:31 UTC
I wanted to build a new neovim version on rawhide but it fails because of libuv:

neovim is a cmake project and uses:

find_package(libuv CONFIG)

to find libuv header files and the library.

The error I get is:

CMake Error at /usr/lib64/cmake/libuv/libuvConfig.cmake:103 (message):
  The imported target "libuv::uv_a" references the file
     "/usr/lib64/libuv.a"
  but this file does not exist.  Possible reasons include:
  * The file was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and contained
     "/usr/lib64/cmake/libuv/libuvConfig.cmake"
  but not all the files it references.
Call Stack (most recent call first):
  src/nvim/CMakeLists.txt:5 (find_package)

The cmake config expects that the static library is present! Either generate a config without the static file or add a `Requires: libuv-static` to the libuv-devel package.

Reproducible: Always

Comment 1 Stephen Gallagher 2023-10-26 01:24:45 UTC
This is just one of many issues related to https://github.com/libuv/libuv/issues/4086

I'd prefer not to invent something new until upstream sorts that out, so I'll just go the route of requiring the static subpackage for now.

Comment 2 Fedora Update System 2023-10-26 02:58:37 UTC
FEDORA-2023-b370ccda5f has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-b370ccda5f

Comment 3 Fedora Update System 2023-10-26 02:58:38 UTC
FEDORA-2023-1157e1954c has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1157e1954c

Comment 4 Fedora Update System 2023-10-27 01:19:46 UTC
FEDORA-2023-1157e1954c has been pushed to the Fedora 38 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-1157e1954c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-1157e1954c

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

Comment 5 Fedora Update System 2023-10-27 02:14:32 UTC
FEDORA-2023-b370ccda5f has been pushed to the Fedora 39 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-b370ccda5f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-b370ccda5f

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

Comment 6 Fedora Update System 2023-11-18 02:41:42 UTC
FEDORA-2023-6cbf1f5bf8 has been pushed to the Fedora 39 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-6cbf1f5bf8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-6cbf1f5bf8

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

Comment 7 Fedora Update System 2023-11-18 02:47:58 UTC
FEDORA-2023-68626665ca has been pushed to the Fedora 38 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-68626665ca`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-68626665ca

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

Comment 8 Fedora Update System 2023-11-27 02:31:04 UTC
FEDORA-2023-68626665ca has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2023-12-01 01:22:40 UTC
FEDORA-2023-6cbf1f5bf8 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.