Don't prepend sysroot_dir if pkg-config file lies outside of sysroot_dir
ci/woodpecker/push/woodpecker Pipeline failed Details

Klein, Thorsten (GDE-EDS9) 2023-01-12 12:17:57 +01:00 committed by Ariadne Conill
parent de51b03cc1
commit 20a75a3e3e
1 changed files with 3 additions and 1 deletions

View File

@ -434,7 +434,9 @@ pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE *
* See https://github.com/pkgconf/pkgconf/issues/213
*/
if (client->sysroot_dir && strncmp(pkg->pc_filedir, client->sysroot_dir, strlen(client->sysroot_dir)))
pkgconf_tuple_add(client, &pkg->vars, "pc_sysrootdir", "", false, pkg->flags);
{
pkgconf_client_set_sysroot_dir(client, "");
}
/* make module id */
if ((idptr = strrchr(pkg->filename, PKG_DIR_SEP_S)) != NULL)