Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 14:03:08 GMT
From:      HU Dong <itechbear@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/172093: chinese/fcitx fixes a startup warning
Message-ID:  <201209261403.q8QE38Ij054686@red.freebsd.org>
Resent-Message-ID: <201209261410.q8QEA2FF038629@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172093
>Category:       ports
>Synopsis:       chinese/fcitx fixes a startup warning
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 26 14:10:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     HU Dong
>Release:        9.0 release i386
>Organization:
None
>Environment:
FreeBSD hostname 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
fcitx would report 2 warnings when started due to misconfigured file path in xkb.c.

***
I/O warning: failed to load external entity "/usr/share/X11/xkb/rules/base.xml"
I/O warning: failed to load external entity "/usr/share/X11/xkb/rules/base.extras.xml"
>How-To-Repeat:
kill all fcitx process, then execute fcitx from any terminal emulator.
>Fix:
see the attatched patch

Patch attached with submission follows:

diff -ruN fcitx.bak/files/patch-src__module__xkb__xkb.c fcitx/files/patch-src__module__xkb__xkb.c
--- fcitx.bak/files/patch-src__module__xkb__xkb.c	1970-01-01 08:00:00.000000000 +0800
+++ fcitx/files/patch-src__module__xkb__xkb.c	2012-09-26 21:51:22.000000000 +0800
@@ -0,0 +1,20 @@
+--- ./src/module/xkb/xkb.c.orig	2012-09-26 21:43:54.000000000 +0800
++++ ./src/module/xkb/xkb.c	2012-09-26 21:47:31.000000000 +0800
+@@ -45,7 +45,7 @@
+ #include "rules.h"
+ 
+ #ifndef XKB_RULES_XML_FILE
+-#define XKB_RULES_XML_FILE "/usr/share/X11/xkb/rules/evdev.xml"
++#define XKB_RULES_XML_FILE "/usr/local/share/X11/xkb/rules/evdev.xml"
+ #endif
+ 
+ #define GROUP_CHANGE_MASK \
+@@ -205,7 +205,7 @@
+             }
+ 
+             if( xkbParentDir == NULL || strlen(xkbParentDir) == 0 ) {
+-                xkbParentDir = strdup("/usr/share/X11");
++                xkbParentDir = strdup("/usr/local/share/X11");
+             }
+ 
+             asprintf(&rulesFile, "%s/xkb/rules/%s.xml", xkbParentDir, rulesName);


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209261403.q8QE38Ij054686>