mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-05 06:27:59 +02:00
Quote pc_path virtual variable
Since we unquote variables on printing, we want to quote in before adding to the database. For all other variables defined in .pc files, we assume that the user has quoted the variable correctly. This was broken with the fix for bug 67904, but seems to only affect Windows builds.
This commit is contained in:
parent
2808a5497c
commit
a6e8749ada
1 changed files with 3 additions and 1 deletions
4
pkg.c
4
pkg.c
|
|
@ -222,6 +222,7 @@ static Package *
|
|||
add_virtual_pkgconfig_package (void)
|
||||
{
|
||||
Package *pkg = NULL;
|
||||
gchar *path_quoted;
|
||||
|
||||
pkg = g_new0 (Package, 1);
|
||||
|
||||
|
|
@ -234,7 +235,8 @@ add_virtual_pkgconfig_package (void)
|
|||
|
||||
if (pkg->vars == NULL)
|
||||
pkg->vars = g_hash_table_new (g_str_hash, g_str_equal);
|
||||
g_hash_table_insert (pkg->vars, "pc_path", pkg_config_pc_path);
|
||||
path_quoted = g_shell_quote (pkg_config_pc_path);
|
||||
g_hash_table_insert (pkg->vars, "pc_path", path_quoted);
|
||||
|
||||
debug_spew ("Adding virtual 'pkg-config' package to list of known packages\n");
|
||||
g_hash_table_insert (packages, pkg->key, pkg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue