From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-bw0-f47.google.com ([209.85.214.47]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1P57Iz-0005ZW-AS for openembedded-devel@lists.openembedded.org; Mon, 11 Oct 2010 03:35:59 +0200 Received: by bwz9 with SMTP id 9so388257bwz.6 for ; Sun, 10 Oct 2010 18:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=R7JDrwGt6oNN0Lcrsr7mTtle/3TMuFIIo46t+WZdRCU=; b=f6/GU+U/6pDo1YTkZnqYfb1EFAq2d3n/yTISmGbHe6X2QEhq3/899BatzibYpr5Dqk kpwT8/cPAWrtYZxwj7duinF3J4kN3crX8mPkWtgks5tSH/h1C/GR4IsXZAnsfByDLHNY LXVvdbEllazfCCcUZavLfLp4u3/W+R4h0zWXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=EE43KrKZdv6zNbe0e8AZZX7WNZgKx9DVqC168W2l9Hp9D4vqvJFJ7S5ejEZUq/B/SX e7oEf8kywrg9LZsyJqPa66Mkvpp46g/aYiO02XFAZvILXumoH2AI7eangn8olO62gtQ0 50dxOAqnCmUjvOCbTpx8N1c/qQ7Q5T3oLESMc= Received: by 10.204.131.200 with SMTP id y8mr4514273bks.107.1286760932078; Sun, 10 Oct 2010 18:35:32 -0700 (PDT) Received: from smtp.googlemail.com ([93.216.238.58]) by mx.google.com with ESMTPS id q19sm2053805bkb.16.2010.10.10.18.35.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 10 Oct 2010 18:35:31 -0700 (PDT) Received: by smtp.googlemail.com (nbSMTP-1.00) for uid 1000 (using TLSv1/SSLv3 with cipher RC4-MD5 (128/128 bits)) frederik.sdun@googlemail.com; Mon, 11 Oct 2010 03:35:27 +0200 (CEST) Date: Mon, 11 Oct 2010 03:35:25 +0200 From: Frederik Sdun To: openembedded-devel@lists.openembedded.org Message-ID: <20101011013524.GB20158@thinky> References: <1286730309.3808.88.camel@mattotaupa> <1286732323.3808.111.camel@mattotaupa> <1286748988.3808.140.camel@mattotaupa> <20101010224731.GA20158@thinky> <1286751753.9764.4.camel@mattotaupa> MIME-Version: 1.0 In-Reply-To: <1286751753.9764.4.camel@mattotaupa> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: 209.85.214.47 X-SA-Exim-Mail-From: frederik.sdun@googlemail.com X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on discovery X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: Re: gobject-introspection: pkg-config does not pick correct paths (was: pkg-config does not honor `PKG_CONFIG_SYSROOT_DIR`) X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2010 01:36:00 -0000 X-Groupsio-MsgNum: 24634 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GID0FwUMdk1T2AWN" Content-Disposition: inline --GID0FwUMdk1T2AWN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Paul Menzel [11.10.2010 01:03]: > Am Montag, den 11.10.2010, 00:47 +0200 schrieb Frederik Sdun: > > * Paul Menzel [11.10.2010 00:17]: > > > Am Sonntag, den 10.10.2010, 11:11 -0700 schrieb Chris Larson: > > > > On Sun, Oct 10, 2010 at 10:38 AM, Paul Menzel wrote: > > > >=20 > > > > > Am Sonntag, den 10.10.2010, 10:09 -0700 schrieb Chris Larson: > > > > > > On Sun, Oct 10, 2010 at 10:05 AM, Paul Menzel wrote: > > >=20 > > > [=E2=80=A6] > > >=20 > > > > > Secondly I am having a similar problem with `gobject-introspectio= n` > > > > > where [1] > > > > > > > > > > gir/Makefile.am:GLIB_INCLUDEDIR=3D$(shell pkg-config --var= iable=3Dincludedir glib-2.0)/glib-2.0 > > > > > gir/Makefile.am:GLIB_LIBDIR=3D$(shell pkg-config --variabl= e=3Dlibdir glib-2.0) > > > > > > > > > > returns the wrong path. > > > > > > > > > > Making all in gir > > > > > make[2]: Entering directory > > > > > `/oe/build-minimal-libc/minimal-dev/work/armv7a-oe-linux-gnueabi/= gobject-introspection-0.9.12-r0/gobject-introspection-0.9.12/gir' > > > > > make[2]: *** No rule to make target > > > > > `/usr/lib/glib-2.0/include/glibconfig.h', needed by `GLib-2.0.gir= '. Stop. > > > > > make[2]: Leaving directory > > > > > `/oe/build-minimal-libc/minimal-dev/work/armv7a-oe-linux-gnueabi/= gobject-introspection-0.9.12-r0/gobject-introspection-0.9.12/gir' > > > > > make[1]: *** [all-recursive] Error 1 > > > >=20 > > > > /usr/{lib,include} paths are mangled by pkg-config using > > > > PKG_CONFIG_SYSROOT_DIR. If that's not happening here, that's a bug= that > > > > should be investigated, but I fail to see how setting PKG_CONFIG is= going to > > > > magically fix it. > > >=20 > > > Unfortunately I could not figure out, what is going on. My suspicion = is, > > > that the function `shell` of the Makefile does not honor the environm= ent > > > variables. > > >=20 > > > I tried to change the syntax to > > >=20 > > > GLIB_INCLUDEDIR :=3D `$(PKG_CONFIG) --variable=3Dincludedir g= lib-2.0`/glib-2.0 > > > GLIB_LIBDIR :=3D `$(PKG_CONFIG) --variable=3Dlibdir glib-2.0` > > >=20 > > > (`git grep PKG_CONFIG` to see that this is used in some places) or > > >=20 > > > GLIB_INCLUDEDIR=3D$(shell /oe/build-minimal-libc/minimal-dev/= sysroots/i686-linux/usr/bin/pkg-config --variable=3Dincludedir glib-2.0)/gl= ib-2.0 > > > GLIB_LIBDIR :=3D $(shell /oe/build-minimal-libc/minimal-dev/s= ysroots/i686-linux/usr/bin/pkgconfig --variable=3Dlibdir glib-2.0) > > >=20 > > > but although the second one worked on the command line, it did not wo= rk > > > and did not return any path at all. (I edited `Makefile` in `work` and > > > executed `run.do_compile.=E2=80=A6` manually.) > > >=20 > > > I also looked at the changes of pkg-config [1] after 0.23, but could = not > > > find anything applicable to this problem. >=20 > > > [1] http://cgit.freedesktop.org/pkg-config/tree/NEWS > > > > I think the problem is, that pkg-config --variable is used here, which > > doesn't expand the paths. > > I try to provide a patch, which make it possible to specify the sysroot > > and uses pkg-config --cflags-only-I for the flags >=20 > That is a good idea. But remember that the staged package config files > have the full path included already. >=20 > $ /oe/build-minimal-libc/minimal-dev/sysroots/i686-linux/usr/bin/= pkg-config --variable=3Dlibdir glib-2.0=20 > /oe/build-minimal-libc/minimal-dev/sysroots/i686-linux/usr/lib >=20 > or >=20 > $ PKG_CONFIG_DIR=3D"/home/paul/oe/build-minimal-libc/minimal-dev/= sysroots/armv7a-oe-linux-gnueabi/usr/lib/pkgconfig" ~/oe/build-minimal-libc= /minimal-dev/sysroots/i686-linux/usr/bin/pkg-config --variable=3Dlibdir gli= b-2.0 > /oe/build-minimal-libc/minimal-dev/sysroots/i686-linux/usr/lib >=20 >=20 > Thanks, >=20 > Paul I added some prints to dumper.py from gobject-introspection and it seems that pkg-config doesn't provide the correct -L flags, even if I specify --libs-only-L. Any ideas how to fix this? > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel --=20 IRC: playya @ Freenode, Gimpnet xmpp: playya@draugr.de identi.ca: playya --GID0FwUMdk1T2AWN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkyyadwACgkQvbwBzXsbjyrhNACfVCWXNZx0XhzaL7+81sWFc4fK Z80AoJpqOUyYrx0LJu4BxoHdV11G2z82 =7JPV -----END PGP SIGNATURE----- --GID0FwUMdk1T2AWN--