2011/9/4 patrick keshishian <[email protected]>:
> On Sun, Sep 4, 2011 at 5:32 AM, Vadim Zhukov <[email protected]> wrote:
>> 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
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this path
>
>> 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
> and this path       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> are not the same.

According to documentation, PKG_CONFIG_PATH gets prepended
to default search path list, and not replaces it. I managed to set
PKG_CONFIG_PATH based on data in qt4.port.mk before even
trying to call pkg-config manually and got bitten. :)

>> libdir phonon
>> /usr/local/lib/qt4
>
> Also compare libdir value in your cat output vs pkg-config output.
>
> See Nigel Taylor's response as well.

Yes, the problem was that because PKG_CONFIG_PATH is prepended,
Qt's phonon.pc was picked up before one from multimedia/phonon.
I don't have qt4-phonon installed, and was surprised that pkg-config's
info file was installed with -main package of Qt. Thus my question:
should this file be moved (possibly with headers and other stuff)
to PLIST-phonon in x11/qt4?..

--
  WBR,
  Vadim Zhukov

>> 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.

Reply via email to