FS#61918 - [c-ares] package does not install the c-ares-config.cmake

Attached to Project: Arch Linux
Opened by Slava (Slavas) - Tuesday, 05 March 2019, 12:47 GMT
Last edited by David Runge (dvzrv) - Sunday, 07 February 2021, 16:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The library provides a c-ares-config.cmake which is required for linking to this lib from projects using CMake. To have this file installed the library needs to be built with CMake. However the package sticks to using autotools build and thus no configs are installed.

Additional info:
* package version(s) 1.15.0-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
add 'find_package(c-ares)' to CMakeLists.txt and see it not found.
This task depends upon

Closed by  David Runge (dvzrv)
Sunday, 07 February 2021, 16:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with c-ares 1.17.1-1
Comment by Eli Schwartz (eschwartz) - Tuesday, 10 December 2019, 19:42 GMT
Given that the c-ares package installs a pkg-config file, it seems prudent to not depend on a .cmake file which may or may not be available depending on how the project was built, and instead use find_package(FindPkgConfig) and acquire the necessary link dependency using that (build system agnostic) method.
Comment by Guillaume Horel (thrasibule) - Wednesday, 02 September 2020, 18:27 GMT
By building the package with cmake instead of autoconf, the library will provide both the pkg-config file and the cmake file, which seems like a strict improvement for cmake based projects. See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=c-ares-cmake for an example.
Comment by Laurențiu Nicola (lnicola) - Thursday, 04 February 2021, 18:58 GMT

Loading...