Hello all.

While playing with phonon update (KDE 4.7.0 is on the horizont, actually),
I stepped in a problem: not all variable names work in pkg-config.
Here is normal case:

$ cat /usr/local/lib/pkgconfig/phonon.pc
prefix=/usr/local
exec_prefix=/usr/local
libdir=/usr/local/lib
includedir=/usr/local/include
buildsystemdir=/usr/local/share/phonon-buildsystem/

Name: Phonon
Description: Phonon library needed to build applications
Version: 4.5.0
Requires: QtCore QtGui QtDBus
Libs: -L${libdir} -lphonon
Cflags: -I${includedir}
$ PKG_CONFIG_PATH=/usr/local/lib/qt4/pkgconfig pkg-config --variable
libdir phonon
/usr/local/lib/qt4

And here is problematic call:
$ PKG_CONFIG_PATH=/usr/local/lib/qt4/pkgconfig pkg-config --variable
buildsystemdir phonon

Just another variable name, and we get no output here, but error code is 0.
Same happens when no variable with specified name found - dunno if this
is by design.

Is this a known problem? After a brief look, didn't found any
suscpious in pkg-config code.

--
  WBR,
  Vadim Zhukov

Reply via email to