diff options
| author | Jingdong Lu <jingdong.lu@windriver.com> | 2011-05-24 13:57:57 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-02 14:55:56 +0100 |
| commit | 06a03d72113daf1031cf9f06e71243995de03f5f (patch) | |
| tree | 40d741521a0137bb41689edc6b4a8e2a56fbcf67 /meta/recipes-graphics/xorg-lib/libx11.inc | |
| parent | c0867a12462adcf5506eac3de0cd3bcaa652e451 (diff) | |
| download | poky-06a03d72113daf1031cf9f06e71243995de03f5f.tar.gz | |
libx11: fix libX11 keysyms to pass xts5 of lsb
Fixes bug: [YOCTO #1095]
Because of cross-compiling libx11 keysyms will cause Xts5 test of LSB fail.
libx11 use a tool named "makekey" which compiled as a native tool to generate
ks_tables.h. Because the size of "unsigned long" is different between 32-bit
and 64-bit, we should judge whether our target is 32-bit or 64-bit and tell
"makekey".
I add a patch to "makekeys_crosscompile.patch" to "src/utils/makekeys.c" in
order to deal with the different targets. If our target is 32-bit, we force
the variable its type is "unsigned long" to "uint32_t". So we can generate a
correct keysyms.
(From OE-Core rev: 0eea9ab2e9d6e9457f24aa63b3126666611c1c7b)
Signed-off-by: Jingdong Lu <jingdong.lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libx11.inc')
| -rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc index 030b0dbc5d..c156ce6dcb 100644 --- a/meta/recipes-graphics/xorg-lib/libx11.inc +++ b/meta/recipes-graphics/xorg-lib/libx11.inc | |||
| @@ -6,6 +6,8 @@ basic functions of the window system." | |||
| 6 | 6 | ||
| 7 | require xorg-lib-common.inc | 7 | require xorg-lib-common.inc |
| 8 | 8 | ||
| 9 | inherit siteinfo | ||
| 10 | |||
| 9 | PROVIDES = "virtual/libx11" | 11 | PROVIDES = "virtual/libx11" |
| 10 | 12 | ||
| 11 | XORG_PN = "libX11" | 13 | XORG_PN = "libX11" |
| @@ -22,7 +24,11 @@ do_compile() { | |||
| 22 | touch makekeys-makekeys.o | 24 | touch makekeys-makekeys.o |
| 23 | ( | 25 | ( |
| 24 | unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS | 26 | unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS |
| 25 | ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys | 27 | if [ "${SITEINFO_BITS}" == "64" ]; then |
| 28 | ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys | ||
| 29 | else | ||
| 30 | ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} -DUSE32 makekeys.c -o makekeys | ||
| 31 | fi | ||
| 26 | ) | 32 | ) |
| 27 | if [ "$?" != "0" ]; then | 33 | if [ "$?" != "0" ]; then |
| 28 | exit 1 | 34 | exit 1 |
