Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67307 - [check] package does not contain check-config.cmake, only check.pc

Attached to Project: Arch Linux
Opened by DrTea (DrTea) - Friday, 17 July 2020, 14:58 GMT
Last edited by Jan Alexander Steffens (heftig) - Sunday, 19 July 2020, 09:11 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture x86_64
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The check package 0.15.0-1 only contains /usr/lib/pkgconfig/check.pc for pkgconfig, not /usr/lib/cmake/check/check-config.cmake which would be required to find check when using cmake. In this state, further manual action is required when using cmake, cmake has to be told how to find check manually (by providing a CheckConfig.cmake or check-config.cmake file).


Suggested solution:

Use cmake as a build system for the check package in PKGBUILD. I have tried it on my machine in a chroot and this approach seems to install both the check.pc and the check-config.cmake.
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Sunday, 19 July 2020, 09:11 GMT
Reason for closing:  Implemented
Additional comments about closing:  check 0.15.0-2
Comment by Eli Schwartz (eschwartz) - Friday, 17 July 2020, 15:33 GMT
Alternatively, since either way, the *standard* pkg-config file is installed, one could use:

include(FindPkgConfig)
pkg_check_modules(CHECK check IMPORTED_TARGET GLOBAL)

Then link to PkgConfig::CHECK

This has the advantage of actually working robustly rather than going to every distribution which provides libcheck and trying to convince them to use one or the other build system when upstream supposedly supports both.

...

Or, upstream could install a turing-complete *.cmake file written in a programming language that probes various system layouts, when building with autotools too.
Comment by Eli Schwartz (eschwartz) - Friday, 17 July 2020, 15:38 GMT
This is thoroughly meh IMO, because it doesn't actually fix the root of the problem and you cannot rely on *.cmake existing on other distros even if it does get added to archlinux. (Also cmake is kind of... odd to use... as far as build systems go.) But I guess we'll see...

Loading...