[Bug 4500] New: xorg drivers and pkgconfig sdkdir
bugzilla-daemon at amethyst.openembedded.net
bugzilla-daemon at amethyst.openembedded.net
Fri Aug 15 14:47:02 UTC 2008
http://bugs.openembedded.net/show_bug.cgi?id=4500
Summary: xorg drivers and pkgconfig sdkdir
Classification: Unclassified
Product: Openembedded
Version: unspecified
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: org.openembedded.dev
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: kalev at smartlink.ee
Created an attachment (id=9912)
--> (http://bugs.openembedded.net/attachment.cgi?id=9912)
Patch against xorg-driver-common.inc to fix xorg include dir.
Several xorg drivers fail to build (for example vesa and via video drivers)
because their configure.ac contains
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
The xorg-server.pc in the target staging directory has paths relative to target
root:
sdkdir=/usr/include/xorg
The problem here is that if configure scripts use this variable, it won't point
to our staging directory, but instead to host machine's include dir.
Normally, if configure scripts use --libs or --cflags, then pkg-config mangles
those paths if PKG_CONFIG_SYSROOT_DIR variable is set. Unfortunately it doesn't
work for "pkg-config --variable", and configure fails with an error message
like this:
i586-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/xorg -I../src
-isystem/home/kalev/OpenEmbedded-uus/build/tmp/staging/i586-linux/usr/include
-isystem/home/kalev/OpenEmbedded-uus/build/tmp/staging/i586-linux/usr/include
-march=i486 -mtune=i586 -Os
-I/home/kalev/OpenEmbedded-uus/build/tmp/staging/i586-linux/usr/include/xorg
-I/home/kalev/OpenEmbedded-uus/build/tmp/staging/i586-linux/usr/include/pixman-1
-I../src -MT vesa.lo -MD -MP -MF .deps/vesa.Tpo -c vesa.c -fPIC -DPIC -o
.libs/vesa.o
CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/xorg
cc1: internal compiler error: in add_path, at c-incpath.c:371
I am not sure what is the best way to fix it. I see 3 options:
1) Just patch failing packages.
2) Ask in xorg devel lists to use "pkg-config --cflags" instead if "pkg-config
--variable=sdkdir".
3) Make pkg-config mangle this variable if PKG_CONFIG_SYSROOT_DIR is set.
Any thoughts?
Attached a patch against xorg-driver-common.inc, which uses sed to correct
include dirs in configure.ac.
--
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-issues
mailing list