pkgconf / pkgconf

package compiler and linker metadata toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whitespace inconsistency compared to pkg-config

jas4711 opened this issue · comments

Hi. We got a bug report that our regression tests for libgssglue failed, and it was tracked down to a difference between pkg-config and pkgconf. Here is how to reproduce the difference:

jas@latte:~$ printf '%s\n' 'Name: foobar' 'Version: 1' 'Description: foobar' 'Cflags: -Ifoo' > foobar.pc 
jas@latte:~$ echo XXX`PKG_CONFIG_PATH=. pkgconf foobar --cflags`XXX
XXX-Ifoo XXX
jas@latte:~$ echo XXX`PKG_CONFIG_PATH=. pkg-config foobar --cflags`XXX
XXX-IfooXXX
jas@latte:~$ 

Notice the whitespace difference at end of line. It doesn't come from the *.pc file, so it is introduced by pkgconf. Would you consider fixing this minimal problem, to gain better compatibility with pkg-config? Thank you!

Fixed in 648a224.

Thank you!