Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#60347 - [libalpm] Can’t get check & make dependencies of a package

Attached to Project: Pacman
Opened by Alexandre Garnier (agarnier) - Monday, 08 October 2018, 08:57 GMT
Last edited by Allan McRae (Allan) - Monday, 08 October 2018, 09:26 GMT
Task Type Bug Report
Category Backend/Core
Status Unconfirmed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version 5.1.1
Due in Version 5.1.2
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Summary and Info:
alpm_pkg_get_{check,make}depends(alpm_pkg_t*) functions in lib/libalpm/alpm.h are supposed to return check & make dependencies for a given package, but don’t (both systematically return an empty linked list).
Patching lib/libalpm/be_sync.c by copying the behavior for depends & optdepends does the job.

You’ll find attached the git diff of the change in question.
This task depends upon

Comment by Alexandre Garnier (agarnier) - Monday, 08 October 2018, 12:25 GMT
The aforementioned patch only works for sync database, not local ones.
Here is a patch to cover both cases.
Comment by Andrew Gregory (andrewgregory) - Monday, 08 October 2018, 12:48 GMT
It also needs to trigger the lazy loading for the local db; see _cache_get_depends. Can you submit an updated (and git formatted) patch to the mailing list?
Comment by Alexandre Garnier (agarnier) - Monday, 08 October 2018, 12:57 GMT
Ok, does this diff cover it?