[pacman-dev] [PATCH] Initial draft of package cycle removal

Allan McRae allan at archlinux.org
Wed May 18 05:14:08 UTC 2016

On 09/05/16 01:08, Ashley Whetter wrote:
> ---
>  lib/libalpm/deps.c                           | 224 ++++++++++++++++++++++++---
>  test/pacman/tests/TESTS                      |   1 +
>  test/pacman/tests/remove-dependency-cycle.py |  25 +++
>  3 files changed, 231 insertions(+), 19 deletions(-)
>  create mode 100644 test/pacman/tests/remove-dependency-cycle.py

Have you been given any comments on this yet?  I have not looked in the
patch itself as from memory you were discussing this with Andrew.  Is
that right?

Ihe inclusion of a test case is great.  Even better that it passes!
Did you check it did not pass before applying your patch too?

Please test your build using "--enable-git-version --enable-debug

deps.c:597:5: error: no previous prototype for ‘_alpm_find_cycles’
 int _alpm_find_cycles(alpm_graph_t *v, alpm_list_t **path)
deps.c:672:6: error: no previous prototype for ‘_alpm_graph_unvisit_all’
 void _alpm_graph_unvisit_all(alpm_graph_t *v)
deps.c:698:5: error: no previous prototype for ‘_can_remove_cycle’
 int _can_remove_cycle(alpm_db_t *db, alpm_pkg_t *cycle_pkg, alpm_list_t
deps.c:734:5: error: no previous prototype for ‘_alpm_find_removables’
 int _alpm_find_removables(alpm_db_t *db, alpm_graph_t *v, alpm_list_t
**targs, int include_explicit)

More information about the pacman-dev mailing list