summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libx11
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-10-03 09:52:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-11 18:08:37 +0100
commit2ee903a73804f16e844c98285962123413bc457b (patch)
treed2a12ae74c2551ba74a15d7cf128543bd5678ea3 /meta/recipes-graphics/xorg-lib/libx11
parentdc64df6c176c7e56095c4d09a2d00b8a4d976a7c (diff)
downloadpoky-2ee903a73804f16e844c98285962123413bc457b.tar.gz
libx11-trim: move files for libx11-trim from libx11-1.3.4 to libx11-trim-1.3.4
* because there isn't libx11-1.3.4 recipe anymore * remove older versions from libx11-trim directory * notice that DESCRIPTION says xcb is disabled and EXTRA_OECONF has --with-xcb (From OE-Core rev: ccebeb736c785cc6ade075798a1d5c27f106d780) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libx11')
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff540
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff16
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch17
3 files changed, 0 insertions, 573 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff b/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff
deleted file mode 100644
index 91ab180816..0000000000
--- a/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff
+++ /dev/null
@@ -1,540 +0,0 @@
1Upstream-Status: Pending
2
3Index: libX11-1.3/src/imConv.c
4===================================================================
5--- libX11-1.3.orig/src/imConv.c
6+++ libX11-1.3/src/imConv.c
7@@ -83,6 +83,7 @@ static const struct SubstRec SubstTable[
8 * from UCS char to specified charset char.
9 * This converter is needed for _XimGetCharCode subroutine.
10 */
11+#ifdef XLOCALE
12 XPointer
13 _XimGetLocaleCode (
14 _Xconst char* encoding_name)
15@@ -96,6 +97,7 @@ _XimGetLocaleCode (
16 }
17 return cvt;
18 }
19+#endif
20
21 /*
22 * Returns the locale dependent representation of a keysym.
23@@ -106,6 +108,7 @@ _XimGetLocaleCode (
24 * terminating NUL byte. Return 0 if the keysym is not representable in the
25 * locale
26 */
27+#ifdef XLOCALE
28 /*ARGSUSED*/
29 int
30 _XimGetCharCode (
31@@ -135,6 +138,7 @@ _XimGetCharCode (
32 buf[count]= '\0';
33 return count;
34 }
35+#endif
36
37 #ifdef XKB
38 static int lookup_string(
39Index: libX11-1.3/src/X18NCMSstubs.c
40===================================================================
41--- /dev/null
42+++ libX11-1.3/src/X18NCMSstubs.c
43@@ -0,0 +1,428 @@
44+/*
45+ * X18NCMSstubs.c
46+ * - Provides stubs and dummy funcs needed when Xcms and XLocale stuff removed
47+ *
48+ * Copyright © 2003 Matthew Allum
49+ *
50+ * Permission to use, copy, modify, distribute, and sell this software and its
51+ * documentation for any purpose is hereby granted without fee, provided that
52+ * the above copyright notice appear in all copies and that both that
53+ * copyright notice and this permission notice appear in supporting
54+ * documentation, and that the name of Matthew Allum not be used in
55+ * advertising or publicity pertaining to distribution of the software without
56+ * specific, written prior permission. Keith Packard and Compaq makes no
57+ * representations about the suitability of this software for any purpose. It
58+ * is provided "as is" without express or implied warranty.
59+ *
60+ * MATTHEW ALLUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
61+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
62+ * IN NO EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
63+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
64+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
65+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
66+ * PERFORMANCE OF THIS SOFTWARE.
67+ */
68+
69+#include <stdlib.h>
70+#include "Xlibint.h"
71+#include "Xlcint.h"
72+#include <X11/Xlocale.h>
73+#include <X11/Xos.h>
74+#ifdef WIN32
75+#undef close
76+#endif
77+#include <X11/Xutil.h>
78+#include "XlcPubI.h"
79+
80+#include "Xcmsint.h" /* for XcmsCCC type */
81+#include "XlcPubI.h" /* for XLCd type */
82+#include "config.h"
83+
84+#if ! XLOCALE
85+
86+Bool
87+XSupportsLocale()
88+{
89+ return False;
90+}
91+
92+char *
93+XSetLocaleModifiers(
94+ const char *modifiers)
95+{
96+ return NULL;
97+}
98+
99+XLCd
100+_XOpenLC(
101+ char *name)
102+{
103+ return NULL;
104+}
105+
106+XLCd
107+_XlcCurrentLC()
108+{
109+ return NULL;
110+}
111+
112+void
113+_XlcVaToArgList(
114+ va_list var,
115+ int count,
116+ XlcArgList *args_ret)
117+{
118+ return;
119+}
120+
121+void
122+_XlcCountVaList(
123+ va_list var,
124+ int *count_ret)
125+{
126+ return;
127+}
128+
129+void
130+_XCloseLC(
131+ XLCd lcd)
132+{
133+ return;
134+}
135+
136+int
137+_XlcConvert(
138+ XlcConv conv,
139+ XPointer *from,
140+ int *from_left,
141+ XPointer *to,
142+ int *to_left,
143+ XPointer *args,
144+ int num_args)
145+{
146+ return 0;
147+}
148+
149+/* XIM Stubs */
150+
151+XPointer
152+_XimGetLocaleCode ( _Xconst char* encoding_name )
153+{
154+ return NULL;
155+}
156+
157+int
158+_XimGetCharCode (
159+ XPointer ucs_conv,
160+ KeySym keysym,
161+ unsigned char* buf,
162+ int nbytes)
163+{
164+ return 0;
165+}
166+
167+/* Xrm Stubs */
168+
169+XrmMethods
170+_XrmInitParseInfo(
171+ XPointer *state)
172+{
173+ return (XrmMethods) NULL;
174+}
175+
176+/* Xwc Stubs */
177+
178+int
179+XwcTextExtents(
180+ XFontSet font_set,
181+ _Xconst wchar_t *text,
182+ int text_len,
183+ XRectangle *overall_ink_extents,
184+ XRectangle *overall_logical_extents)
185+{
186+ return 0;
187+}
188+
189+void
190+XwcDrawString(Display *display,
191+ Drawable d,
192+ XFontSet font_set,
193+ GC gc,
194+ int x, int y,
195+ _Xconst wchar_t *string,
196+ int num_wchars)
197+{
198+ ;
199+}
200+
201+void
202+XwcDrawText(
203+ Display *dpy,
204+ Drawable d,
205+ GC gc,
206+ int x,
207+ int y,
208+ XwcTextItem *text_items,
209+ int nitems)
210+{
211+ ;
212+}
213+
214+void
215+XwcDrawImageString(
216+ Display *dpy,
217+ Drawable d,
218+ XFontSet font_set,
219+ GC gc,
220+ int x,
221+ int y,
222+ _Xconst wchar_t *text,
223+ int text_len)
224+{
225+ ;
226+}
227+
228+int
229+XwcTextEscapement(
230+ XFontSet font_set,
231+ _Xconst wchar_t *text,
232+ int text_len)
233+{
234+ return 0;
235+}
236+
237+Status
238+XwcTextPerCharExtents(
239+ XFontSet font_set,
240+ _Xconst wchar_t *text,
241+ int text_len,
242+ XRectangle *ink_extents_buffer,
243+ XRectangle *logical_extents_buffer,
244+ int buffer_size,
245+ int *num_chars,
246+ XRectangle *max_ink_extents,
247+ XRectangle *max_logical_extents)
248+{
249+ ;
250+}
251+
252+int
253+XwcTextPropertyToTextList(
254+ Display *dpy,
255+ const XTextProperty *text_prop,
256+ wchar_t ***list_ret,
257+ int *count_ret)
258+{
259+ return 0;
260+}
261+
262+int
263+XwcTextListToTextProperty(
264+ Display *dpy,
265+ wchar_t **list,
266+ int count,
267+ XICCEncodingStyle style,
268+ XTextProperty *text_prop)
269+{
270+ return 0;
271+}
272+
273+void
274+XwcFreeStringList(wchar_t **list)
275+{
276+ return;
277+}
278+
279+
280+void XmbSetWMProperties ( /* Actually from mbWMProps.c */
281+ Display *dpy,
282+ Window w,
283+ _Xconst char *windowName,
284+ _Xconst char *iconName,
285+ char **argv,
286+ int argc,
287+ XSizeHints *sizeHints,
288+ XWMHints *wmHints,
289+ XClassHint *classHints)
290+{
291+ return;
292+}
293+
294+int
295+XmbTextPropertyToTextList(
296+ Display *dpy,
297+ const XTextProperty *text_prop,
298+ char ***list_ret,
299+ int *count_ret)
300+{
301+ return XLocaleNotSupported;
302+}
303+
304+int
305+XmbTextListToTextProperty(
306+ Display *dpy,
307+ char **list,
308+ int count,
309+ XICCEncodingStyle style,
310+ XTextProperty *text_prop)
311+{
312+ return XLocaleNotSupported;
313+}
314+
315+int
316+XmbTextExtents(
317+ XFontSet font_set,
318+ _Xconst char *text,
319+ int text_len,
320+ XRectangle *overall_ink_extents,
321+ XRectangle *overall_logical_extents)
322+{
323+ return 0;
324+}
325+
326+void
327+XmbDrawText(
328+ Display *dpy,
329+ Drawable d,
330+ GC gc,
331+ int x,
332+ int y,
333+ XmbTextItem *text_items,
334+ int nitems)
335+{
336+ ;
337+}
338+
339+void
340+XmbDrawString(
341+ Display *dpy,
342+ Drawable d,
343+ XFontSet font_set,
344+ GC gc,
345+ int x,
346+ int y,
347+ _Xconst char *text,
348+ int text_len)
349+{
350+ ;
351+}
352+
353+void
354+XmbDrawImageString(
355+ Display *dpy,
356+ Drawable d,
357+ XFontSet font_set,
358+ GC gc,
359+ int x,
360+ int y,
361+ _Xconst char *text,
362+ int text_len)
363+{
364+ ;
365+}
366+
367+int
368+XmbTextEscapement(
369+ XFontSet font_set,
370+ _Xconst char *text,
371+ int text_len)
372+{
373+ return 0;
374+}
375+
376+Status
377+XmbTextPerCharExtents(
378+ XFontSet font_set,
379+ _Xconst char *text,
380+ int text_len,
381+ XRectangle *ink_extents_buffer,
382+ XRectangle *logical_extents_buffer,
383+ int buffer_size,
384+ int *num_chars,
385+ XRectangle *max_ink_extents,
386+ XRectangle *max_logical_extents)
387+{
388+ return 0;
389+}
390+
391+unsigned int
392+KeySymToUcs4(KeySym keysym)
393+{
394+ return 0;
395+}
396+
397+#endif
398+
399+#if ! XCMS
400+
401+XcmsCCC
402+XcmsCCCOfColormap(dpy, cmap)
403+ Display *dpy;
404+ Colormap cmap;
405+{
406+ return NULL;
407+}
408+
409+Status
410+_XcmsResolveColorString (
411+ XcmsCCC ccc,
412+ const char **color_string,
413+ XcmsColor *pColor_exact_return,
414+ XcmsColorFormat result_format)
415+{
416+ return(XcmsFailure);
417+}
418+
419+void
420+_XcmsUnresolveColor(
421+ XcmsCCC ccc,
422+ XcmsColor *pColor)
423+{
424+ return;
425+}
426+
427+void
428+_XUnresolveColor(
429+ XcmsCCC ccc,
430+ XColor *pXColor)
431+{
432+ return;
433+}
434+
435+XcmsCmapRec *
436+_XcmsAddCmapRec(dpy, cmap, windowID, visual)
437+ Display *dpy;
438+ Colormap cmap;
439+ Window windowID;
440+ Visual *visual;
441+{
442+ return NULL;
443+}
444+
445+void
446+_XcmsRGB_to_XColor(
447+ XcmsColor *pColors,
448+ XColor *pXColors,
449+ unsigned int nColors)
450+{
451+ return;
452+}
453+
454+XcmsCmapRec *
455+_XcmsCopyCmapRecAndFree(
456+ Display *dpy,
457+ Colormap src_cmap,
458+ Colormap copy_cmap)
459+{
460+ return NULL;
461+}
462+
463+void
464+_XcmsDeleteCmapRec(
465+ Display *dpy,
466+ Colormap cmap)
467+{
468+ return;
469+}
470+
471+#endif
472Index: libX11-1.3/src/Makefile.am
473===================================================================
474--- libX11-1.3.orig/src/Makefile.am
475+++ libX11-1.3/src/Makefile.am
476@@ -335,6 +335,8 @@ if THRSTUBS
477 libX11_la_SOURCES+=UIThrStubs.c
478 endif
479
480+libX11_la_SOURCES+=X18NCMSstubs.c
481+
482 x11datadir = @X11_DATADIR@
483 x11data_DATA = XKeysymDB XErrorDB
484
485@@ -342,7 +344,8 @@ EXTRA_DIST = \
486 $(x11data_DATA) \
487 os2Stubs.c \
488 udcInf.c \
489- UIThrStubs.c
490+ UIThrStubs.c \
491+ X18NCMSstubs.c
492
493 if XCB
494 libX11_la_SOURCES += \
495Index: libX11-1.3/src/locking.c
496===================================================================
497--- libX11-1.3.orig/src/locking.c
498+++ libX11-1.3/src/locking.c
499@@ -66,7 +66,9 @@ in this Software without prior written a
500 #define NUM_FREE_CVLS 4
501
502 /* in lcWrap.c */
503+#ifdef XLOCALE
504 extern LockInfoPtr _Xi18n_lock;
505+#endif
506
507 #ifdef WIN32
508 static DWORD _X_TlsIndex = (DWORD)-1;
509@@ -594,9 +596,11 @@ Status XInitThreads(void)
510 _Xglobal_lock = &global_lock;
511 xmutex_init(_Xglobal_lock->lock);
512 xmutex_set_name(_Xglobal_lock->lock, "Xlib global");
513+#ifdef XLOCALE
514 _Xi18n_lock = &i18n_lock;
515 xmutex_init(_Xi18n_lock->lock);
516 xmutex_set_name(_Xi18n_lock->lock, "Xlib i18n");
517+#endif
518 _XLockMutex_fn = _XLockMutex;
519 _XUnlockMutex_fn = _XUnlockMutex;
520 _XCreateMutex_fn = _XCreateMutex;
521Index: libX11-1.3/configure.ac
522===================================================================
523--- libX11-1.3.orig/configure.ac
524+++ libX11-1.3/configure.ac
525@@ -289,7 +289,14 @@ else
526 fi
527 AC_SUBST(KEYSYMDEF)
528
529-AM_CONDITIONAL(UDC, test xfalse = xtrue)
530+AC_ARG_ENABLE(udc,
531+ AC_HELP_STRING([--disable-udc],
532+ [Disable Xlib support for UDC *EXPERIMENTAL*]),
533+ [UDC=$enableval],[UDC=yes])
534+AM_CONDITIONAL(UDC, [test x$UDC = xyes ])
535+if test x"$UDC" = "xyes"; then
536+ AC_DEFINE(UDC,1,[Include support for UDC])
537+fi
538
539 AC_ARG_ENABLE(xcms,
540 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
deleted file mode 100644
index 7dcdd6af22..0000000000
--- a/meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff
+++ /dev/null
@@ -1,16 +0,0 @@
1Upstream-Status: Pending
2
3--- libX11-X11R7.0-1.0.0/src/Font.c.orig 2006-03-12 18:35:42.000000000 +0100
4+++ libX11-X11R7.0-1.0.0/src/Font.c 2006-03-12 18:40:27.000000000 +0100
5@@ -701,7 +701,11 @@
6 }
7 if (l - 2 - (p - charset) < 0)
8 return 0;
9+#ifdef XLOCALE
10 if (_XlcNCompareISOLatin1(name + l - 2 - (p - charset), charset, p - charset))
11+#else
12+ if (strncasecmp(name + l - 2 - (p - charset), charset, p - charset))
13+#endif
14 return 0;
15 if (strlen(p + 1) + l - 1 >= sizeof(buf) - 1)
16 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
deleted file mode 100644
index 26d3349bed..0000000000
--- a/meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch
+++ /dev/null
@@ -1,17 +0,0 @@
1Upstream-Status: Pending
2
3#
4# Patch managed by http://www.holgerschurig.de/patcher.html
5#
6
7--- libX11-X11R7.0-1.0.0/include/X11/Xlib.h~fix-utf8-wrong-define
8+++ libX11-X11R7.0-1.0.0/include/X11/Xlib.h
9@@ -103,7 +103,7 @@
10
11 /* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
12 November 2000. Its presence is indicated through the following macro. */
13-#define X_HAVE_UTF8_STRING 1
14+#undef X_HAVE_UTF8_STRING
15
16 typedef char *XPointer;
17