ports/172093: chinese/fcitx fixes a startup warning

HU Dong itechbear at gmail.com
Wed Sep 26 14:10:03 UTC 2012


>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 at 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:



More information about the freebsd-ports-bugs mailing list