FS#65578 - [libavtp] cmocka is a makedepend, not a checkdepend

Attached to Project: Arch Linux
Opened by Kevin Mihelich (kmihelich) - Friday, 21 February 2020, 01:53 GMT
Last edited by David Runge (dvzrv) - Wednesday, 26 February 2020, 18:16 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: Checkdepends are being used as makedepends. The package fails to build without cmocka.


Additional info:
* package version: 0.1.0-1
* log snippet:
Run-time dependency cmocka found: NO (tried pkgconfig)

meson.build:40:0: ERROR: Dependency "cmocka" not found, tried pkgconfig

A full log can be found at /build/libavtp/src/libavtp-0.1.0/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().

Steps to reproduce: Build in a clean chroot passing --nocheck to makepkg.
This task depends upon

Closed by  David Runge (dvzrv)
Wednesday, 26 February 2020, 18:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with libavtp 0.1.0-2
Comment by David Runge (dvzrv) - Friday, 21 February 2020, 07:43 GMT
@kmihelich: Thanks for the report.

Well, yes and no. Technically, cmocka is only required for testing the software, *but* it needs to be installed to be able to build the tests.
By passing --nocheck (why btw?) the tests can not be built, as the checkdepends are not being installed.
Comment by freswa (frederik) - Friday, 21 February 2020, 10:40 GMT
I guess by passing --nocheck the check() function is omitted and also the checkpkgs are not installed. If it's a real checkdepend, it should build then, but it doesn't.
That's just how I understood the report.
Comment by Kevin Mihelich (kmihelich) - Friday, 21 February 2020, 13:26 GMT
Exactly. The build fails without cmocka.

Loading...