Diet-x11 6.2.1: add more xim stubs
authorAdrian Davey <ade@beth2.org>
Tue, 20 Dec 2005 10:38:05 +0000 (10:38 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 20 Dec 2005 10:38:05 +0000 (10:38 +0000)
packages/x11/diet-x11_6.2.1.bb
packages/x11/files/xim.patch [new file with mode: 0644]
packages/x11/x11_6.2.1.bb

index 1313bd0..b63bfa0 100644 (file)
@@ -4,5 +4,6 @@ include x11_${PV}.bb
 EXTRA_OECONF = "--disable-xcms --disable-xlocale --disable-xkb"
 CFLAGS += "-D_GNU_SOURCE"
 
-SRC_URI += "file://fix-utf8-wrong-define.patch;patch=1"
+SRC_URI += "file://fix-utf8-wrong-define.patch;patch=1 \
+       file://xim.patch;patch=1"
 
diff --git a/packages/x11/files/xim.patch b/packages/x11/files/xim.patch
new file mode 100644 (file)
index 0000000..0eab197
--- /dev/null
@@ -0,0 +1,55 @@
+--- libX11-6.2.1/src/X18NCMSstubs.c    2003-12-04 22:47:47.000000000 +0000
++++ libX11-6.2.1/src/X18NCMSstubs.c-new        2005-12-09 12:09:03.000000000 +0000
+@@ -90,6 +90,52 @@
+   return;
+ }
++XIM
++XOpenIM (
++    Display* display,
++    struct _XrmHashBucketRec* rdb,
++    char* res_name,
++    char* res_class)
++{
++  return (XIM) NULL;
++}
++
++Status
++XCloseIM ( XIM im )
++{
++  return NULL;
++}
++
++XIC
++XCreateIC ( XIM im, ...)
++{
++  return NULL;
++}
++
++void
++XDestroyIC ( XIC ic )
++{
++  return;
++}
++
++int
++XmbLookupString (
++    XIC ic,
++    XKeyPressedEvent* ev,
++    char* buffer,
++    int nbytes,
++    KeySym* keysym,
++    Status* status)
++{
++  return XLookupNone;
++}
++
++char *
++XGetICValues( XIC ic, ...)
++{
++  return (char *) NULL;
++}
++
+ XPointer
+ _XimGetLocaleCode ( _Xconst char* encoding_name )
+ {
index 121c1dd..b1de21c 100644 (file)
@@ -7,7 +7,7 @@ DESCRIPTION = "Base X libs."
 FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB"
 FILES_${PN}-locale += "${datadir}/X11/locale"
 PROVIDES = "x11"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "${XLIBS_MIRROR}/libX11-${PV}.tar.bz2 \
            file://errordb-keysymdb-path-fix.patch;patch=1 \