Patchwork [1/1] libx11: fix invalid preprocessing directive errors

login
register
mail settings
Submitter Chong.Lu@windriver.com
Date April 8, 2014, 5:32 a.m.
Message ID <47a13254898c2868ae2ddd9ef15281d3b69efaca.1396935045.git.Chong.Lu@windriver.com>
Download mbox | patch
Permalink /patch/70235/
State Accepted
Commit 398a971f92bfe67ab3dad6420a4adf29ace66a55
Headers show

Comments

Patch

diff --git a/meta/recipes-graphics/xorg-lib/libx11/nls-always-use-XCOMM-instead-of-for-comments-in-Comp.patch b/meta/recipes-graphics/xorg-lib/libx11/nls-always-use-XCOMM-instead-of-for-comments-in-Comp.patch
new file mode 100644
index 0000000..b7f5356
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11/nls-always-use-XCOMM-instead-of-for-comments-in-Comp.patch
@@ -0,0 +1,101 @@ 
+Upstream-Status: Backport
+
+Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
+
+From b64bee2ddb7b96f00713a8b8435f11ad9ac1c9e0 Mon Sep 17 00:00:00 2001
+From: Ran Benita <ran234@gmail.com>
+Date: Sun, 16 Feb 2014 15:24:58 +0200
+Subject: [PATCH] nls: always use XCOMM instead of # for comments in
+ Compose.pre files
+
+Lines starting with # are considered as preprocessor directives in the
+.pre files.
+
+Fixes warnings like:
+<stdin>:3:0: error: invalid preprocessing directive #Khmer
+
+Signed-off-by: Ran Benita <ran234@gmail.com>
+Signed-off-by: James Cloos <cloos@jhcloos.com>
+---
+ nls/km_KH.UTF-8/Compose.pre |    2 +-
+ nls/sr_CS.UTF-8/Compose.pre |   32 ++++++++++++++++----------------
+ 2 files changed, 17 insertions(+), 17 deletions(-)
+
+diff --git a/nls/km_KH.UTF-8/Compose.pre b/nls/km_KH.UTF-8/Compose.pre
+index 77651d0..dc89119 100644
+--- a/nls/km_KH.UTF-8/Compose.pre
++++ b/nls/km_KH.UTF-8/Compose.pre
+@@ -1,6 +1,6 @@
+ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose"
+ 
+-# Khmer digraphs
++XCOMM Khmer digraphs
+ <U17ff>	:	"??"
+ <U17fe>	:	"??"
+ <U17fd>	:	"??"
+diff --git a/nls/sr_CS.UTF-8/Compose.pre b/nls/sr_CS.UTF-8/Compose.pre
+index 119e23e..b2397f7 100644
+--- a/nls/sr_CS.UTF-8/Compose.pre
++++ b/nls/sr_CS.UTF-8/Compose.pre
+@@ -1,17 +1,17 @@
+ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose"
+ 
+-# Serbian accented Cyrillic
+-# ? ? - U+0430, U+0410 Cyrillic_a, Cyrillic_A
+-# ? ? - U+0435, U+0415 Cyrillic_e, Cyrillic_E
+-# ? ? - U+043E, U+041E Cyrillic_o, Cyrillic_O
+-# ? ? - U+0443, U+0423 Cyrillic_u, Cyrillic_U
+-# ? ? - U+0438, U+0418 Cyrillic_i, Cyrillic_I
+-#
+-# ? - U+0300 <dead_grave>, <combining_grave>, <Multi_key> <grave>
+-# ? - U+0301   <dead_acute>, <Multi_key> <acute>, <Multi_key> <apostrophe>, <combining_acute>
+-# ? - U+0302 <dead_circumflex>, <Multi_key> <asciicircum>
+-# ? - U+030F  <dead_diaeresis>, <dead_doubleacute>
+-# ? - kratkouzlazni, U+0300 <dead_grave>, <combining_grave>, <Multi_key> <grave>
++XCOMM Serbian accented Cyrillic
++XCOMM ? ? - U+0430, U+0410 Cyrillic_a, Cyrillic_A
++XCOMM ? ? - U+0435, U+0415 Cyrillic_e, Cyrillic_E
++XCOMM ? ? - U+043E, U+041E Cyrillic_o, Cyrillic_O
++XCOMM ? ? - U+0443, U+0423 Cyrillic_u, Cyrillic_U
++XCOMM ? ? - U+0438, U+0418 Cyrillic_i, Cyrillic_I
++XCOMM
++XCOMM ? - U+0300 <dead_grave>, <combining_grave>, <Multi_key> <grave>
++XCOMM ? - U+0301   <dead_acute>, <Multi_key> <acute>, <Multi_key> <apostrophe>, <combining_acute>
++XCOMM ? - U+0302 <dead_circumflex>, <Multi_key> <asciicircum>
++XCOMM ? - U+030F  <dead_diaeresis>, <dead_doubleacute>
++XCOMM ? - kratkouzlazni, U+0300 <dead_grave>, <combining_grave>, <Multi_key> <grave>
+ <dead_grave> <Cyrillic_a>         : "??"
+ <combining_grave> <Cyrillic_a>    : "??"
+ <Multi_key> <grave> <Cyrillic_a>  : "??"
+@@ -42,7 +42,7 @@ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose"
+ <dead_grave> <Cyrillic_U>         : "??"
+ <combining_grave> <Cyrillic_U>    : "??"
+ <Multi_key> <grave> <Cyrillic_U>  : "??"
+-# ? - dugouzlazni, U+0301   <dead_acute>, <Multi_key> <acute>, <Multi_key> <apostrophe>, <combining_acute>
++XCOMM ? - dugouzlazni, U+0301   <dead_acute>, <Multi_key> <acute>, <Multi_key> <apostrophe>, <combining_acute>
+ <dead_acute> <Cyrillic_a>              : "??"
+ <combining_acute> <Cyrillic_a>         : "??"
+ <Multi_key> <acute> <Cyrillic_a>       : "??"
+@@ -83,7 +83,7 @@ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose"
+ <combining_acute>        <Cyrillic_U>  : "??"
+ <Multi_key> <acute>      <Cyrillic_U>  : "??"
+ <Multi_key> <apostrophe> <Cyrillic_U>  : "??"
+-# ? - dugosilazni, U+0302 <dead_circumflex>, <Multi_key> <asciicircum>
++XCOMM ? - dugosilazni, U+0302 <dead_circumflex>, <Multi_key> <asciicircum>
+ <dead_circumflex> <Cyrillic_a>          : "??"
+ <Multi_key> <asciicircum> <Cyrillic_a>  : "??"
+ <dead_circumflex> <Cyrillic_A>          : "??"
+@@ -104,8 +104,8 @@ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose"
+ <Multi_key> <asciicircum> <Cyrillic_u>  : "??"
+ <dead_circumflex> <Cyrillic_U>          : "??"
+ <Multi_key> <asciicircum> <Cyrillic_U>  : "??"
+-# ? - kratkosilazni, U+030F  <dead_diaeresis>, <dead_doubleacute>
+-# there's no appropriate dead_doublegrave, so we use these two dead keys
++XCOMM ? - kratkosilazni, U+030F  <dead_diaeresis>, <dead_doubleacute>
++XCOMM there's no appropriate dead_doublegrave, so we use these two dead keys
+ <dead_diaeresis>   <Cyrillic_a>  : "??"
+ <dead_doubleacute> <Cyrillic_a>  : "??"
+ <dead_diaeresis>   <Cyrillic_A>  : "??"
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-graphics/xorg-lib/libx11_1.6.2.bb b/meta/recipes-graphics/xorg-lib/libx11_1.6.2.bb
index 2377d61..700bc36 100644
--- a/meta/recipes-graphics/xorg-lib/libx11_1.6.2.bb
+++ b/meta/recipes-graphics/xorg-lib/libx11_1.6.2.bb
@@ -4,6 +4,7 @@  inherit gettext
 BBCLASSEXTEND = "native nativesdk"
 
 SRC_URI += "file://disable_tests.patch \
+            file://nls-always-use-XCOMM-instead-of-for-comments-in-Comp.patch \
            "
 
 SRC_URI[md5sum] = "c35d6ad95b06635a524579e88622fdb5"