summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-graphics/xorg-lib
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib')
-rw-r--r--meta/recipes-graphics/xorg-lib/libapplewm_1.0.0.bb7
-rw-r--r--meta/recipes-graphics/xorg-lib/libdmx_1.1.0.bb11
-rw-r--r--meta/recipes-graphics/xorg-lib/libfontenc_1.0.5.bb12
-rw-r--r--meta/recipes-graphics/xorg-lib/libfs_1.0.1.bb8
-rw-r--r--meta/recipes-graphics/xorg-lib/libice_1.0.6.bb16
-rw-r--r--meta/recipes-graphics/xorg-lib/liblbxutil/mkg3states.patch63
-rw-r--r--meta/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb11
-rw-r--r--meta/recipes-graphics/xorg-lib/liboldx_1.0.1.bb6
-rw-r--r--meta/recipes-graphics/xorg-lib/libpciaccess_0.11.0.bb10
-rw-r--r--meta/recipes-graphics/xorg-lib/libsm_1.1.1.bb15
-rw-r--r--meta/recipes-graphics/xorg-lib/libwindowswm_1.0.0.bb6
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-1.3.4/include_fix.patch19
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-1.3.4/nodolt.patch10
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-1.3.4/x11_disable_makekeys.patch31
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-diet_1.3.bb17
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-diet_git.bb12
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-git/X18NCMSstubs.diff568
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-git/fix-disable-xlocale.diff14
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-git/fix-utf8-wrong-define.patch16
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-git/include_fix.patch23
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-git/nodolt.patch12
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-git/x11_disable_makekeys.patch28
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-git/xim.patch55
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-trim/include_fix.patch23
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-trim/nodolt.patch12
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-trim/x11_disable_makekeys.patch29
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb14
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11-trim_git.bb10
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11.inc34
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff528
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff14
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch16
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/include_fix.patch23
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/nodolt.patch12
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/x11_disable_makekeys.patch29
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/xim.patch55
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb18
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11_git.bb11
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11_git.inc11
-rw-r--r--meta/recipes-graphics/xorg-lib/libxau_1.0.5.bb16
-rw-r--r--meta/recipes-graphics/xorg-lib/libxaw_1.0.5.bb21
-rw-r--r--meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch27
-rw-r--r--meta/recipes-graphics/xorg-lib/libxcalibrate_git.bb19
-rw-r--r--meta/recipes-graphics/xorg-lib/libxcomposite/change-include-order.patch14
-rw-r--r--meta/recipes-graphics/xorg-lib/libxcomposite_0.4.1.bb16
-rw-r--r--meta/recipes-graphics/xorg-lib/libxcursor_1.1.10.bb13
-rw-r--r--meta/recipes-graphics/xorg-lib/libxdamage_1.1.2.bb14
-rw-r--r--meta/recipes-graphics/xorg-lib/libxdmcp_1.0.3.bb18
-rw-r--r--meta/recipes-graphics/xorg-lib/libxevie_1.0.2.bb8
-rw-r--r--meta/recipes-graphics/xorg-lib/libxext_1.1.2.bb16
-rw-r--r--meta/recipes-graphics/xorg-lib/libxext_git.bb14
-rw-r--r--meta/recipes-graphics/xorg-lib/libxfixes_4.0.4.bb15
-rw-r--r--meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch22
-rw-r--r--meta/recipes-graphics/xorg-lib/libxfont_1.4.2.bb18
-rw-r--r--meta/recipes-graphics/xorg-lib/libxfontcache_1.0.5.bb9
-rw-r--r--meta/recipes-graphics/xorg-lib/libxft_2.1.14.bb25
-rw-r--r--meta/recipes-graphics/xorg-lib/libxi_1.3.bb13
-rw-r--r--meta/recipes-graphics/xorg-lib/libxi_git.bb11
-rw-r--r--meta/recipes-graphics/xorg-lib/libxinerama_1.1.bb14
-rw-r--r--meta/recipes-graphics/xorg-lib/libxkbfile_1.0.6.bb13
-rw-r--r--meta/recipes-graphics/xorg-lib/libxkbui_1.0.2.bb8
-rw-r--r--meta/recipes-graphics/xorg-lib/libxmu_1.0.5.bb21
-rw-r--r--meta/recipes-graphics/xorg-lib/libxp_1.0.0.bb15
-rw-r--r--meta/recipes-graphics/xorg-lib/libxpm_3.5.7.bb13
-rw-r--r--meta/recipes-graphics/xorg-lib/libxprintapputil_1.0.1.bb8
-rw-r--r--meta/recipes-graphics/xorg-lib/libxprintutil_1.0.1.bb8
-rw-r--r--meta/recipes-graphics/xorg-lib/libxrandr_1.3.0.bb15
-rw-r--r--meta/recipes-graphics/xorg-lib/libxrender_0.9.5.bb15
-rw-r--r--meta/recipes-graphics/xorg-lib/libxres_1.0.4.bb13
-rw-r--r--meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.0.bb11
-rw-r--r--meta/recipes-graphics/xorg-lib/libxt_1.0.8.bb30
-rw-r--r--meta/recipes-graphics/xorg-lib/libxtrap_1.0.0.bb8
-rw-r--r--meta/recipes-graphics/xorg-lib/libxtst_1.1.0.bb14
-rw-r--r--meta/recipes-graphics/xorg-lib/libxv_1.0.5.bb12
-rw-r--r--meta/recipes-graphics/xorg-lib/libxvmc_1.0.5.bb14
-rw-r--r--meta/recipes-graphics/xorg-lib/libxxf86dga_1.1.1.bb10
-rw-r--r--meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.2.bb14
-rw-r--r--meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.0.bb13
-rw-r--r--meta/recipes-graphics/xorg-lib/pixman_0.18.2.bb15
-rw-r--r--meta/recipes-graphics/xorg-lib/xkeyboard-config_1.9.bb24
-rw-r--r--meta/recipes-graphics/xorg-lib/xorg-lib-common.inc16
-rw-r--r--meta/recipes-graphics/xorg-lib/xtrans/abstract_socket_fix.patch58
-rw-r--r--meta/recipes-graphics/xorg-lib/xtrans_1.2.5.bb15
83 files changed, 2515 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libapplewm_1.0.0.bb b/meta/recipes-graphics/xorg-lib/libapplewm_1.0.0.bb
new file mode 100644
index 0000000000..bc502fb505
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libapplewm_1.0.0.bb
@@ -0,0 +1,7 @@
1require xorg-lib-common.inc
2
3DEPENDS += "libxext applewmproto"
4PR = "r1"
5PE = "1"
6
7XORG_PN = "libAppleWM"
diff --git a/meta/recipes-graphics/xorg-lib/libdmx_1.1.0.bb b/meta/recipes-graphics/xorg-lib/libdmx_1.1.0.bb
new file mode 100644
index 0000000000..20523b894e
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libdmx_1.1.0.bb
@@ -0,0 +1,11 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 Distributed Multihead extension library"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94 \
7 file://src/dmx.c;endline=33;md5=79ff7aacf716dafea0d490316f998a11"
8
9DEPENDS += "libxext dmxproto"
10PR = "r1"
11PE = "1"
diff --git a/meta/recipes-graphics/xorg-lib/libfontenc_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libfontenc_1.0.5.bb
new file mode 100644
index 0000000000..dc7b62d02d
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libfontenc_1.0.5.bb
@@ -0,0 +1,12 @@
1DESCRIPTION = "X11 font encoding library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=96254c20ab81c63e65b26f0dbcd4a1c1"
7
8DEPENDS += "zlib xproto"
9PR = "r0"
10PE = "1"
11
12BBCLASSEXTEND = "native"
diff --git a/meta/recipes-graphics/xorg-lib/libfs_1.0.1.bb b/meta/recipes-graphics/xorg-lib/libfs_1.0.1.bb
new file mode 100644
index 0000000000..010aa311e0
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libfs_1.0.1.bb
@@ -0,0 +1,8 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 Font Services library"
4DEPENDS += "xproto fontsproto xtrans"
5PR = "r1"
6PE = "1"
7
8XORG_PN = "libFS"
diff --git a/meta/recipes-graphics/xorg-lib/libice_1.0.6.bb b/meta/recipes-graphics/xorg-lib/libice_1.0.6.bb
new file mode 100644
index 0000000000..ec3ad136a0
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libice_1.0.6.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "X11 Inter-Client Exchange library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d162b1b3c6fa812da9d804dcf8584a93"
7
8DEPENDS += "xproto xtrans"
9PROVIDES = "ice"
10
11PR = "r0"
12PE = "1"
13
14XORG_PN = "libICE"
15
16BBCLASSEXTEND = "native"
diff --git a/meta/recipes-graphics/xorg-lib/liblbxutil/mkg3states.patch b/meta/recipes-graphics/xorg-lib/liblbxutil/mkg3states.patch
new file mode 100644
index 0000000000..029d761d95
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/liblbxutil/mkg3states.patch
@@ -0,0 +1,63 @@
1During the build process the mkg3states binary needs to be run. This patch
2allows it to be built with the build systems gcc allowing this to work.
3
4RP 31/3/10
5
6Index: liblbxutil-1.1.0/configure.ac
7===================================================================
8--- liblbxutil-1.1.0.orig/configure.ac 2009-12-04 22:52:04.000000000 +0000
9+++ liblbxutil-1.1.0/configure.ac 2010-03-31 15:26:33.000000000 +0100
10@@ -50,4 +50,5 @@
11
12 AC_OUTPUT([Makefile
13 src/Makefile
14+ src/image/Makefile
15 lbxutil.pc])
16Index: liblbxutil-1.1.0/src/Makefile.am
17===================================================================
18--- liblbxutil-1.1.0.orig/src/Makefile.am 2009-12-04 23:03:17.000000000 +0000
19+++ liblbxutil-1.1.0/src/Makefile.am 2010-03-31 15:27:25.000000000 +0100
20@@ -3,10 +3,7 @@
21 AM_CFLAGS = $(CWARNFLAGS) $(LBXUTIL_CFLAGS)
22 INCLUDES = -I$(top_srcdir)/include
23
24-noinst_PROGRAMS = mkg3states
25-
26-mkg3states_SOURCES = \
27- $(srcdir)/image/mkg3states.c
28+SUBDIRS = image
29
30 liblbxutil_la_SOURCES = \
31 $(srcdir)/lbx_zlib/reqstats.h \
32@@ -38,9 +35,8 @@
33
34 $(srcdir)/image/dfaxg42d.c: g3states.h
35
36-g3states.h: mkg3states
37- -rm -f g3states.h
38- $(AM_V_GEN) ./mkg3states -c > g3states.h_ && mv g3states.h_ g3states.h
39+g3states.h: image/mkg3states
40+ ./image/mkg3states -c > g3states.h_ && mv g3states.h_ g3states.h
41
42 liblbxutil_la_LDFLAGS = -version-number 1:0:0 -no-undefined
43
44Index: liblbxutil-1.1.0/src/image/Makefile.am
45===================================================================
46--- /dev/null 1970-01-01 00:00:00.000000000 +0000
47+++ liblbxutil-1.1.0/src/image/Makefile.am 2010-03-31 15:26:33.000000000 +0100
48@@ -0,0 +1,15 @@
49+# evil hack
50+CFLAGS=$(CFLAGS_FOR_BUILD)
51+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
52+LDFLAGS=$(LDFLAGS_FOR_BUILD)
53+
54+CC=$(CC_FOR_BUILD)
55+LIBTOOL = @LIBTOOL@ --tag=CC
56+
57+noinst_PROGRAMS = mkg3states
58+
59+mkg3states_SOURCES = \
60+ mkg3states.c
61+
62+mkg3states_CFLAGS=$(CFLAGS_FOR_BUILD)
63+mkg3states_LDFLAGS=$(LDFLAGS_FOR_BUILD)
diff --git a/meta/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb b/meta/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb
new file mode 100644
index 0000000000..cdf3509246
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb
@@ -0,0 +1,11 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "XFIXES Extension"
4DEPENDS += " libxext xextproto xproto zlib"
5PROVIDES = "lbxutil"
6PE = "1"
7PR = "r1"
8
9SRC_URI += "file://mkg3states.patch;patch=1"
10
11export CC_FOR_BUILD = "gcc"
diff --git a/meta/recipes-graphics/xorg-lib/liboldx_1.0.1.bb b/meta/recipes-graphics/xorg-lib/liboldx_1.0.1.bb
new file mode 100644
index 0000000000..84470cbc78
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/liboldx_1.0.1.bb
@@ -0,0 +1,6 @@
1require xorg-lib-common.inc
2
3DEPENDS += " virtual/libx11"
4PE = "1"
5
6XORG_PN = "liboldX"
diff --git a/meta/recipes-graphics/xorg-lib/libpciaccess_0.11.0.bb b/meta/recipes-graphics/xorg-lib/libpciaccess_0.11.0.bb
new file mode 100644
index 0000000000..b4032c0a10
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libpciaccess_0.11.0.bb
@@ -0,0 +1,10 @@
1DESCRIPTION = "Generic PCI access library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT & MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=ad1647740bccb2315e6f6368dce05c6d"
7
8PR = "r0"
9
10DEPENDS += "xproto virtual/libx11"
diff --git a/meta/recipes-graphics/xorg-lib/libsm_1.1.1.bb b/meta/recipes-graphics/xorg-lib/libsm_1.1.1.bb
new file mode 100644
index 0000000000..0ec38c5aa9
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libsm_1.1.1.bb
@@ -0,0 +1,15 @@
1DESCRIPTION = "X11 Session management library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=451a87de5b38d25ec6b96d548087934d"
7
8DEPENDS += "libice xproto xtrans e2fsprogs"
9
10PR = "r0"
11PE = "1"
12
13XORG_PN = "libSM"
14
15BBCLASSEXTEND = "native"
diff --git a/meta/recipes-graphics/xorg-lib/libwindowswm_1.0.0.bb b/meta/recipes-graphics/xorg-lib/libwindowswm_1.0.0.bb
new file mode 100644
index 0000000000..a03d49505b
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libwindowswm_1.0.0.bb
@@ -0,0 +1,6 @@
1require xorg-lib-common.inc
2
3DEPENDS += "libxext windowswmproto"
4PE = "1"
5
6XORG_PN = "libWindowsWM"
diff --git a/meta/recipes-graphics/xorg-lib/libx11-1.3.4/include_fix.patch b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/include_fix.patch
new file mode 100644
index 0000000000..c8aa08595d
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/include_fix.patch
@@ -0,0 +1,19 @@
1---
2 configure.ac | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5--- libX11-1.3.4.orig/configure.ac
6+++ libX11-1.3.4/configure.ac
7@@ -353,9 +353,9 @@
8 #
9 # Find keysymdef.h
10 #
11-AC_MSG_CHECKING([keysymdef.h])
12-dir=`$PKG_CONFIG --variable=includedir xproto`
13-KEYSYMDEF="$dir/X11/keysymdef.h"
14+AC_ARG_WITH(keysymdef,
15+ AC_HELP_STRING([--with-keysymdef=DIR/keysymdef.h], [The location of keysymdef.h]),
16+ KEYSYMDEF=$withval, KEYSYMDEF="")
17 if test -f "$KEYSYMDEF"; then
18 AC_MSG_RESULT([$KEYSYMDEF])
19 else
diff --git a/meta/recipes-graphics/xorg-lib/libx11-1.3.4/nodolt.patch b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/nodolt.patch
new file mode 100644
index 0000000000..011c23e8d8
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/nodolt.patch
@@ -0,0 +1,10 @@
1--- libX11-1.3.4.orig/configure.ac
2+++ libX11-1.3.4/configure.ac
3@@ -32,7 +32,6 @@
4
5 # Checks for programs.
6 AC_PROG_LIBTOOL
7-DOLT
8 AC_PROG_CC
9 PKG_PROG_PKG_CONFIG
10
diff --git a/meta/recipes-graphics/xorg-lib/libx11-1.3.4/x11_disable_makekeys.patch b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/x11_disable_makekeys.patch
new file mode 100644
index 0000000000..4036757e54
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/x11_disable_makekeys.patch
@@ -0,0 +1,31 @@
1---
2 src/util/Makefile.am | 21 -----------------
3 1 file changed, 21 deletions(-)
4
5--- libX11-1.3.4.orig/src/util/Makefile.am
6+++ libX11-1.3.4/src/util/Makefile.am
7@@ -1,24 +1,3 @@
8
9-noinst_PROGRAMS=makekeys
10-
11-makekeys_CFLAGS = \
12- $(X11_CFLAGS) \
13- $(CWARNFLAGS)
14-
15-CC = @CC_FOR_BUILD@
16-CPPFLAGS = @CPPFLAGS_FOR_BUILD@
17-CFLAGS = @CFLAGS_FOR_BUILD@
18-LDFLAGS = @LDFLAGS_FOR_BUILD@
19-
20 EXTRA_DIST = mkks.sh
21
22-if LINT
23-# Check source code with tools like lint & sparse
24-
25-ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
26- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
27-
28-lint:
29- $(LINT) $(ALL_LINT_FLAGS) makekeys.c
30-
31-endif LINT
diff --git a/meta/recipes-graphics/xorg-lib/libx11-diet_1.3.bb b/meta/recipes-graphics/xorg-lib/libx11-diet_1.3.bb
new file mode 100644
index 0000000000..a76aba16e4
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-diet_1.3.bb
@@ -0,0 +1,17 @@
1require libx11.inc
2
3PR = "r1"
4
5SRC_URI += "file://x11_disable_makekeys.patch;patch=1 \
6 file://include_fix.patch;patch=1 \
7 file://X18NCMSstubs.diff;patch=1 \
8 file://fix-disable-xlocale.diff;patch=1 \
9 file://fix-utf8-wrong-define.patch;patch=1"
10
11DEPENDS += "bigreqsproto xproto xextproto xtrans libxau xcmiscproto \
12 libxdmcp xf86bigfontproto kbproto inputproto xproto-native"
13
14FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libx11"
15
16EXTRA_OECONF += "--without-xcb --disable-udc --disable-xcms --disable-xlocale"
17CFLAGS += "-D_GNU_SOURCE"
diff --git a/meta/recipes-graphics/xorg-lib/libx11-diet_git.bb b/meta/recipes-graphics/xorg-lib/libx11-diet_git.bb
new file mode 100644
index 0000000000..d1f0a753fa
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-diet_git.bb
@@ -0,0 +1,12 @@
1require libx11.inc
2require libx11_git.inc
3
4SRC_URI += "file://X18NCMSstubs.diff;patch=1 \
5 file://fix-disable-xlocale.diff;patch=1 \
6 file://fix-utf8-wrong-define.patch;patch=1"
7
8DEPENDS += "bigreqsproto xproto xextproto xtrans libxau xcmiscproto \
9 libxdmcp xf86bigfontproto kbproto inputproto xproto-native"
10
11EXTRA_OECONF += "--without-xcb --disable-udc --disable-xcms --disable-xlocale"
12CFLAGS += "-D_GNU_SOURCE"
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/X18NCMSstubs.diff b/meta/recipes-graphics/xorg-lib/libx11-git/X18NCMSstubs.diff
new file mode 100644
index 0000000000..2dd27fc94f
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-git/X18NCMSstubs.diff
@@ -0,0 +1,568 @@
1---
2 configure.ac | 9 -
3 src/Makefile.am | 5
4 src/X18NCMSstubs.c | 428 +++++++++++++++++++++++++++++++++++++++++++++++++++++
5 src/imConv.c | 4
6 src/locking.c | 4
7 5 files changed, 448 insertions(+), 2 deletions(-)
8
9--- git.orig/configure.ac
10+++ git/configure.ac
11@@ -263,11 +263,18 @@ if test -f "$KEYSYMDEF"; then
12 else
13 AC_MSG_ERROR([Cannot find keysymdef.h])
14 fi
15 AC_SUBST(KEYSYMDEF)
16
17-AM_CONDITIONAL(UDC, test xfalse = xtrue)
18+AC_ARG_ENABLE(udc,
19+ AC_HELP_STRING([--disable-udc],
20+ [Disable Xlib support for UDC *EXPERIMENTAL*]),
21+ [UDC=$enableval],[UDC=yes])
22+AM_CONDITIONAL(UDC, [test x$UDC = xyes ])
23+if test x"$UDC" = "xyes"; then
24+ AC_DEFINE(UDC,1,[Include support for UDC])
25+fi
26
27 AC_ARG_ENABLE(xcms,
28 AC_HELP_STRING([--disable-xcms],
29 [Disable Xlib support for CMS *EXPERIMENTAL*]),
30 [XCMS=$enableval],[XCMS=yes])
31--- git.orig/src/Makefile.am
32+++ git/src/Makefile.am
33@@ -329,18 +329,21 @@ endif
34
35 if THRSTUBS
36 libX11_la_SOURCES+=UIThrStubs.c
37 endif
38
39+libX11_la_SOURCES+=X18NCMSstubs.c
40+
41 x11datadir = @X11_DATADIR@
42 x11data_DATA = XKeysymDB XErrorDB
43
44 EXTRA_DIST = \
45 $(x11data_DATA) \
46 os2Stubs.c \
47 udcInf.c \
48- UIThrStubs.c
49+ UIThrStubs.c \
50+ X18NCMSstubs.c
51
52 if XCB
53 libX11_la_SOURCES += \
54 xcb_lock.c \
55 xcb_disp.c \
56--- /dev/null
57+++ git/src/X18NCMSstubs.c
58@@ -0,0 +1,428 @@
59+/*
60+ * X18NCMSstubs.c
61+ * - Provides stubs and dummy funcs needed when Xcms and XLocale stuff removed
62+ *
63+ * Copyright © 2003 Matthew Allum
64+ *
65+ * Permission to use, copy, modify, distribute, and sell this software and its
66+ * documentation for any purpose is hereby granted without fee, provided that
67+ * the above copyright notice appear in all copies and that both that
68+ * copyright notice and this permission notice appear in supporting
69+ * documentation, and that the name of Matthew Allum not be used in
70+ * advertising or publicity pertaining to distribution of the software without
71+ * specific, written prior permission. Keith Packard and Compaq makes no
72+ * representations about the suitability of this software for any purpose. It
73+ * is provided "as is" without express or implied warranty.
74+ *
75+ * MATTHEW ALLUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
76+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
77+ * IN NO EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
78+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
79+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
80+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
81+ * PERFORMANCE OF THIS SOFTWARE.
82+ */
83+
84+#include <stdlib.h>
85+#include "Xlibint.h"
86+#include "Xlcint.h"
87+#include <X11/Xlocale.h>
88+#include <X11/Xos.h>
89+#ifdef WIN32
90+#undef close
91+#endif
92+#include <X11/Xutil.h>
93+#include "XlcPubI.h"
94+
95+#include "Xcmsint.h" /* for XcmsCCC type */
96+#include "XlcPubI.h" /* for XLCd type */
97+#include "config.h"
98+
99+#if ! XLOCALE
100+
101+Bool
102+XSupportsLocale()
103+{
104+ return False;
105+}
106+
107+char *
108+XSetLocaleModifiers(
109+ const char *modifiers)
110+{
111+ return NULL;
112+}
113+
114+XLCd
115+_XOpenLC(
116+ char *name)
117+{
118+ return NULL;
119+}
120+
121+XLCd
122+_XlcCurrentLC()
123+{
124+ return NULL;
125+}
126+
127+void
128+_XlcVaToArgList(
129+ va_list var,
130+ int count,
131+ XlcArgList *args_ret)
132+{
133+ return;
134+}
135+
136+void
137+_XlcCountVaList(
138+ va_list var,
139+ int *count_ret)
140+{
141+ return;
142+}
143+
144+void
145+_XCloseLC(
146+ XLCd lcd)
147+{
148+ return;
149+}
150+
151+int
152+_XlcConvert(
153+ XlcConv conv,
154+ XPointer *from,
155+ int *from_left,
156+ XPointer *to,
157+ int *to_left,
158+ XPointer *args,
159+ int num_args)
160+{
161+ return 0;
162+}
163+
164+/* XIM Stubs */
165+
166+XPointer
167+_XimGetLocaleCode ( _Xconst char* encoding_name )
168+{
169+ return NULL;
170+}
171+
172+int
173+_XimGetCharCode (
174+ XPointer ucs_conv,
175+ KeySym keysym,
176+ unsigned char* buf,
177+ int nbytes)
178+{
179+ return 0;
180+}
181+
182+/* Xrm Stubs */
183+
184+XrmMethods
185+_XrmInitParseInfo(
186+ XPointer *state)
187+{
188+ return (XrmMethods) NULL;
189+}
190+
191+/* Xwc Stubs */
192+
193+int
194+XwcTextExtents(
195+ XFontSet font_set,
196+ _Xconst wchar_t *text,
197+ int text_len,
198+ XRectangle *overall_ink_extents,
199+ XRectangle *overall_logical_extents)
200+{
201+ return 0;
202+}
203+
204+void
205+XwcDrawString(Display *display,
206+ Drawable d,
207+ XFontSet font_set,
208+ GC gc,
209+ int x, int y,
210+ _Xconst wchar_t *string,
211+ int num_wchars)
212+{
213+ ;
214+}
215+
216+void
217+XwcDrawText(
218+ Display *dpy,
219+ Drawable d,
220+ GC gc,
221+ int x,
222+ int y,
223+ XwcTextItem *text_items,
224+ int nitems)
225+{
226+ ;
227+}
228+
229+void
230+XwcDrawImageString(
231+ Display *dpy,
232+ Drawable d,
233+ XFontSet font_set,
234+ GC gc,
235+ int x,
236+ int y,
237+ _Xconst wchar_t *text,
238+ int text_len)
239+{
240+ ;
241+}
242+
243+int
244+XwcTextEscapement(
245+ XFontSet font_set,
246+ _Xconst wchar_t *text,
247+ int text_len)
248+{
249+ return 0;
250+}
251+
252+Status
253+XwcTextPerCharExtents(
254+ XFontSet font_set,
255+ _Xconst wchar_t *text,
256+ int text_len,
257+ XRectangle *ink_extents_buffer,
258+ XRectangle *logical_extents_buffer,
259+ int buffer_size,
260+ int *num_chars,
261+ XRectangle *max_ink_extents,
262+ XRectangle *max_logical_extents)
263+{
264+ ;
265+}
266+
267+int
268+XwcTextPropertyToTextList(
269+ Display *dpy,
270+ const XTextProperty *text_prop,
271+ wchar_t ***list_ret,
272+ int *count_ret)
273+{
274+ return 0;
275+}
276+
277+int
278+XwcTextListToTextProperty(
279+ Display *dpy,
280+ wchar_t **list,
281+ int count,
282+ XICCEncodingStyle style,
283+ XTextProperty *text_prop)
284+{
285+ return 0;
286+}
287+
288+void
289+XwcFreeStringList(wchar_t **list)
290+{
291+ return;
292+}
293+
294+
295+void XmbSetWMProperties ( /* Actually from mbWMProps.c */
296+ Display *dpy,
297+ Window w,
298+ _Xconst char *windowName,
299+ _Xconst char *iconName,
300+ char **argv,
301+ int argc,
302+ XSizeHints *sizeHints,
303+ XWMHints *wmHints,
304+ XClassHint *classHints)
305+{
306+ return;
307+}
308+
309+int
310+XmbTextPropertyToTextList(
311+ Display *dpy,
312+ const XTextProperty *text_prop,
313+ char ***list_ret,
314+ int *count_ret)
315+{
316+ return XLocaleNotSupported;
317+}
318+
319+int
320+XmbTextListToTextProperty(
321+ Display *dpy,
322+ char **list,
323+ int count,
324+ XICCEncodingStyle style,
325+ XTextProperty *text_prop)
326+{
327+ return XLocaleNotSupported;
328+}
329+
330+int
331+XmbTextExtents(
332+ XFontSet font_set,
333+ _Xconst char *text,
334+ int text_len,
335+ XRectangle *overall_ink_extents,
336+ XRectangle *overall_logical_extents)
337+{
338+ return 0;
339+}
340+
341+void
342+XmbDrawText(
343+ Display *dpy,
344+ Drawable d,
345+ GC gc,
346+ int x,
347+ int y,
348+ XmbTextItem *text_items,
349+ int nitems)
350+{
351+ ;
352+}
353+
354+void
355+XmbDrawString(
356+ Display *dpy,
357+ Drawable d,
358+ XFontSet font_set,
359+ GC gc,
360+ int x,
361+ int y,
362+ _Xconst char *text,
363+ int text_len)
364+{
365+ ;
366+}
367+
368+void
369+XmbDrawImageString(
370+ Display *dpy,
371+ Drawable d,
372+ XFontSet font_set,
373+ GC gc,
374+ int x,
375+ int y,
376+ _Xconst char *text,
377+ int text_len)
378+{
379+ ;
380+}
381+
382+int
383+XmbTextEscapement(
384+ XFontSet font_set,
385+ _Xconst char *text,
386+ int text_len)
387+{
388+ return 0;
389+}
390+
391+Status
392+XmbTextPerCharExtents(
393+ XFontSet font_set,
394+ _Xconst char *text,
395+ int text_len,
396+ XRectangle *ink_extents_buffer,
397+ XRectangle *logical_extents_buffer,
398+ int buffer_size,
399+ int *num_chars,
400+ XRectangle *max_ink_extents,
401+ XRectangle *max_logical_extents)
402+{
403+ return 0;
404+}
405+
406+unsigned int
407+KeySymToUcs4(KeySym keysym)
408+{
409+ return 0;
410+}
411+
412+#endif
413+
414+#if ! XCMS
415+
416+XcmsCCC
417+XcmsCCCOfColormap(dpy, cmap)
418+ Display *dpy;
419+ Colormap cmap;
420+{
421+ return NULL;
422+}
423+
424+Status
425+_XcmsResolveColorString (
426+ XcmsCCC ccc,
427+ const char **color_string,
428+ XcmsColor *pColor_exact_return,
429+ XcmsColorFormat result_format)
430+{
431+ return(XcmsFailure);
432+}
433+
434+void
435+_XcmsUnresolveColor(
436+ XcmsCCC ccc,
437+ XcmsColor *pColor)
438+{
439+ return;
440+}
441+
442+void
443+_XUnresolveColor(
444+ XcmsCCC ccc,
445+ XColor *pXColor)
446+{
447+ return;
448+}
449+
450+XcmsCmapRec *
451+_XcmsAddCmapRec(dpy, cmap, windowID, visual)
452+ Display *dpy;
453+ Colormap cmap;
454+ Window windowID;
455+ Visual *visual;
456+{
457+ return NULL;
458+}
459+
460+void
461+_XcmsRGB_to_XColor(
462+ XcmsColor *pColors,
463+ XColor *pXColors,
464+ unsigned int nColors)
465+{
466+ return;
467+}
468+
469+XcmsCmapRec *
470+_XcmsCopyCmapRecAndFree(
471+ Display *dpy,
472+ Colormap src_cmap,
473+ Colormap copy_cmap)
474+{
475+ return NULL;
476+}
477+
478+void
479+_XcmsDeleteCmapRec(
480+ Display *dpy,
481+ Colormap cmap)
482+{
483+ return;
484+}
485+
486+#endif
487--- git.orig/src/imConv.c
488+++ git/src/imConv.c
489@@ -81,10 +81,11 @@ static const struct SubstRec SubstTable[
490 /*
491 * Given the name of a charset, returns the pointer to convertors
492 * from UCS char to specified charset char.
493 * This converter is needed for _XimGetCharCode subroutine.
494 */
495+#ifdef XLOCALE
496 XPointer
497 _XimGetLocaleCode (
498 _Xconst char* encoding_name)
499 {
500 XPointer cvt = _Utf8GetConvByName(encoding_name);
501@@ -94,10 +95,11 @@ _XimGetLocaleCode (
502 if (!strcmp(encoding_name, SubstTable[i].encoding_name))
503 return _Utf8GetConvByName(SubstTable[i].charset_name);
504 }
505 return cvt;
506 }
507+#endif
508
509 /*
510 * Returns the locale dependent representation of a keysym.
511 * The locale's encoding is passed in form of pointer to UCS convertor.
512 * The resulting multi-byte sequence is placed starting at buf (a buffer
513@@ -105,10 +107,11 @@ _XimGetLocaleCode (
514 * Returns the length of the resulting multi-byte sequence, excluding the
515 * terminating NUL byte. Return 0 if the keysym is not representable in the
516 * locale
517 */
518 /*ARGSUSED*/
519+#ifdef XLOCALE
520 int
521 _XimGetCharCode (
522 XPointer ucs_conv,
523 KeySym keysym,
524 unsigned char* buf,
525@@ -133,10 +136,11 @@ _XimGetCharCode (
526 return nbytes;
527 if (count<nbytes)
528 buf[count]= '\0';
529 return count;
530 }
531+#endif
532
533 #ifdef XKB
534 static int lookup_string(
535 XKeyEvent* event,
536 char* buffer,
537--- git.orig/src/locking.c
538+++ git/src/locking.c
539@@ -53,11 +53,13 @@ in this Software without prior written a
540 #endif
541
542 #define NUM_FREE_CVLS 4
543
544 /* in lcWrap.c */
545+#ifdef XLOCALE
546 extern LockInfoPtr _Xi18n_lock;
547+#endif
548
549 #ifdef WIN32
550 static DWORD _X_TlsIndex = (DWORD)-1;
551
552 void _Xthread_init()
553@@ -623,13 +625,15 @@ Status XInitThreads()
554 return 0;
555 }
556 _Xglobal_lock = &global_lock;
557 xmutex_init(_Xglobal_lock->lock);
558 xmutex_set_name(_Xglobal_lock->lock, "Xlib global");
559+#ifdef XLOCALE
560 _Xi18n_lock = &i18n_lock;
561 xmutex_init(_Xi18n_lock->lock);
562 xmutex_set_name(_Xi18n_lock->lock, "Xlib i18n");
563+#endif
564 _XLockMutex_fn = _XLockMutex;
565 _XUnlockMutex_fn = _XUnlockMutex;
566 _XCreateMutex_fn = _XCreateMutex;
567 _XFreeMutex_fn = _XFreeMutex;
568 _XInitDisplayLock_fn = _XInitDisplayLock;
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/fix-disable-xlocale.diff b/meta/recipes-graphics/xorg-lib/libx11-git/fix-disable-xlocale.diff
new file mode 100644
index 0000000000..9dbf6dac68
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-git/fix-disable-xlocale.diff
@@ -0,0 +1,14 @@
1--- libX11-X11R7.0-1.0.0/src/Font.c.orig 2006-03-12 18:35:42.000000000 +0100
2+++ libX11-X11R7.0-1.0.0/src/Font.c 2006-03-12 18:40:27.000000000 +0100
3@@ -701,7 +701,11 @@
4 }
5 if (l - 2 - (p - charset) < 0)
6 return 0;
7+#ifdef XLOCALE
8 if (_XlcNCompareISOLatin1(name + l - 2 - (p - charset), charset, p - charset))
9+#else
10+ if (strncasecmp(name + l - 2 - (p - charset), charset, p - charset))
11+#endif
12 return 0;
13 if (strlen(p + 1) + l - 1 >= sizeof(buf) - 1)
14 return 0;
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/fix-utf8-wrong-define.patch b/meta/recipes-graphics/xorg-lib/libx11-git/fix-utf8-wrong-define.patch
new file mode 100644
index 0000000000..a098db1941
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-git/fix-utf8-wrong-define.patch
@@ -0,0 +1,16 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6--- libX11-X11R7.0-1.0.0/include/X11/Xlib.h~fix-utf8-wrong-define
7+++ libX11-X11R7.0-1.0.0/include/X11/Xlib.h
8@@ -103,7 +103,7 @@
9
10 /* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
11 November 2000. Its presence is indicated through the following macro. */
12-#define X_HAVE_UTF8_STRING 1
13+#undef X_HAVE_UTF8_STRING
14
15 typedef char *XPointer;
16
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/include_fix.patch b/meta/recipes-graphics/xorg-lib/libx11-git/include_fix.patch
new file mode 100644
index 0000000000..99ed57194e
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-git/include_fix.patch
@@ -0,0 +1,23 @@
1---
2 configure.ac | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5--- libX11-1.1.5.orig/configure.ac
6+++ libX11-1.1.5/configure.ac
7@@ -218,13 +218,13 @@ AC_SUBST(XDMCP_LIBS)
8 AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], )
9
10 #
11 # Find keysymdef.h
12 #
13-AC_MSG_CHECKING([keysymdef.h])
14-dir=`pkg-config --variable=includedir xproto`
15-KEYSYMDEF="$dir/X11/keysymdef.h"
16+AC_ARG_WITH(keysymdef,
17+ AC_HELP_STRING([--with-keysymdef=DIR/keysymdef.h], [The location of keysymdef.h]),
18+ KEYSYMDEF=$withval, KEYSYMDEF="")
19 if test -f "$KEYSYMDEF"; then
20 AC_MSG_RESULT([$KEYSYMDEF])
21 else
22 AC_MSG_ERROR([Cannot find keysymdef.h])
23 fi
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/nodolt.patch b/meta/recipes-graphics/xorg-lib/libx11-git/nodolt.patch
new file mode 100644
index 0000000000..ecf9625cad
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-git/nodolt.patch
@@ -0,0 +1,12 @@
1Index: libX11-1.2.1/configure.ac
2===================================================================
3--- libX11-1.2.1.orig/configure.ac 2009-07-02 14:07:54.000000000 +0100
4+++ libX11-1.2.1/configure.ac 2009-07-02 14:08:01.000000000 +0100
5@@ -20,7 +20,6 @@
6
7 # Checks for programs.
8 AC_PROG_LIBTOOL
9-DOLT
10 AC_PROG_CC
11 XORG_CWARNFLAGS
12
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/x11_disable_makekeys.patch b/meta/recipes-graphics/xorg-lib/libx11-git/x11_disable_makekeys.patch
new file mode 100644
index 0000000000..9cc2bbbbdd
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-git/x11_disable_makekeys.patch
@@ -0,0 +1,28 @@
1---
2 src/util/Makefile.am | 17 -----------------
3 1 file changed, 17 deletions(-)
4
5Index: git/src/util/Makefile.am
6===================================================================
7--- git.orig/src/util/Makefile.am 2010-01-28 22:24:29.000000000 +0000
8+++ git/src/util/Makefile.am 2010-01-28 22:29:26.000000000 +0000
9@@ -1,19 +1,2 @@
10
11-noinst_PROGRAMS=makekeys
12
13-makekeys_CFLAGS=$(X11_CFLAGS)
14-
15-CC = @CC_FOR_BUILD@
16-
17-EXTRA_DIST = mkks.sh
18-
19-if LINT
20-# Check source code with tools like lint & sparse
21-
22-ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
23- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
24-
25-lint:
26- $(LINT) $(ALL_LINT_FLAGS) makekeys.c
27-
28-endif LINT
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/xim.patch b/meta/recipes-graphics/xorg-lib/libx11-git/xim.patch
new file mode 100644
index 0000000000..0eab197a80
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-git/xim.patch
@@ -0,0 +1,55 @@
1--- libX11-6.2.1/src/X18NCMSstubs.c 2003-12-04 22:47:47.000000000 +0000
2+++ libX11-6.2.1/src/X18NCMSstubs.c-new 2005-12-09 12:09:03.000000000 +0000
3@@ -90,6 +90,52 @@
4 return;
5 }
6
7+XIM
8+XOpenIM (
9+ Display* display,
10+ struct _XrmHashBucketRec* rdb,
11+ char* res_name,
12+ char* res_class)
13+{
14+ return (XIM) NULL;
15+}
16+
17+Status
18+XCloseIM ( XIM im )
19+{
20+ return NULL;
21+}
22+
23+XIC
24+XCreateIC ( XIM im, ...)
25+{
26+ return NULL;
27+}
28+
29+void
30+XDestroyIC ( XIC ic )
31+{
32+ return;
33+}
34+
35+int
36+XmbLookupString (
37+ XIC ic,
38+ XKeyPressedEvent* ev,
39+ char* buffer,
40+ int nbytes,
41+ KeySym* keysym,
42+ Status* status)
43+{
44+ return XLookupNone;
45+}
46+
47+char *
48+XGetICValues( XIC ic, ...)
49+{
50+ return (char *) NULL;
51+}
52+
53 XPointer
54 _XimGetLocaleCode ( _Xconst char* encoding_name )
55 {
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim/include_fix.patch b/meta/recipes-graphics/xorg-lib/libx11-trim/include_fix.patch
new file mode 100644
index 0000000000..99ed57194e
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-trim/include_fix.patch
@@ -0,0 +1,23 @@
1---
2 configure.ac | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5--- libX11-1.1.5.orig/configure.ac
6+++ libX11-1.1.5/configure.ac
7@@ -218,13 +218,13 @@ AC_SUBST(XDMCP_LIBS)
8 AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], )
9
10 #
11 # Find keysymdef.h
12 #
13-AC_MSG_CHECKING([keysymdef.h])
14-dir=`pkg-config --variable=includedir xproto`
15-KEYSYMDEF="$dir/X11/keysymdef.h"
16+AC_ARG_WITH(keysymdef,
17+ AC_HELP_STRING([--with-keysymdef=DIR/keysymdef.h], [The location of keysymdef.h]),
18+ KEYSYMDEF=$withval, KEYSYMDEF="")
19 if test -f "$KEYSYMDEF"; then
20 AC_MSG_RESULT([$KEYSYMDEF])
21 else
22 AC_MSG_ERROR([Cannot find keysymdef.h])
23 fi
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim/nodolt.patch b/meta/recipes-graphics/xorg-lib/libx11-trim/nodolt.patch
new file mode 100644
index 0000000000..ecf9625cad
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-trim/nodolt.patch
@@ -0,0 +1,12 @@
1Index: libX11-1.2.1/configure.ac
2===================================================================
3--- libX11-1.2.1.orig/configure.ac 2009-07-02 14:07:54.000000000 +0100
4+++ libX11-1.2.1/configure.ac 2009-07-02 14:08:01.000000000 +0100
5@@ -20,7 +20,6 @@
6
7 # Checks for programs.
8 AC_PROG_LIBTOOL
9-DOLT
10 AC_PROG_CC
11 XORG_CWARNFLAGS
12
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim/x11_disable_makekeys.patch b/meta/recipes-graphics/xorg-lib/libx11-trim/x11_disable_makekeys.patch
new file mode 100644
index 0000000000..670578257c
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-trim/x11_disable_makekeys.patch
@@ -0,0 +1,29 @@
1---
2 src/util/Makefile.am | 17 -----------------
3 1 file changed, 17 deletions(-)
4
5Index: libX11-1.2.1/src/util/Makefile.am
6===================================================================
7--- libX11-1.2.1.orig/src/util/Makefile.am 2008-10-07 18:18:19.000000000 +0100
8+++ libX11-1.2.1/src/util/Makefile.am 2009-07-02 14:04:38.000000000 +0100
9@@ -1,20 +1,3 @@
10 # $XdotOrg: lib/X11/src/util/Makefile.am,v 1.4 2006-02-19 02:14:12 jamey Exp $
11
12-noinst_PROGRAMS=makekeys
13-
14-makekeys_CFLAGS=$(X11_CFLAGS)
15-
16-CC = @CC_FOR_BUILD@
17-
18 EXTRA_DIST = mkks.sh
19-
20-if LINT
21-# Check source code with tools like lint & sparse
22-
23-ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
24- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
25-
26-lint:
27- $(LINT) $(ALL_LINT_FLAGS) makekeys.c
28-
29-endif LINT
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb b/meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb
new file mode 100644
index 0000000000..190217d387
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb
@@ -0,0 +1,14 @@
1require libx11.inc
2
3LICENSE = "MIT & MIT-style & BSD"
4LIC_FILES_CHKSUM = "file://COPYING;md5=bf75bfe4d05068311b5e6862d4b5f2c5"
5
6PR = "r0"
7
8DEPENDS += "libxcb xproto xextproto xtrans libxau kbproto inputproto xf86bigfontproto xproto-native"
9
10SRC_URI += "file://../libx11-${PV}/x11_disable_makekeys.patch \
11 file://../libx11-${PV}/include_fix.patch \
12 file://../libx11-${PV}/nodolt.patch"
13
14EXTRA_OECONF += "--disable-xcms --with-xcb"
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim_git.bb b/meta/recipes-graphics/xorg-lib/libx11-trim_git.bb
new file mode 100644
index 0000000000..99426c3c5d
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11-trim_git.bb
@@ -0,0 +1,10 @@
1require libx11.inc
2require libx11_git.inc
3
4PR = "r2"
5
6DEPENDS += "libxcb xproto xextproto xtrans libxau kbproto inputproto xf86bigfontproto xproto-native"
7
8EXTRA_OECONF += "--disable-xcms --with-xcb"
9CFLAGS += "-D_GNU_SOURCE"
10
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc
new file mode 100644
index 0000000000..f8c17b1a6d
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11.inc
@@ -0,0 +1,34 @@
1DESCRIPTION = "X11 protocol and utility library"
2
3require xorg-lib-common.inc
4
5PROVIDES = "virtual/libx11"
6
7XORG_PN = "libX11"
8LEAD_SONAME = "libX11.so"
9
10EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h"
11
12FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt"
13FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale"
14
15do_compile() {
16 cd ${S}/src/util
17 mv makekeys.c.orig makekeys.c || true
18 touch makekeys-makekeys.o
19 (
20 unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS
21 ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys
22 )
23 if [ "$?" != "0" ]; then
24 exit 1
25 fi
26 # mv to stop it getting rebuilt
27 mv makekeys.c makekeys.c.orig
28 cd ${S}
29 oe_runmake
30}
31
32# Multiple libx11 derivatives from from this file and are selected by virtual/libx11
33# A world build should only build the correct version, not all of them.
34EXCLUDE_FROM_WORLD = "1"
diff --git a/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff b/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff
new file mode 100644
index 0000000000..54b1727a95
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff
@@ -0,0 +1,528 @@
1--- libX11-X11R7.0-1.0.0/src/imConv.c.orig 2006-03-08 09:46:03.000000000 +0100
2+++ libX11-X11R7.0-1.0.0/src/imConv.c 2006-03-08 10:50:10.000000000 +0100
3@@ -83,6 +83,7 @@
4 * from UCS char to specified charset char.
5 * This converter is needed for _XimGetCharCode subroutine.
6 */
7+#ifdef XLOCALE
8 XPointer
9 _XimGetLocaleCode (
10 _Xconst char* encoding_name)
11@@ -96,6 +97,7 @@
12 }
13 return cvt;
14 }
15+#endif
16
17 /*
18 * Returns the locale dependent representation of a keysym.
19@@ -107,6 +109,7 @@
20 * locale
21 */
22 /*ARGSUSED*/
23+#ifdef XLOCALE
24 int
25 _XimGetCharCode (
26 XPointer ucs_conv,
27@@ -135,6 +138,7 @@
28 buf[count]= '\0';
29 return count;
30 }
31+#endif
32
33 #ifdef XKB
34 static int lookup_string(
35--- libX11-X11R7.0-1.0.0/src/X18NCMSstubs.c.orig 2006-03-08 08:43:19.000000000 +0100
36+++ libX11-X11R7.0-1.0.0/src/X18NCMSstubs.c 2006-03-08 11:41:28.000000000 +0100
37@@ -0,0 +1,428 @@
38+/*
39+ * X18NCMSstubs.c
40+ * - Provides stubs and dummy funcs needed when Xcms and XLocale stuff removed
41+ *
42+ * Copyright © 2003 Matthew Allum
43+ *
44+ * Permission to use, copy, modify, distribute, and sell this software and its
45+ * documentation for any purpose is hereby granted without fee, provided that
46+ * the above copyright notice appear in all copies and that both that
47+ * copyright notice and this permission notice appear in supporting
48+ * documentation, and that the name of Matthew Allum not be used in
49+ * advertising or publicity pertaining to distribution of the software without
50+ * specific, written prior permission. Keith Packard and Compaq makes no
51+ * representations about the suitability of this software for any purpose. It
52+ * is provided "as is" without express or implied warranty.
53+ *
54+ * MATTHEW ALLUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
55+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
56+ * IN NO EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
57+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
58+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
59+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60+ * PERFORMANCE OF THIS SOFTWARE.
61+ */
62+
63+#include <stdlib.h>
64+#include "Xlibint.h"
65+#include "Xlcint.h"
66+#include <X11/Xlocale.h>
67+#include <X11/Xos.h>
68+#ifdef WIN32
69+#undef close
70+#endif
71+#include <X11/Xutil.h>
72+#include "XlcPubI.h"
73+
74+#include "Xcmsint.h" /* for XcmsCCC type */
75+#include "XlcPubI.h" /* for XLCd type */
76+#include "config.h"
77+
78+#if ! XLOCALE
79+
80+Bool
81+XSupportsLocale()
82+{
83+ return False;
84+}
85+
86+char *
87+XSetLocaleModifiers(
88+ const char *modifiers)
89+{
90+ return NULL;
91+}
92+
93+XLCd
94+_XOpenLC(
95+ char *name)
96+{
97+ return NULL;
98+}
99+
100+XLCd
101+_XlcCurrentLC()
102+{
103+ return NULL;
104+}
105+
106+void
107+_XlcVaToArgList(
108+ va_list var,
109+ int count,
110+ XlcArgList *args_ret)
111+{
112+ return;
113+}
114+
115+void
116+_XlcCountVaList(
117+ va_list var,
118+ int *count_ret)
119+{
120+ return;
121+}
122+
123+void
124+_XCloseLC(
125+ XLCd lcd)
126+{
127+ return;
128+}
129+
130+int
131+_XlcConvert(
132+ XlcConv conv,
133+ XPointer *from,
134+ int *from_left,
135+ XPointer *to,
136+ int *to_left,
137+ XPointer *args,
138+ int num_args)
139+{
140+ return 0;
141+}
142+
143+/* XIM Stubs */
144+
145+XPointer
146+_XimGetLocaleCode ( _Xconst char* encoding_name )
147+{
148+ return NULL;
149+}
150+
151+int
152+_XimGetCharCode (
153+ XPointer ucs_conv,
154+ KeySym keysym,
155+ unsigned char* buf,
156+ int nbytes)
157+{
158+ return 0;
159+}
160+
161+/* Xrm Stubs */
162+
163+XrmMethods
164+_XrmInitParseInfo(
165+ XPointer *state)
166+{
167+ return (XrmMethods) NULL;
168+}
169+
170+/* Xwc Stubs */
171+
172+int
173+XwcTextExtents(
174+ XFontSet font_set,
175+ _Xconst wchar_t *text,
176+ int text_len,
177+ XRectangle *overall_ink_extents,
178+ XRectangle *overall_logical_extents)
179+{
180+ return 0;
181+}
182+
183+void
184+XwcDrawString(Display *display,
185+ Drawable d,
186+ XFontSet font_set,
187+ GC gc,
188+ int x, int y,
189+ _Xconst wchar_t *string,
190+ int num_wchars)
191+{
192+ ;
193+}
194+
195+void
196+XwcDrawText(
197+ Display *dpy,
198+ Drawable d,
199+ GC gc,
200+ int x,
201+ int y,
202+ XwcTextItem *text_items,
203+ int nitems)
204+{
205+ ;
206+}
207+
208+void
209+XwcDrawImageString(
210+ Display *dpy,
211+ Drawable d,
212+ XFontSet font_set,
213+ GC gc,
214+ int x,
215+ int y,
216+ _Xconst wchar_t *text,
217+ int text_len)
218+{
219+ ;
220+}
221+
222+int
223+XwcTextEscapement(
224+ XFontSet font_set,
225+ _Xconst wchar_t *text,
226+ int text_len)
227+{
228+ return 0;
229+}
230+
231+Status
232+XwcTextPerCharExtents(
233+ XFontSet font_set,
234+ _Xconst wchar_t *text,
235+ int text_len,
236+ XRectangle *ink_extents_buffer,
237+ XRectangle *logical_extents_buffer,
238+ int buffer_size,
239+ int *num_chars,
240+ XRectangle *max_ink_extents,
241+ XRectangle *max_logical_extents)
242+{
243+ ;
244+}
245+
246+int
247+XwcTextPropertyToTextList(
248+ Display *dpy,
249+ const XTextProperty *text_prop,
250+ wchar_t ***list_ret,
251+ int *count_ret)
252+{
253+ return 0;
254+}
255+
256+int
257+XwcTextListToTextProperty(
258+ Display *dpy,
259+ wchar_t **list,
260+ int count,
261+ XICCEncodingStyle style,
262+ XTextProperty *text_prop)
263+{
264+ return 0;
265+}
266+
267+void
268+XwcFreeStringList(wchar_t **list)
269+{
270+ return;
271+}
272+
273+
274+void XmbSetWMProperties ( /* Actually from mbWMProps.c */
275+ Display *dpy,
276+ Window w,
277+ _Xconst char *windowName,
278+ _Xconst char *iconName,
279+ char **argv,
280+ int argc,
281+ XSizeHints *sizeHints,
282+ XWMHints *wmHints,
283+ XClassHint *classHints)
284+{
285+ return;
286+}
287+
288+int
289+XmbTextPropertyToTextList(
290+ Display *dpy,
291+ const XTextProperty *text_prop,
292+ char ***list_ret,
293+ int *count_ret)
294+{
295+ return XLocaleNotSupported;
296+}
297+
298+int
299+XmbTextListToTextProperty(
300+ Display *dpy,
301+ char **list,
302+ int count,
303+ XICCEncodingStyle style,
304+ XTextProperty *text_prop)
305+{
306+ return XLocaleNotSupported;
307+}
308+
309+int
310+XmbTextExtents(
311+ XFontSet font_set,
312+ _Xconst char *text,
313+ int text_len,
314+ XRectangle *overall_ink_extents,
315+ XRectangle *overall_logical_extents)
316+{
317+ return 0;
318+}
319+
320+void
321+XmbDrawText(
322+ Display *dpy,
323+ Drawable d,
324+ GC gc,
325+ int x,
326+ int y,
327+ XmbTextItem *text_items,
328+ int nitems)
329+{
330+ ;
331+}
332+
333+void
334+XmbDrawString(
335+ Display *dpy,
336+ Drawable d,
337+ XFontSet font_set,
338+ GC gc,
339+ int x,
340+ int y,
341+ _Xconst char *text,
342+ int text_len)
343+{
344+ ;
345+}
346+
347+void
348+XmbDrawImageString(
349+ Display *dpy,
350+ Drawable d,
351+ XFontSet font_set,
352+ GC gc,
353+ int x,
354+ int y,
355+ _Xconst char *text,
356+ int text_len)
357+{
358+ ;
359+}
360+
361+int
362+XmbTextEscapement(
363+ XFontSet font_set,
364+ _Xconst char *text,
365+ int text_len)
366+{
367+ return 0;
368+}
369+
370+Status
371+XmbTextPerCharExtents(
372+ XFontSet font_set,
373+ _Xconst char *text,
374+ int text_len,
375+ XRectangle *ink_extents_buffer,
376+ XRectangle *logical_extents_buffer,
377+ int buffer_size,
378+ int *num_chars,
379+ XRectangle *max_ink_extents,
380+ XRectangle *max_logical_extents)
381+{
382+ return 0;
383+}
384+
385+unsigned int
386+KeySymToUcs4(KeySym keysym)
387+{
388+ return 0;
389+}
390+
391+#endif
392+
393+#if ! XCMS
394+
395+XcmsCCC
396+XcmsCCCOfColormap(dpy, cmap)
397+ Display *dpy;
398+ Colormap cmap;
399+{
400+ return NULL;
401+}
402+
403+Status
404+_XcmsResolveColorString (
405+ XcmsCCC ccc,
406+ const char **color_string,
407+ XcmsColor *pColor_exact_return,
408+ XcmsColorFormat result_format)
409+{
410+ return(XcmsFailure);
411+}
412+
413+void
414+_XcmsUnresolveColor(
415+ XcmsCCC ccc,
416+ XcmsColor *pColor)
417+{
418+ return;
419+}
420+
421+void
422+_XUnresolveColor(
423+ XcmsCCC ccc,
424+ XColor *pXColor)
425+{
426+ return;
427+}
428+
429+XcmsCmapRec *
430+_XcmsAddCmapRec(dpy, cmap, windowID, visual)
431+ Display *dpy;
432+ Colormap cmap;
433+ Window windowID;
434+ Visual *visual;
435+{
436+ return NULL;
437+}
438+
439+void
440+_XcmsRGB_to_XColor(
441+ XcmsColor *pColors,
442+ XColor *pXColors,
443+ unsigned int nColors)
444+{
445+ return;
446+}
447+
448+XcmsCmapRec *
449+_XcmsCopyCmapRecAndFree(
450+ Display *dpy,
451+ Colormap src_cmap,
452+ Colormap copy_cmap)
453+{
454+ return NULL;
455+}
456+
457+void
458+_XcmsDeleteCmapRec(
459+ Display *dpy,
460+ Colormap cmap)
461+{
462+ return;
463+}
464+
465+#endif
466--- libX11-X11R7.0-1.0.0/src/Makefile.am.orig 2006-03-08 08:31:09.000000000 +0100
467+++ libX11-X11R7.0-1.0.0/src/Makefile.am 2006-03-08 09:36:23.000000000 +0100
468@@ -331,6 +331,8 @@
469 libX11_la_SOURCES+=UIThrStubs.c
470 endif
471
472+libX11_la_SOURCES+=X18NCMSstubs.c
473+
474 x11datadir = @X11_DATADIR@
475 x11data_DATA = XKeysymDB XErrorDB
476
477@@ -338,7 +340,8 @@
478 $(x11data_DATA) \
479 os2Stubs.c \
480 udcInf.c \
481- UIThrStubs.c
482+ UIThrStubs.c \
483+ X18NCMSstubs.c
484
485 #
486 # Figure out which sub-libraries to link into Xlib
487--- libX11-X11R7.0-1.0.0/src/locking.c.orig 2006-03-08 11:05:56.000000000 +0100
488+++ libX11-X11R7.0-1.0.0/src/locking.c 2006-03-08 11:06:37.000000000 +0100
489@@ -55,7 +55,9 @@
490 #define NUM_FREE_CVLS 4
491
492 /* in lcWrap.c */
493+#ifdef XLOCALE
494 extern LockInfoPtr _Xi18n_lock;
495+#endif
496
497 #ifdef WIN32
498 static DWORD _X_TlsIndex = (DWORD)-1;
499@@ -625,9 +627,11 @@
500 _Xglobal_lock = &global_lock;
501 xmutex_init(_Xglobal_lock->lock);
502 xmutex_set_name(_Xglobal_lock->lock, "Xlib global");
503+#ifdef XLOCALE
504 _Xi18n_lock = &i18n_lock;
505 xmutex_init(_Xi18n_lock->lock);
506 xmutex_set_name(_Xi18n_lock->lock, "Xlib i18n");
507+#endif
508 _XLockMutex_fn = _XLockMutex;
509 _XUnlockMutex_fn = _XUnlockMutex;
510 _XCreateMutex_fn = _XCreateMutex;
511--- libX11-X11R7.0-1.0.0/configure.ac.orig 2006-03-08 10:03:57.000000000 +0100
512+++ libX11-X11R7.0-1.0.0/configure.ac 2006-03-08 10:06:01.000000000 +0100
513@@ -215,7 +215,14 @@
514 esac
515 AC_SUBST(KEYSYMDEF)
516
517-AM_CONDITIONAL(UDC, test xfalse = xtrue)
518+AC_ARG_ENABLE(udc,
519+ AC_HELP_STRING([--disable-udc],
520+ [Disable Xlib support for UDC *EXPERIMENTAL*]),
521+ [UDC=$enableval],[UDC=yes])
522+AM_CONDITIONAL(UDC, [test x$UDC = xyes ])
523+if test x"$UDC" = "xyes"; then
524+ AC_DEFINE(UDC,1,[Include support for UDC])
525+fi
526
527 AC_ARG_ENABLE(xcms,
528 AC_HELP_STRING([--disable-xcms],
diff --git a/meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff b/meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff
new file mode 100644
index 0000000000..9dbf6dac68
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff
@@ -0,0 +1,14 @@
1--- libX11-X11R7.0-1.0.0/src/Font.c.orig 2006-03-12 18:35:42.000000000 +0100
2+++ libX11-X11R7.0-1.0.0/src/Font.c 2006-03-12 18:40:27.000000000 +0100
3@@ -701,7 +701,11 @@
4 }
5 if (l - 2 - (p - charset) < 0)
6 return 0;
7+#ifdef XLOCALE
8 if (_XlcNCompareISOLatin1(name + l - 2 - (p - charset), charset, p - charset))
9+#else
10+ if (strncasecmp(name + l - 2 - (p - charset), charset, p - charset))
11+#endif
12 return 0;
13 if (strlen(p + 1) + l - 1 >= sizeof(buf) - 1)
14 return 0;
diff --git a/meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch b/meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch
new file mode 100644
index 0000000000..a098db1941
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch
@@ -0,0 +1,16 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6--- libX11-X11R7.0-1.0.0/include/X11/Xlib.h~fix-utf8-wrong-define
7+++ libX11-X11R7.0-1.0.0/include/X11/Xlib.h
8@@ -103,7 +103,7 @@
9
10 /* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
11 November 2000. Its presence is indicated through the following macro. */
12-#define X_HAVE_UTF8_STRING 1
13+#undef X_HAVE_UTF8_STRING
14
15 typedef char *XPointer;
16
diff --git a/meta/recipes-graphics/xorg-lib/libx11/include_fix.patch b/meta/recipes-graphics/xorg-lib/libx11/include_fix.patch
new file mode 100644
index 0000000000..99ed57194e
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11/include_fix.patch
@@ -0,0 +1,23 @@
1---
2 configure.ac | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5--- libX11-1.1.5.orig/configure.ac
6+++ libX11-1.1.5/configure.ac
7@@ -218,13 +218,13 @@ AC_SUBST(XDMCP_LIBS)
8 AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], )
9
10 #
11 # Find keysymdef.h
12 #
13-AC_MSG_CHECKING([keysymdef.h])
14-dir=`pkg-config --variable=includedir xproto`
15-KEYSYMDEF="$dir/X11/keysymdef.h"
16+AC_ARG_WITH(keysymdef,
17+ AC_HELP_STRING([--with-keysymdef=DIR/keysymdef.h], [The location of keysymdef.h]),
18+ KEYSYMDEF=$withval, KEYSYMDEF="")
19 if test -f "$KEYSYMDEF"; then
20 AC_MSG_RESULT([$KEYSYMDEF])
21 else
22 AC_MSG_ERROR([Cannot find keysymdef.h])
23 fi
diff --git a/meta/recipes-graphics/xorg-lib/libx11/nodolt.patch b/meta/recipes-graphics/xorg-lib/libx11/nodolt.patch
new file mode 100644
index 0000000000..ecf9625cad
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11/nodolt.patch
@@ -0,0 +1,12 @@
1Index: libX11-1.2.1/configure.ac
2===================================================================
3--- libX11-1.2.1.orig/configure.ac 2009-07-02 14:07:54.000000000 +0100
4+++ libX11-1.2.1/configure.ac 2009-07-02 14:08:01.000000000 +0100
5@@ -20,7 +20,6 @@
6
7 # Checks for programs.
8 AC_PROG_LIBTOOL
9-DOLT
10 AC_PROG_CC
11 XORG_CWARNFLAGS
12
diff --git a/meta/recipes-graphics/xorg-lib/libx11/x11_disable_makekeys.patch b/meta/recipes-graphics/xorg-lib/libx11/x11_disable_makekeys.patch
new file mode 100644
index 0000000000..670578257c
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11/x11_disable_makekeys.patch
@@ -0,0 +1,29 @@
1---
2 src/util/Makefile.am | 17 -----------------
3 1 file changed, 17 deletions(-)
4
5Index: libX11-1.2.1/src/util/Makefile.am
6===================================================================
7--- libX11-1.2.1.orig/src/util/Makefile.am 2008-10-07 18:18:19.000000000 +0100
8+++ libX11-1.2.1/src/util/Makefile.am 2009-07-02 14:04:38.000000000 +0100
9@@ -1,20 +1,3 @@
10 # $XdotOrg: lib/X11/src/util/Makefile.am,v 1.4 2006-02-19 02:14:12 jamey Exp $
11
12-noinst_PROGRAMS=makekeys
13-
14-makekeys_CFLAGS=$(X11_CFLAGS)
15-
16-CC = @CC_FOR_BUILD@
17-
18 EXTRA_DIST = mkks.sh
19-
20-if LINT
21-# Check source code with tools like lint & sparse
22-
23-ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
24- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
25-
26-lint:
27- $(LINT) $(ALL_LINT_FLAGS) makekeys.c
28-
29-endif LINT
diff --git a/meta/recipes-graphics/xorg-lib/libx11/xim.patch b/meta/recipes-graphics/xorg-lib/libx11/xim.patch
new file mode 100644
index 0000000000..0eab197a80
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11/xim.patch
@@ -0,0 +1,55 @@
1--- libX11-6.2.1/src/X18NCMSstubs.c 2003-12-04 22:47:47.000000000 +0000
2+++ libX11-6.2.1/src/X18NCMSstubs.c-new 2005-12-09 12:09:03.000000000 +0000
3@@ -90,6 +90,52 @@
4 return;
5 }
6
7+XIM
8+XOpenIM (
9+ Display* display,
10+ struct _XrmHashBucketRec* rdb,
11+ char* res_name,
12+ char* res_class)
13+{
14+ return (XIM) NULL;
15+}
16+
17+Status
18+XCloseIM ( XIM im )
19+{
20+ return NULL;
21+}
22+
23+XIC
24+XCreateIC ( XIM im, ...)
25+{
26+ return NULL;
27+}
28+
29+void
30+XDestroyIC ( XIC ic )
31+{
32+ return;
33+}
34+
35+int
36+XmbLookupString (
37+ XIC ic,
38+ XKeyPressedEvent* ev,
39+ char* buffer,
40+ int nbytes,
41+ KeySym* keysym,
42+ Status* status)
43+{
44+ return XLookupNone;
45+}
46+
47+char *
48+XGetICValues( XIC ic, ...)
49+{
50+ return (char *) NULL;
51+}
52+
53 XPointer
54 _XimGetLocaleCode ( _Xconst char* encoding_name )
55 {
diff --git a/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb b/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb
new file mode 100644
index 0000000000..aaeb38e2d6
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb
@@ -0,0 +1,18 @@
1require libx11.inc
2
3LICENSE = "MIT & MIT-style & BSD"
4LIC_FILES_CHKSUM = "file://COPYING;md5=bf75bfe4d05068311b5e6862d4b5f2c5"
5
6PE = "1"
7PR = "r0"
8
9SRC_URI += "file://x11_disable_makekeys.patch \
10 file://nodolt.patch \
11 file://include_fix.patch"
12
13DEPENDS += "bigreqsproto xproto xextproto xtrans libxau xcmiscproto \
14 libxdmcp xf86bigfontproto kbproto inputproto xproto-native gettext"
15
16EXTRA_OECONF += "--without-xcb"
17
18BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-graphics/xorg-lib/libx11_git.bb b/meta/recipes-graphics/xorg-lib/libx11_git.bb
new file mode 100644
index 0000000000..a976a16cd3
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11_git.bb
@@ -0,0 +1,11 @@
1require libx11.inc
2require libx11_git.inc
3
4PR = "r2"
5
6DEPENDS = "xproto xextproto xcmiscproto xf86bigfontproto kbproto inputproto \
7 bigreqsproto xtrans libxau libxcb libxdmcp util-macros gettext"
8
9DEFAULT_PREFERENCE = "-1"
10
11BBCLASSEXTEND = "nativesdk" \ No newline at end of file
diff --git a/meta/recipes-graphics/xorg-lib/libx11_git.inc b/meta/recipes-graphics/xorg-lib/libx11_git.inc
new file mode 100644
index 0000000000..40d806178f
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11_git.inc
@@ -0,0 +1,11 @@
1PV = "1.2.1+git${SRCPV}"
2
3SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libX11;protocol=git"
4S = "${WORKDIR}/git"
5
6SRC_URI += "file://x11_disable_makekeys.patch;patch=1 \
7 file://include_fix.patch;patch=1 \
8 file://nodolt.patch;patch=1"
9
10FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libx11-git"
11FILESPATH = "${FILE_DIRNAME}/libx11-git"
diff --git a/meta/recipes-graphics/xorg-lib/libxau_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxau_1.0.5.bb
new file mode 100644
index 0000000000..65374611ba
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxau_1.0.5.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "A Sample Authorization Protocol for X"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=7908e342491198401321cec1956807ec"
7
8DEPENDS += " xproto gettext"
9PROVIDES = "xau"
10
11PR = "r0"
12PE = "1"
13
14XORG_PN = "libXau"
15
16BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-graphics/xorg-lib/libxaw_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxaw_1.0.5.bb
new file mode 100644
index 0000000000..489f456647
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxaw_1.0.5.bb
@@ -0,0 +1,21 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X Athena Widget Set"
4DEPENDS += "xproto virtual/libx11 libxext xextproto libxt libxmu libxpm libxp printproto libxau"
5PROVIDES = "xaw"
6PR = "r1"
7PE = "1"
8
9XORG_PN = "libXaw"
10
11do_install_append () {
12 ln -sf libXaw6.so.6 ${D}${libdir}/libXaw.so.6
13 ln -sf libXaw7.so.7 ${D}${libdir}/libXaw.so.7
14 ln -sf libXaw7.so.7 ${D}${libdir}/libXaw.so
15}
16
17PACKAGES =+ "libxaw6 libxaw7 libxaw8"
18
19FILES_libxaw6 = "${libdir}/libXaw6.so.6*"
20FILES_libxaw7 = "${libdir}/libXaw7.so.7*"
21FILES_libxaw8 = "${libdir}/libXaw8.so.8*"
diff --git a/meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch b/meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch
new file mode 100644
index 0000000000..0d7efc70f3
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch
@@ -0,0 +1,27 @@
1There is no extra reply data and if we say not to disgard it, xcb
2throws fatal asserts.
3
4RP - 26/11/09
5
6Index: git/xcalibrate.c
7===================================================================
8--- git.orig/xcalibrate.c 2009-11-26 08:11:48.000000000 +0000
9+++ git/xcalibrate.c 2009-11-26 08:09:55.000000000 +0000
10@@ -216,7 +216,7 @@
11 req->reqType = info->codes->major_opcode;
12 req->xCalibrateReqType = X_XCalibrateRawMode;
13 req->on = enable;
14- if (!_XReply (dpy, (xReply *) &rep, 0, xFalse))
15+ if (!_XReply (dpy, (xReply *) &rep, 0, xTrue))
16 {
17 UnlockDisplay (dpy);
18 SyncHandle ();
19@@ -240,7 +240,7 @@
20 req->xCalibrateReqType = X_XCalibrateScreenToCoord;
21 req->x = *x;
22 req->y = *y;
23- if (!_XReply (dpy, (xReply *) &rep, 0, xFalse))
24+ if (!_XReply (dpy, (xReply *) &rep, 0, xTrue))
25 {
26 UnlockDisplay (dpy);
27 SyncHandle ();
diff --git a/meta/recipes-graphics/xorg-lib/libxcalibrate_git.bb b/meta/recipes-graphics/xorg-lib/libxcalibrate_git.bb
new file mode 100644
index 0000000000..8ca731b2ef
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxcalibrate_git.bb
@@ -0,0 +1,19 @@
1DESCRIPTION = "Touchscreen calibration client library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://xcalibrate.h;endline=21;md5=fa572df6439f0f235f2612f370f153d7 \
7 file://xcalibrate.c;endline=21;md5=fa572df6439f0f235f2612f370f153d7"
8
9DEPENDS = "virtual/libx11 calibrateproto libxext"
10
11PV = "0.0+git${SRCPV}"
12PR = "r0"
13
14SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libXCalibrate;protocol=git \
15 file://fix-xcb.patch"
16
17S = "${WORKDIR}/git"
18
19FILES_${PN}-locale += "${datadir}/X11/locale"
diff --git a/meta/recipes-graphics/xorg-lib/libxcomposite/change-include-order.patch b/meta/recipes-graphics/xorg-lib/libxcomposite/change-include-order.patch
new file mode 100644
index 0000000000..9b10d1a26d
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxcomposite/change-include-order.patch
@@ -0,0 +1,14 @@
1This patch makes the build use its own Xcomposite.h over rather than an
2older Xcomposite.h that might already be installed in the staging dir.
3
4--- libXcomposite-0.4.1/src/Makefile.am.orig 2010-06-27 15:50:05.000000000 +0800
5+++ libXcomposite-0.4.1/src/Makefile.am 2010-06-27 15:51:48.000000000 +0800
6@@ -19,7 +19,7 @@
7 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8 # PERFORMANCE OF THIS SOFTWARE.
9
10-AM_CFLAGS = $(CWARNFLAGS) $(XCOMPOSITE_CFLAGS) $(X_CFLAGS)
11+AM_CFLAGS = -I$(top_srcdir)/include $(CWARNFLAGS) $(XCOMPOSITE_CFLAGS) $(X_CFLAGS)
12 AM_CPPFLAGS = -I$(top_srcdir)/include
13
14 lib_LTLIBRARIES = libXcomposite.la
diff --git a/meta/recipes-graphics/xorg-lib/libxcomposite_0.4.1.bb b/meta/recipes-graphics/xorg-lib/libxcomposite_0.4.1.bb
new file mode 100644
index 0000000000..8c5ca022c7
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxcomposite_0.4.1.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "X Composite extension library."
2
3require xorg-lib-common.inc
4
5LICENSE= "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24"
7
8DEPENDS += " compositeproto virtual/libx11 libxfixes libxext"
9PROVIDES = "xcomposite"
10
11PE = "1"
12PR = "r0"
13
14XORG_PN = "libXcomposite"
15
16SRC_URI += " file://change-include-order.patch"
diff --git a/meta/recipes-graphics/xorg-lib/libxcursor_1.1.10.bb b/meta/recipes-graphics/xorg-lib/libxcursor_1.1.10.bb
new file mode 100644
index 0000000000..4b0a3b1ab4
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxcursor_1.1.10.bb
@@ -0,0 +1,13 @@
1DESCRIPTION = "X cursor management library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=8902e6643f7bcd7793b23dcd5d8031a4"
7
8DEPENDS += "libxrender libxfixes"
9
10PR = "r0"
11PE = "1"
12
13XORG_PN = "libXcursor"
diff --git a/meta/recipes-graphics/xorg-lib/libxdamage_1.1.2.bb b/meta/recipes-graphics/xorg-lib/libxdamage_1.1.2.bb
new file mode 100644
index 0000000000..2ea9891c92
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxdamage_1.1.2.bb
@@ -0,0 +1,14 @@
1DESCRIPTION = "X11 damaged region extension library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=10c8c88d1faea6d7c3a82d54c2b8fd2b"
7
8DEPENDS += "damageproto libxfixes"
9PROVIDES = "xdamage"
10
11PR = "r0"
12PE = "1"
13
14XORG_PN = "libXdamage"
diff --git a/meta/recipes-graphics/xorg-lib/libxdmcp_1.0.3.bb b/meta/recipes-graphics/xorg-lib/libxdmcp_1.0.3.bb
new file mode 100644
index 0000000000..b1648fbf38
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxdmcp_1.0.3.bb
@@ -0,0 +1,18 @@
1DESCRIPTION = "X Display Manager Control Protocol library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d559fb26e129626022e052a5e6e0e123"
7
8DEPENDS += "xproto"
9PROVIDES = "xdmcp"
10
11PR = "r0"
12PE = "1"
13
14DEPENDS += "gettext"
15
16XORG_PN = "libXdmcp"
17
18BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-graphics/xorg-lib/libxevie_1.0.2.bb b/meta/recipes-graphics/xorg-lib/libxevie_1.0.2.bb
new file mode 100644
index 0000000000..6c6b4595aa
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxevie_1.0.2.bb
@@ -0,0 +1,8 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 EvIE extension library"
4DEPENDS += "libxext evieext"
5PR = "r1"
6PE = "1"
7
8XORG_PN = "libXevie"
diff --git a/meta/recipes-graphics/xorg-lib/libxext_1.1.2.bb b/meta/recipes-graphics/xorg-lib/libxext_1.1.2.bb
new file mode 100644
index 0000000000..14e6c1fb7e
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxext_1.1.2.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "X11 miscellaneous extension library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=c70692f0f710dda89d6cfcc412d8a1aa"
7
8DEPENDS += "xproto virtual/libx11 xextproto libxau libxdmcp"
9PROVIDES = "xext"
10
11PR = "r0"
12PE = "1"
13
14XORG_PN = "libXext"
15
16BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-graphics/xorg-lib/libxext_git.bb b/meta/recipes-graphics/xorg-lib/libxext_git.bb
new file mode 100644
index 0000000000..d0b3d7fbf5
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxext_git.bb
@@ -0,0 +1,14 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 miscellaneous extension library"
4DEPENDS += "xproto virtual/libx11 xextproto libxau libxdmcp"
5PROVIDES = "xext"
6PE = "1"
7PV = "1.0.99.1+gitr${SRCPV}"
8
9XORG_PN = "libXext"
10
11SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/${XORG_PN};protocol=git"
12S = "${WORKDIR}/git/"
13
14BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-graphics/xorg-lib/libxfixes_4.0.4.bb b/meta/recipes-graphics/xorg-lib/libxfixes_4.0.4.bb
new file mode 100644
index 0000000000..b3ee0711dc
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxfixes_4.0.4.bb
@@ -0,0 +1,15 @@
1DESCRIPTION = "X Fixes extension library."
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24"
7
8DEPENDS += "virtual/libx11 xproto fixesproto xextproto"
9
10PR = "r0"
11PE = "1"
12
13XORG_PN = "libXfixes"
14
15BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch b/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch
new file mode 100644
index 0000000000..90bded6fba
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch
@@ -0,0 +1,22 @@
1--- /tmp/fontdir.c 2006-08-01 16:17:22.000000000 +0200
2+++ libXfont-1.2.0/src/fontfile/fontdir.c 2006-08-01 16:20:37.248306000 +0200
3@@ -695,6 +695,11 @@
4 */
5 if (isscale)
6 {
7+ /* If the fontname says it is scalable, make sure that the
8+ * renderer supports OpenScalable and GetInfoScalable.
9+ */
10+ if (renderer->OpenScalable && renderer->GetInfoScalable)
11+ {
12 if (vals.values_supplied & SIZE_SPECIFY_MASK)
13 {
14 bzero((char *)&zeroVals, sizeof(zeroVals));
15@@ -794,6 +799,7 @@
16 bitmap->name.name);
17 }
18 }
19+ }
20 }
21 return TRUE;
22 }
diff --git a/meta/recipes-graphics/xorg-lib/libxfont_1.4.2.bb b/meta/recipes-graphics/xorg-lib/libxfont_1.4.2.bb
new file mode 100644
index 0000000000..6aa83c4ac6
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxfont_1.4.2.bb
@@ -0,0 +1,18 @@
1DESCRIPTION = "X11 font rasterisation library"
2
3require xorg-lib-common.inc
4
5LICENSE= "MIT & MIT-style & BSD"
6LIC_FILES_CHKSUM = "file://COPYING;md5=deeee1c29f32ca774cecf0c83b46bb5c"
7
8DEPENDS += "freetype fontcacheproto xtrans fontsproto libfontenc"
9PROVIDES = "xfont"
10
11PR = "r0"
12PE = "1"
13
14#SRC_URI += "file://no-scalable-crash.patch;patch=1"
15
16XORG_PN = "libXfont"
17
18BBCLASSEXTEND = "native"
diff --git a/meta/recipes-graphics/xorg-lib/libxfontcache_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxfontcache_1.0.5.bb
new file mode 100644
index 0000000000..97f7ed6272
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxfontcache_1.0.5.bb
@@ -0,0 +1,9 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X-TrueType font cache extension client library"
4DEPENDS += "libxext fontcacheproto"
5LIC_FILES_CHKSUM = "file://COPYING;md5=62a75d5d3da40f1f6eb1cbe3bcc0a5d0"
6PR = "r0"
7PE = "1"
8
9XORG_PN = "libXfontcache"
diff --git a/meta/recipes-graphics/xorg-lib/libxft_2.1.14.bb b/meta/recipes-graphics/xorg-lib/libxft_2.1.14.bb
new file mode 100644
index 0000000000..7f5ccdd0fb
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxft_2.1.14.bb
@@ -0,0 +1,25 @@
1DESCRIPTION = "FreeType-based font drawing library for X"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24"
7
8DEPENDS += "libxrender freetype fontconfig"
9PROVIDES = "xft"
10
11PR = "r0"
12PE = "1"
13
14XORG_PN = "libXft"
15
16python do_package() {
17 if bb.data.getVar('DEBIAN_NAMES', d, 1):
18 bb.data.setVar('PKG_${PN}', 'libxft2', d)
19 bb.build.exec_func('package_do_package', d)
20}
21
22FILES_${PN} = "${libdir}/lib*${SOLIBS}"
23FILES_${PN}-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la \
24 ${libdir}/*.a ${libdir}/pkgconfig \
25 ${datadir}/aclocal ${bindir} ${sbindir}"
diff --git a/meta/recipes-graphics/xorg-lib/libxi_1.3.bb b/meta/recipes-graphics/xorg-lib/libxi_1.3.bb
new file mode 100644
index 0000000000..bd21eadd13
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxi_1.3.bb
@@ -0,0 +1,13 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 Input extension library"
4
5LICENSE = "MIT & MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=2aafbfe6127f6f03eb776283e6138cce \
7 file://src/XIGetDevFocus.c;endline=23;md5=cdfb0d435a33ec57ea0d1e8e395b729f"
8
9DEPENDS += "libxext inputproto"
10PE = "1"
11
12XORG_PN = "libXi"
13
diff --git a/meta/recipes-graphics/xorg-lib/libxi_git.bb b/meta/recipes-graphics/xorg-lib/libxi_git.bb
new file mode 100644
index 0000000000..30c1778c3e
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxi_git.bb
@@ -0,0 +1,11 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 Input extension library"
4DEPENDS += "libxext inputproto"
5PE = "1"
6PV = "1.2.99.5+gitr${SRCPV}"
7
8XORG_PN = "libXi"
9
10SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/${XORG_PN};protocol=git"
11S = "${WORKDIR}/git"
diff --git a/meta/recipes-graphics/xorg-lib/libxinerama_1.1.bb b/meta/recipes-graphics/xorg-lib/libxinerama_1.1.bb
new file mode 100644
index 0000000000..35a967cff0
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxinerama_1.1.bb
@@ -0,0 +1,14 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 Xinerama extension library"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94 \
7 file://src/Xinerama.c;beginline=2;endline=25;md5=098e0bc089368a988092b3cbda617a57"
8
9DEPENDS += "libxext xineramaproto"
10PROVIDES = "xinerama"
11PR = "r3"
12PE = "1"
13
14XORG_PN = "libXinerama"
diff --git a/meta/recipes-graphics/xorg-lib/libxkbfile_1.0.6.bb b/meta/recipes-graphics/xorg-lib/libxkbfile_1.0.6.bb
new file mode 100644
index 0000000000..f46c147e4a
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxkbfile_1.0.6.bb
@@ -0,0 +1,13 @@
1DESCRIPTION = "X11 keyboard file manipulation library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=aa32e1b87f1da02948ab7b55e129bf5f"
7
8DEPENDS += "virtual/libx11 kbproto"
9
10PR = "r0"
11PE = "1"
12
13BBCLASSEXTEND = "native"
diff --git a/meta/recipes-graphics/xorg-lib/libxkbui_1.0.2.bb b/meta/recipes-graphics/xorg-lib/libxkbui_1.0.2.bb
new file mode 100644
index 0000000000..9a3f5f1327
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxkbui_1.0.2.bb
@@ -0,0 +1,8 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 keyboard UI presentation library"
4LICENSE= "GPL"
5DEPENDS += "virtual/libx11 libxt libxkbfile"
6PROVIDES = "xkbui"
7PR = "r1"
8PE = "1"
diff --git a/meta/recipes-graphics/xorg-lib/libxmu_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxmu_1.0.5.bb
new file mode 100644
index 0000000000..761746e2cc
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxmu_1.0.5.bb
@@ -0,0 +1,21 @@
1DESCRIPTION = "X11 miscellaneous utility library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT & MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=bb8d1df693806ad17c7268086f1d5394"
7
8DEPENDS += "libxt libxext"
9PROVIDES = "xmu"
10
11PR = "r0"
12PE = "1"
13
14XORG_PN = "libXmu"
15
16LEAD_SONAME = "libXmu"
17
18PACKAGES =+ "libxmuu libxmuu-dev"
19
20FILES_libxmuu = "${libdir}/libXmuu.so.*"
21FILES_libxmuu-dev = "${libdir}/libXmuu.so"
diff --git a/meta/recipes-graphics/xorg-lib/libxp_1.0.0.bb b/meta/recipes-graphics/xorg-lib/libxp_1.0.0.bb
new file mode 100644
index 0000000000..7d3b87473c
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxp_1.0.0.bb
@@ -0,0 +1,15 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X Printing Extension (Xprint) client library"
4
5LICENSE = "MIT & MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=329e54eb6793b3d4830a4f6f1ca16e3f \
7 file://src/XpPage.c;beginline=2;endline=37;md5=886b68ac3721003d54abfbd82bafc5ad"
8
9DEPENDS += "libxext libxau printproto"
10PR = "r1"
11PE = "1"
12
13XORG_PN = "libXp"
14
15CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions"
diff --git a/meta/recipes-graphics/xorg-lib/libxpm_3.5.7.bb b/meta/recipes-graphics/xorg-lib/libxpm_3.5.7.bb
new file mode 100644
index 0000000000..75c10bf2c9
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxpm_3.5.7.bb
@@ -0,0 +1,13 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 Pixmap library"
4LICENSE = "X-BSD"
5DEPENDS += "libxext libsm libxt"
6PR = "r3"
7PE = "1"
8
9XORG_PN = "libXpm"
10
11PACKAGES =+ "sxpm cxpm"
12FILES_cxpm = "${bindir}/cxpm"
13FILES_sxpm = "${bindir}/sxpm"
diff --git a/meta/recipes-graphics/xorg-lib/libxprintapputil_1.0.1.bb b/meta/recipes-graphics/xorg-lib/libxprintapputil_1.0.1.bb
new file mode 100644
index 0000000000..3a24a888d1
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxprintapputil_1.0.1.bb
@@ -0,0 +1,8 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "Xprint job utility client library"
4DEPENDS += "libxp libxt libxprintutil"
5PR = "r1"
6PE = "1"
7
8XORG_PN = "libXprintAppUtil"
diff --git a/meta/recipes-graphics/xorg-lib/libxprintutil_1.0.1.bb b/meta/recipes-graphics/xorg-lib/libxprintutil_1.0.1.bb
new file mode 100644
index 0000000000..327138e7fd
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxprintutil_1.0.1.bb
@@ -0,0 +1,8 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "Xprint printer utility client library"
4DEPENDS += "libxp libxt"
5PR = "r1"
6PE = "1"
7
8XORG_PN = "libXprintUtil"
diff --git a/meta/recipes-graphics/xorg-lib/libxrandr_1.3.0.bb b/meta/recipes-graphics/xorg-lib/libxrandr_1.3.0.bb
new file mode 100644
index 0000000000..461dff424b
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxrandr_1.3.0.bb
@@ -0,0 +1,15 @@
1DESCRIPTION = "X11 Resize and Rotate extension library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=660ef232af253760087c069d76287b85"
7
8DEPENDS += "randrproto libxrender libxext"
9
10PR = "r0"
11PE = "1"
12
13XORG_PN = "libXrandr"
14
15BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-graphics/xorg-lib/libxrender_0.9.5.bb b/meta/recipes-graphics/xorg-lib/libxrender_0.9.5.bb
new file mode 100644
index 0000000000..662796e90b
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxrender_0.9.5.bb
@@ -0,0 +1,15 @@
1DESCRIPTION = "X11 Rendering Extension client library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24"
7
8DEPENDS += "virtual/libx11 renderproto xproto xdmcp"
9
10PR = "r0"
11PE = "1"
12
13XORG_PN = "libXrender"
14
15BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-graphics/xorg-lib/libxres_1.0.4.bb b/meta/recipes-graphics/xorg-lib/libxres_1.0.4.bb
new file mode 100644
index 0000000000..5c8c47ccbf
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxres_1.0.4.bb
@@ -0,0 +1,13 @@
1DESCRIPTION = "X11 Resource extension library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=8c89441a8df261bdc56587465e13c7fa"
7
8DEPENDS += "libxext resourceproto"
9
10PR = "r0"
11PE = "1"
12
13XORG_PN = "libXres"
diff --git a/meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.0.bb b/meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.0.bb
new file mode 100644
index 0000000000..ff22c337a0
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.0.bb
@@ -0,0 +1,11 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X Screen Saver extension library"
4LICENSE = "GPL"
5DEPENDS += "libxext scrnsaverproto"
6PROVIDES = "libxss"
7RREPLACES = "libxss"
8PR = "r1"
9PE = "1"
10
11XORG_PN = "libXScrnSaver"
diff --git a/meta/recipes-graphics/xorg-lib/libxt_1.0.8.bb b/meta/recipes-graphics/xorg-lib/libxt_1.0.8.bb
new file mode 100644
index 0000000000..a35d03eb03
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxt_1.0.8.bb
@@ -0,0 +1,30 @@
1DESCRIPTION = "X11 toolkit intrinsics library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT & MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=0629f81eb944a4317bc6fe134614769f"
7
8
9DEPENDS += "libsm virtual/libx11 kbproto libxdmcp"
10PROVIDES = "xt"
11
12PR = "r0"
13PE = "1"
14
15XORG_PN = "libXt"
16
17BBCLASSEXTEND = "native"
18
19EXTRA_OECONF += "--disable-install-makestrs --disable-xkb"
20
21do_compile() {
22 (
23 unset CC LD CXX CCLD CFLAGS
24 oe_runmake -C util 'XT_CFLAGS=' 'CC=${BUILD_CC}' 'LD=${BUILD_LD}' 'CXX=${BUILD_CXX}' 'CCLD=${BUILD_CCLD}' 'CFLAGS=-D_GNU_SOURCE -I${STAGING_INCDIR_NATIVE} ${BUILD_CFLAGS}' 'LDFLAGS=${BUILD_LDFLAGS}' 'CXXFLAGS=${BUILD_CXXFLAGS}' 'CPPFLAGS=${BUILD_CPPFLAGS}' makestrs
25 )
26 if [ "$?" != "0" ]; then
27 exit 1
28 fi
29 oe_runmake
30}
diff --git a/meta/recipes-graphics/xorg-lib/libxtrap_1.0.0.bb b/meta/recipes-graphics/xorg-lib/libxtrap_1.0.0.bb
new file mode 100644
index 0000000000..7a25ae5bce
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxtrap_1.0.0.bb
@@ -0,0 +1,8 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 event trapping extension library"
4DEPENDS += "libxt trapproto libxext"
5PR = "r1"
6PE = "1"
7
8XORG_PN = "libXTrap"
diff --git a/meta/recipes-graphics/xorg-lib/libxtst_1.1.0.bb b/meta/recipes-graphics/xorg-lib/libxtst_1.1.0.bb
new file mode 100644
index 0000000000..bd18fb3c6b
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxtst_1.1.0.bb
@@ -0,0 +1,14 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X Test Extension: client side library"
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=cba677ca25c42ad29ee8ff351b50ece8 \
7 file://src/XTest.c;beginline=2;endline=32;md5=1491d278aeb574e84c5235eb44cdac74"
8
9DEPENDS += "libxext recordproto inputproto libxi"
10PROVIDES = "xtst"
11PR = "r2"
12PE = "1"
13
14XORG_PN = "libXtst"
diff --git a/meta/recipes-graphics/xorg-lib/libxv_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxv_1.0.5.bb
new file mode 100644
index 0000000000..d6e5777bcc
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxv_1.0.5.bb
@@ -0,0 +1,12 @@
1DESCRIPTION = "X11 Video extension library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=916ffd3d79baef9fb56d2c2af28f93f2"
7
8DEPENDS += "libxext videoproto"
9
10PR = "r0"
11
12XORG_PN = "libXv"
diff --git a/meta/recipes-graphics/xorg-lib/libxvmc_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxvmc_1.0.5.bb
new file mode 100644
index 0000000000..7a8013fa53
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxvmc_1.0.5.bb
@@ -0,0 +1,14 @@
1DESCRIPTION = "X Video Motion Compensation extension library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94 \
7 file://src/XvMCWrapper.c;endline=26;md5=5151daa8172a3f1bb0cb0e0ff157d9de"
8
9DEPENDS += "libxext libxv videoproto"
10
11PR = "r0"
12PE = "1"
13
14XORG_PN = "libXvMC"
diff --git a/meta/recipes-graphics/xorg-lib/libxxf86dga_1.1.1.bb b/meta/recipes-graphics/xorg-lib/libxxf86dga_1.1.1.bb
new file mode 100644
index 0000000000..6d5bd6aaa8
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxxf86dga_1.1.1.bb
@@ -0,0 +1,10 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "X11 Direct Graphics Access extension library"
4DEPENDS += "libxext xf86dgaproto"
5PR = "r1"
6PE = "1"
7
8XORG_PN = "libXxf86dga"
9
10LIC_FILES_CHKSUM = "file://COPYING;md5=978fbe536ab97ed49f45ba81159fe4b3"
diff --git a/meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.2.bb b/meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.2.bb
new file mode 100644
index 0000000000..8284dac231
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.2.bb
@@ -0,0 +1,14 @@
1DESCRIPTION = "X11 XFree86 miscellaneous extension library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=27c91ecc435bd3d2bfad868914c94b45"
7
8DEPENDS += "libxext xf86miscproto"
9PROVIDES = "xxf86misc"
10
11PR = "r0"
12PE = "1"
13
14XORG_PN = "libXxf86misc"
diff --git a/meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.0.bb b/meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.0.bb
new file mode 100644
index 0000000000..7dc4a3a12b
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.0.bb
@@ -0,0 +1,13 @@
1DESCRIPTION = "X11 XFree86 video mode extension library"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=de77b7cff98cf5d7a9a148069ebb4e1a"
7
8DEPENDS += "libxext xf86vidmodeproto"
9
10PR = "r0"
11PE = "1"
12
13XORG_PN = "libXxf86vm"
diff --git a/meta/recipes-graphics/xorg-lib/pixman_0.18.2.bb b/meta/recipes-graphics/xorg-lib/pixman_0.18.2.bb
new file mode 100644
index 0000000000..3bc1f0202f
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/pixman_0.18.2.bb
@@ -0,0 +1,15 @@
1DESCRIPTION = "Library for lowlevel pixel operations"
2
3require xorg-lib-common.inc
4
5LICENSE = "MIT & MIT-style & Public Domain"
6LIC_FILES_CHKSUM = "file://COPYING;md5=fea989a44fb012b5e79584972a863d22 \
7 file://pixman/pixman-matrix.c;endline=25;md5=ba6e8769bfaaee2c41698755af04c4be \
8 file://pixman/pixman-arm-neon-asm.h;endline=24;md5=9a9cc1e51abbf1da58f4d9528ec9d49b \
9 file://pixman/pixman-x64-mmx-emulation.h;beginline=4;endline=9;md5=4e32716f2efaa6c4659222667c339bb8"
10
11DEPENDS = "virtual/libx11"
12
13PR="r0"
14
15EXTRA_OECONF="--disable-gtk"
diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config_1.9.bb b/meta/recipes-graphics/xorg-lib/xkeyboard-config_1.9.bb
new file mode 100644
index 0000000000..0e59bd506f
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/xkeyboard-config_1.9.bb
@@ -0,0 +1,24 @@
1DESCRIPTION = "Keyboard configuration database for X Window"
2HOMEPAGE = "http://freedesktop.org/wiki/Software/XKeyboardConfig"
3BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xkeyboard-config"
4
5LICENSE = "MIT & MIT-style"
6LIC_FILES_CHKSUM = "file://COPYING;md5=0e7f21ca7db975c63467d2e7624a12f9"
7
8SRC_URI = "http://people.freedesktop.org/~svu/xkeyboard-config-${PV}.tar.bz2"
9SECTION = "x11/libs"
10DEPENDS = "intltool xkbcomp-native glib-2.0"
11
12PR = "r0"
13
14EXTRA_OECONF = "--with-xkb-rules-symlink=xorg"
15
16RDEPENDS_${PN} += "xkbcomp"
17FILES_${PN} += "${datadir}/X11/xkb"
18
19inherit autotools pkgconfig
20
21do_install_append () {
22 install -d ${D}/usr/share/X11/xkb/compiled
23 cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
24}
diff --git a/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
new file mode 100644
index 0000000000..4ed8c866ea
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
@@ -0,0 +1,16 @@
1HOMEPAGE = "http://www.x.org"
2BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
3
4SECTION = "x11/libs"
5LICENSE = "MIT-X"
6DEPENDS = "util-macros"
7
8XORG_PN = "${BPN}"
9
10SRC_URI = "${XORG_MIRROR}/individual/lib/${XORG_PN}-${PV}.tar.bz2"
11
12S = "${WORKDIR}/${XORG_PN}-${PV}"
13
14inherit autotools pkgconfig
15
16EXTRA_OECONF = "--enable-malloc0returnsnull"
diff --git a/meta/recipes-graphics/xorg-lib/xtrans/abstract_socket_fix.patch b/meta/recipes-graphics/xorg-lib/xtrans/abstract_socket_fix.patch
new file mode 100644
index 0000000000..197da0735d
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/xtrans/abstract_socket_fix.patch
@@ -0,0 +1,58 @@
1From 556a351de83fc6f401b02213dae95731553c216d Mon Sep 17 00:00:00 2001
2From: Loïc Minier <lool@dooz.org>
3Date: Mon, 24 Mar 2008 19:38:27 +0000
4Subject: Bug #10489: Don't retry unix socket connect()s on ENOENT.
5
6If the socket isn't there, it's not gonna magically appear. Either it's
7a server socket and you should have just waited for the SIGUSR1 from the
8server, or it's a stale reference to an ICE socket.
9
10However, do retry once, so fallback from abstract to filesystem namespace
11works.
12
13Originally Debian bug #385976.
14---
15diff --git a/Xtranssock.c b/Xtranssock.c
16index 8a7d2ec..da4afe9 100644
17--- a/Xtranssock.c
18+++ b/Xtranssock.c
19@@ -2146,8 +2146,13 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
20 errno = olderrno;
21
22 /*
23- * If the error was ENOENT, the server may be starting up
24- * and we should try again.
25+ * If the error was ENOENT, the server may be starting up; we used
26+ * to suggest to try again in this case with
27+ * TRANS_TRY_CONNECT_AGAIN, but this introduced problems for
28+ * processes still referencing stale sockets in their environment.
29+ * Hence, we now return a hard error, TRANS_CONNECT_FAILED, and it
30+ * is suggested that higher level stacks handle retries on their
31+ * level when they face a slow starting server.
32 *
33 * If the error was EWOULDBLOCK or EINPROGRESS then the socket
34 * was non-blocking and we should poll using select
35@@ -2161,14 +2166,14 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
36 else if (olderrno == EINTR)
37 return TRANS_TRY_CONNECT_AGAIN;
38 else if (olderrno == ENOENT) {
39- /*
40- * If opening as abstract socket failed, try again "normally"
41- */
42- if (abstract)
43+ /* If opening as abstract socket failed, try again normally */
44+ if (abstract) {
45 ciptr->transptr->flags &= ~(TRANS_ABSTRACT);
46- return TRANS_TRY_CONNECT_AGAIN;
47- }
48- else {
49+ return TRANS_TRY_CONNECT_AGAIN;
50+ } else {
51+ return TRANS_CONNECT_FAILED;
52+ }
53+ } else {
54 PRMSG (2,"SocketUNIXConnect: Can't connect: errno = %d\n",
55 EGET(),0, 0);
56
57--
58cgit v0.7.2-37-g538c
diff --git a/meta/recipes-graphics/xorg-lib/xtrans_1.2.5.bb b/meta/recipes-graphics/xorg-lib/xtrans_1.2.5.bb
new file mode 100644
index 0000000000..52609b7e2b
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/xtrans_1.2.5.bb
@@ -0,0 +1,15 @@
1DESCRIPTION = "network API translation layer to insulate X applications and \
2libraries from OS network vageries."
3
4require xorg-lib-common.inc
5
6LICENSE = "MIT & MIT-style"
7LIC_FILES_CHKSUM = "file://COPYING;md5=e334229ea6378ccb4a6202d7b715831c"
8
9PE = "1"
10PR = "r0"
11
12RDEPENDS_${PN}-dev = ""
13DEPENDS += "gettext"
14
15BBCLASSEXTEND = "native nativesdk"