On Tue, Jun 07, 2011 at 08:28:07AM +0200, Martin Jansa wrote:
> 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,

More info:

oe.dev has 0.23 with one extra patch
http://git.openembedded.org/cgit.cgi/openembedded/tree/recipes/pkgconfig/pkgconfig-0.23/sysrootfix.patch
and returns nothing
$ pkg-config --libs-only-L --static cairo

if I downgrade SRCREV used in oe-core pkgconfig_git to
http://cgit.freedesktop.org/pkg-config/commit/?id=515745885f68fcb121197e1d5e43c3ee77edce3f
which coresponds to 0.23 release I still get libdir but this time
without backslashes (and cmake doesn't fail -> webkit-efl builds fine)
$ pkg-config --libs-only-L --static cairo
-L/OE/shr-core/tmp/sysroots/nokia900{libdir}
if I add sysrootfix.patch from oe.dev it's still the same (not sure why
oe.dev returns nothing).

backslash to {libdir} is added by this commit
http://cgit.freedesktop.org/pkg-config/commit/?id=69a7eaa6763bb0920e2b539fffbad51348d94deb

and -L/OE/shr-core/tmp/sysroots/nokia900\{libdir\} is still returned by
latest upstream version 0.26

Upstream dropped support for legacy -config scripts and embedded glib
http://cgit.freedesktop.org/pkg-config/commit/?id=03bd4a55287cd9492c5fde6adb1ac81a37b75cce
http://cgit.freedesktop.org/pkg-config/commit/?id=99964eddb5935173fcedfc793e762d7dc7d01bba

which makes pkgconfig_0.26.bb much smaller, but also causes dependency
loop (at least for glib-2.0_git - 2.29.3 from meta-oe)

pkg-config-native -> glib-2.0-native -> python-argparse-native ->
python-setuptools-native -> python-native -> openssl-native -> 
pkg-config-native

So that's another issue we have to resolve somehow if it gets fixed
upstream and we would need to upgrade pkgconfig version. I'm not sure if
I'll find time to work on this in next few weeks, so feel free to take
it over..

Regards,

-- 
Martin 'JaMa' Jansa     jabber: martin.ja...@gmail.com

Attachment: pgpnd1lYl3JcG.pgp
Description: PGP signature

_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to