Tag
Hash :
f3531f9f
Author :
Date :
2025-03-07T09:42:54
tests: add c-comment test fixture Some pkg-config files apparently contain C comments, even though only normal Unix # comments are supported in pkg-config files. Ugh. So we now test for this explicitly and make sure pkgconf handles it gracefully. Related: https://github.com/pkgconf/pkgconf/issues/384 Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
/*
This is a C-style comment, which technically isn't allowed, but
some pkg-config files use them.
*/
prefix=/test
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: c-comment
Description: A testing pkg-config file
Version: 1.2.3
Libs: -L${libdir} -lfoo
Cflags: -fPIC -I${includedir}/foo
Cflags.private: -DFOO_STATIC
License: ISC