mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-20 03:10:03 +01:00
The change to unquote values in the --variable output broke users that had shell special characters in the variable. Instead, only unquote if the value starts with " or '. A larger fix to do a full unquote, split and escaping like --cflags/--libs is possible, but that might break the old semantics even further. Add a new function, parse_package_variable(), to handle that logic. https://bugs.freedesktop.org/show_bug.cgi?id=93284
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2001, 2002 Red Hat Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
* 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef PKG_CONFIG_PARSE_H
|
|
#define PKG_CONFIG_PARSE_H
|
|
|
|
#include "pkg.h"
|
|
|
|
Package *parse_package_file (const char *key, const char *path,
|
|
gboolean ignore_requires,
|
|
gboolean ignore_private_libs,
|
|
gboolean ignore_requires_private);
|
|
|
|
GList *parse_module_list (Package *pkg, const char *str, const char *path);
|
|
|
|
char *parse_package_variable (Package *pkg, const char *variable);
|
|
|
|
#endif
|
|
|
|
|
|
|