summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-05-09 22:48:04 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-05-09 18:59:01 +0200
commited97b153069566a50de242029447ab6169c45679 (patch)
tree2149c3c43f9f3b1327c55faff9f8e82cdabb0672 /meta-oe/recipes-graphics
parentba31e4eabd31af63eb0244096c8bcdcac185fac6 (diff)
downloadmeta-openembedded-ed97b153069566a50de242029447ab6169c45679.tar.gz
xserver-xorg_1.10.1.bb: Replace use of --variable=sdkdir with --cflags-only-I
This fixes the build failures of xf86-video-fbdev on build systems which have xorg-xserver development packages installed. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-graphics')
-rw-r--r--meta-oe/recipes-graphics/xorg-xserver/xserver-xorg-1.10.1/replace-pkgconfig-sdkdir-poking.patch33
-rw-r--r--meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.10.1.bb3
2 files changed, 35 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg-1.10.1/replace-pkgconfig-sdkdir-poking.patch b/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg-1.10.1/replace-pkgconfig-sdkdir-poking.patch
new file mode 100644
index 000000000..3967c4c73
--- /dev/null
+++ b/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg-1.10.1/replace-pkgconfig-sdkdir-poking.patch
@@ -0,0 +1,33 @@
1configury forces pkg-config to poke for sdkdir variable which
2pkg-config happily returns but does not prepend sysroot to it
3since thats only done for includes and libs. This then gets -I
4prepended and added to CFLAGS. Guess what gcc cross gripes
5about including host includes in cross builds but does not bail
6out the build but it does not escape the wrath of our oe's
7QA checks and rightly so. We replace use of sdkdir with
8--cflags-only-I which returns the include paths correctly
9pointing inside sysroot and not at the host includes and plus
10includedir if you look inside the .pc file is assigned sdkdir
11anyway so we do not lose anything
12
13This m4 macro is included in other packages e.g. xf86-video-fbdev
14which dont build on hosts which have installation of
15xorg-xserver-dev because it gets this include poisoning
16
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18
19Upstream-status: Pending
20
21Index: xorg-server-1.10.1/xorg-server.m4
22===================================================================
23--- xorg-server-1.10.1.orig/xorg-server.m4
24+++ xorg-server-1.10.1/xorg-server.m4
25@@ -31,7 +31,7 @@ dnl
26 AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
27 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
28 SAVE_CFLAGS="$CFLAGS"
29- CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
30+ CFLAGS="$CFLAGS `$PKG_CONFIG --cflags-only-I xorg-server`"
31 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
32 #include "xorg-server.h"
33 #if !defined $1
diff --git a/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.10.1.bb b/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.10.1.bb
index 7cb7339af..91bf4767e 100644
--- a/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.10.1.bb
+++ b/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.10.1.bb
@@ -7,11 +7,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=74df27b6254cc88d2799b5f4f5949c00"
7DESCRIPTION = "the X.Org X server" 7DESCRIPTION = "the X.Org X server"
8DEPENDS += "pixman libpciaccess openssl dri2proto glproto xorg-minimal-fonts font-util-native" 8DEPENDS += "pixman libpciaccess openssl dri2proto glproto xorg-minimal-fonts font-util-native"
9PE = "2" 9PE = "2"
10PR = "${INC_PR}.0" 10PR = "${INC_PR}.1"
11 11
12SRC_URI += " \ 12SRC_URI += " \
13 file://hack-fbdev-ignore-return-mode.patch \ 13 file://hack-fbdev-ignore-return-mode.patch \
14 file://hack-assume-pixman-supports-overlapped-blt.patch \ 14 file://hack-assume-pixman-supports-overlapped-blt.patch \
15 file://replace-pkgconfig-sdkdir-poking.patch \
15 " 16 "
16SRC_URI[md5sum] = "75f117c74f2ecaf9dd167f6a66ac98de" 17SRC_URI[md5sum] = "75f117c74f2ecaf9dd167f6a66ac98de"
17SRC_URI[sha256sum] = "143c7c3d7d4428352e1153dffa34fd64af391f72d30b2a03e911e54e36f00b5d" 18SRC_URI[sha256sum] = "143c7c3d7d4428352e1153dffa34fd64af391f72d30b2a03e911e54e36f00b5d"