diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-05-09 22:48:04 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-09 18:59:01 +0200 |
commit | ed97b153069566a50de242029447ab6169c45679 (patch) | |
tree | 2149c3c43f9f3b1327c55faff9f8e82cdabb0672 /meta-oe/recipes-graphics | |
parent | ba31e4eabd31af63eb0244096c8bcdcac185fac6 (diff) | |
download | meta-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.patch | 33 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.10.1.bb | 3 |
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 @@ | |||
1 | configury forces pkg-config to poke for sdkdir variable which | ||
2 | pkg-config happily returns but does not prepend sysroot to it | ||
3 | since thats only done for includes and libs. This then gets -I | ||
4 | prepended and added to CFLAGS. Guess what gcc cross gripes | ||
5 | about including host includes in cross builds but does not bail | ||
6 | out the build but it does not escape the wrath of our oe's | ||
7 | QA checks and rightly so. We replace use of sdkdir with | ||
8 | --cflags-only-I which returns the include paths correctly | ||
9 | pointing inside sysroot and not at the host includes and plus | ||
10 | includedir if you look inside the .pc file is assigned sdkdir | ||
11 | anyway so we do not lose anything | ||
12 | |||
13 | This m4 macro is included in other packages e.g. xf86-video-fbdev | ||
14 | which dont build on hosts which have installation of | ||
15 | xorg-xserver-dev because it gets this include poisoning | ||
16 | |||
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
18 | |||
19 | Upstream-status: Pending | ||
20 | |||
21 | Index: 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" | |||
7 | DESCRIPTION = "the X.Org X server" | 7 | DESCRIPTION = "the X.Org X server" |
8 | DEPENDS += "pixman libpciaccess openssl dri2proto glproto xorg-minimal-fonts font-util-native" | 8 | DEPENDS += "pixman libpciaccess openssl dri2proto glproto xorg-minimal-fonts font-util-native" |
9 | PE = "2" | 9 | PE = "2" |
10 | PR = "${INC_PR}.0" | 10 | PR = "${INC_PR}.1" |
11 | 11 | ||
12 | SRC_URI += " \ | 12 | SRC_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 | " |
16 | SRC_URI[md5sum] = "75f117c74f2ecaf9dd167f6a66ac98de" | 17 | SRC_URI[md5sum] = "75f117c74f2ecaf9dd167f6a66ac98de" |
17 | SRC_URI[sha256sum] = "143c7c3d7d4428352e1153dffa34fd64af391f72d30b2a03e911e54e36f00b5d" | 18 | SRC_URI[sha256sum] = "143c7c3d7d4428352e1153dffa34fd64af391f72d30b2a03e911e54e36f00b5d" |