[OE-core] pkg-config sometimes return unexpanded variables

Martin Jansa martin.jansa at gmail.com
Tue Jun 7 06:28:07 UTC 2011


My webkit-efl build fails with:

-- checking for module 'cairo'
--   found cairo, version 1.10.0
CMake Error at
/OE/shr-core/tmp/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:104
(set):
  Syntax error in cmake code at

    �:104

  when parsing string

    ;/OE/shr-core/tmp/sysroots/nokia900\{libdir\}

  Invalid escape sequence \{

and it's because pkg-config itself returns unexpanded variable
found it only with --libs-only-L and --static params

$ pkg-config --libs-only-L --static cairo
-L/OE/shr-core/tmp/sysroots/nokia900\{libdir\}
$ pkg-config --version
0.25

I'm not sure if it's pkg-config fault worth reporting upstream or
something wrong in our sysroot, but .pc looks sane (and it's the same as
with oe.dev):
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: cairo
Description: Multi-platform 2D graphics library
Version: 1.10.0

Requires.private:   gobject-2.0 glib-2.0    pixman-1 >= 0.18.4
fontconfig >= 2.2.95 freetype2 >= 9.7.3  libpng xrender >= 0.6 x11
Libs: -L${libdir} -lcairo
Libs.private:         -lz -lz
Cflags: -I${includedir}/cairo

I haven't seen this with pkg-config-0.23 from oe.dev and there is 0.26 
relase available upstream, but looking on changelog it doesn't look like 
resolved there.

Have anyone seen this too?

Regards,
-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20110607/61c873fd/attachment-0002.sig>


More information about the Openembedded-core mailing list