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) - Friday, 11 October 2019, 10:20 GMT
Task Type Bug Report
Category Backend/Core
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version 5.1.1
Due in Version 5.2.0
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

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

Closed by  Allan McRae (Allan)
Friday, 11 October 2019, 10:20 GMT
Reason for closing:  Implemented
Additional comments about closing:  git commit f9eb2aac
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?
Comment by Eli Schwartz (eschwartz) - Thursday, 10 January 2019, 21:01 GMT
Fixed on master in https://git.archlinux.org/pacman.git/commit/?id=f9eb2aacb4655cce5faa8a2e7295a96cab91c68c

Also scheduled to be backported into the next maintenance release.

Loading...