From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 26 14:10:03 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC6581065672 for ; Wed, 26 Sep 2012 14:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5A968FC14 for ; Wed, 26 Sep 2012 14:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8QEA2ua038630 for ; Wed, 26 Sep 2012 14:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8QEA2FF038629; Wed, 26 Sep 2012 14:10:02 GMT (envelope-from gnats) Resent-Date: Wed, 26 Sep 2012 14:10:02 GMT Resent-Message-Id: <201209261410.q8QEA2FF038629@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, HU Dong Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24F94106564A for ; Wed, 26 Sep 2012 14:03:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 1004C8FC15 for ; Wed, 26 Sep 2012 14:03:09 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8QE38TK054697 for ; Wed, 26 Sep 2012 14:03:08 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8QE38Ij054686; Wed, 26 Sep 2012 14:03:08 GMT (envelope-from nobody) Message-Id: <201209261403.q8QE38Ij054686@red.freebsd.org> Date: Wed, 26 Sep 2012 14:03:08 GMT From: HU Dong To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/172093: chinese/fcitx fixes a startup warning X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2012 14:10:03 -0000 >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: