main: reset solver when solving for library groups
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
8f12d36b76
commit
e2a12fd4c2
12
cli/main.c
12
cli/main.c
|
@ -1465,8 +1465,20 @@ cleanup3:
|
||||||
printf(" ");
|
printf(" ");
|
||||||
|
|
||||||
if (!(want_flags & PKG_STATIC))
|
if (!(want_flags & PKG_STATIC))
|
||||||
|
{
|
||||||
pkgconf_client_set_flags(&pkg_client, pkg_client.flags & ~PKGCONF_PKG_PKGF_SEARCH_PRIVATE);
|
pkgconf_client_set_flags(&pkg_client, pkg_client.flags & ~PKGCONF_PKG_PKGF_SEARCH_PRIVATE);
|
||||||
|
|
||||||
|
/* redo the solution for the library set: free the solution itself, and any cached graph nodes */
|
||||||
|
pkgconf_solution_free(&pkg_client, &world);
|
||||||
|
pkgconf_cache_free(&pkg_client);
|
||||||
|
|
||||||
|
if (!pkgconf_queue_solve(&pkg_client, &pkgq, &world, maximum_traverse_depth))
|
||||||
|
{
|
||||||
|
ret = EXIT_FAILURE;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
apply_libs(&pkg_client, &world, NULL, maximum_traverse_depth);
|
apply_libs(&pkg_client, &world, NULL, maximum_traverse_depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ pkgconf_pkg_parser_internal_dependency_func(pkgconf_client_t *client, pkgconf_pk
|
||||||
pkgconf_dependency_parse(client, pkg, dest, value, PKGCONF_PKG_DEPF_INTERNAL);
|
pkgconf_dependency_parse(client, pkg, dest, value, PKGCONF_PKG_DEPF_INTERNAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* a variant of pkgconf_pkg_parser_dependency_func which colors the dependency node as an "internal" dependency. */
|
/* a variant of pkgconf_pkg_parser_dependency_func which colors the dependency node as a "private" dependency. */
|
||||||
static void
|
static void
|
||||||
pkgconf_pkg_parser_private_dependency_func(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value)
|
pkgconf_pkg_parser_private_dependency_func(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue