Skip to contentSkip to conversation

2011.02 pkg-config problems?

Buildroot Joe Woodward 3 participants 5 messages Mar 7, 2011 – Mar 10, 2011

lore
Share & tools
lore
#0 lore raw

Since moving from the 2010.11 release to the 2011.02 release I've had problems with some files destined for the target ending up in rather strange places.

For example, when doing a Xorg or TinyX build (with GTK/Pango/Cairo) the X fonts used to be place in:

{TARGET}/usr/share/fonts/X11/100dpi
{TARGET}/usr/share/fonts/X11/75dpi
{TARGET}/usr/share/fonts/X11/misc ...and so on

But now they end up in:

{TARGET}/home/MYBUILDUSERNAME/PATH/TO/BUILD/FOLDER/ON/HOST/MARCHINE/\
./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/\
./share/fonts/X11/100dpi ...and so on

Has any else experienced this?

I'm fairly certain its due to the bumping of pkg-config and tweaks to it's --sysroot patches.

Any ideas about what to do?

Cheers,
Joe

#1 lore raw

Some more information:

My build machine is running Ubuntu 10.04 (Lucid).

Also, attached is a config that shows the problem when built using a stock 2011.02 Buildroot.

Cheers,
Joe

-----Original Message-----
From: "Joe Woodward" <[email protected]>
To: buildroot at busybox.net
Date: Mon, 07 Mar 2011 12:14:09 +0000
Subject: [Buildroot] 2011.02 pkg-config problems?

Quoted 24 lines

Since moving from the 2010.11 release to the 2011.02 release I've had problems with some files destined for the target ending up in rather strange places.

For example, when doing a Xorg or TinyX build (with GTK/Pango/Cairo) the X fonts used to be place in:

{TARGET}/usr/share/fonts/X11/100dpi
{TARGET}/usr/share/fonts/X11/75dpi
{TARGET}/usr/share/fonts/X11/misc ...and so on

But now they end up in:

{TARGET}/home/MYBUILDUSERNAME/PATH/TO/BUILD/FOLDER/ON/HOST/MARCHINE/\
./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/\
./share/fonts/X11/100dpi ...and so on

Has any else experienced this?

I'm fairly certain its due to the bumping of pkg-config and tweaks to it's --sysroot patches.

Any ideas about what to do?

Quoted 8 lines

Cheers,
Joe

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testconfig
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110309/0c44821d/attachment-0001.ksh>

#2 lore raw
In reply to Joe Woodward
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Joe" == Joe Woodward <[email protected]> writes:

Hi,

Joe> {TARGET}/home/MYBUILDUSERNAME/PATH/TO/BUILD/FOLDER/ON/HOST/MARCHINE/\
Joe> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/\
Joe> ./share/fonts/X11/100dpi ...and so on

Joe> Has any else experienced this?

Joe> I'm fairly certain its due to the bumping of pkg-config and Joe> tweaks to it's --sysroot patches.

Joe> Any ideas about what to do?

Thanks for reporting this. The problem is that pkg-config doesn't have any explicit support for cross compilation, so we have to guess if a given variable refers to a target path or a host path. For this specific problem you could work around it by passing an explicit --with-fontrootdir=/usr/share/fonts/X11 to the configure step of the xfonts packages, but I have fixed pkg-config in git to only prepend the sysroot location when the includedir + libdir variables are requested, and not all variables like we did for 2011.02:

http://git.buildroot.net/buildroot/commit/?id=117a8ea0eaabe

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw
Quoted 10 lines · On Thu, 10 Mar 2011 12:17:43 +0100 Peter Korsgaard <[email protected]> wrote:

Thanks for reporting this. The problem is that pkg-config doesn't have any explicit support for cross compilation, so we have to guess if a given variable refers to a target path or a host path. For this specific problem you could work around it by passing an explicit --with-fontrootdir=/usr/share/fonts/X11 to the configure step of the xfonts packages, but I have fixed pkg-config in git to only prepend the sysroot location when the includedir + libdir variables are requested, and not all variables like we did for 2011.02:

http://git.buildroot.net/buildroot/commit/?id=117a8ea0eaabe

Maybe we need to release 2011.02.1 with this fix ?

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> On Thu, 10 Mar 2011 12:17:43 +0100

Quoted 10 lines · Thomas> Peter Korsgaard <[email protected]> wrote:
Quoted 10 lines

Thanks for reporting this. The problem is that pkg-config doesn't have any explicit support for cross compilation, so we have to guess if a given variable refers to a target path or a host path. For this specific problem you could work around it by passing an explicit --with-fontrootdir=/usr/share/fonts/X11 to the configure step of the xfonts packages, but I have fixed pkg-config in git to only prepend the sysroot location when the includedir + libdir variables are requested, and not all variables like we did for 2011.02:

http://git.buildroot.net/buildroot/commit/?id=117a8ea0eaabe

Thomas> Maybe we need to release 2011.02.1 with this fix ?

Possibly. Lets give it a few days and see if anything else shows up.

Signature · 1 line
Bye, Peter Korsgaard