[Bug 197191] [patch] devel/dconf: hardcoded "/etc" causes ibus-dconf failure, leading to engine preferences not saved

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 30 06:17:45 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197191

            Bug ID: 197191
           Summary: [patch] devel/dconf: hardcoded "/etc"  causes
                    ibus-dconf failure, leading to engine preferences not
                    saved
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome at FreeBSD.org
          Reporter: christopherhall.hsw at gmail.com
          Assignee: gnome at FreeBSD.org
             Flags: maintainer-feedback?(gnome at FreeBSD.org)

Created attachment 152364
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152364&action=edit
patch port Makefile to substitute "/etc"

Basically devel/dconf does not read profiles from /usr/local/etc/dconf/profile

Here is the problem that lead to this:

I found that ibus engine preferences are not saved e.g. from a Chinese Bopomofo
selecting traditional mode would not be retained and engine would always return
to default when switching between English and Chinese.

The main settings panel (ibus-settings) is fine and not affected by this.

here is a small sample of truss output:

open("/etc/dconf/profile/ibus",O_RDONLY,0666)    ERR#2 'No such file or
directory'
open("/share/dconf/profile/ibus",O_RDONLY,0666)  ERR#2 'No such file or
directory'
open("/usr/share/dconf/profile/ibus",O_RDONLY,0666) ERR#2 'No such file or
directory'
open("/usr/local/share/dconf/profile/ibus",O_RDONLY,0666) ERR#2 'No such file
or directory'
getpid()                                         = 35300 (0x89e4)
write(2,"\n(ibus-dconf:35300): dconf-WARNING **: unable to open named profile
(ibus): using the null configuration.\n",106) = 106 (0x6a)

The textproc/ibus port actually installs this file as:
/usr/local/etc/dconf/profile/ibus

The real cause is that the devel/dconf file: engine/dconf-engine-profile.c hard
codes "/etc" and the sed command in port Makefile looks only for /etc/
therefore add an additional s/// to change all "/etc" (with quotes for safety)

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer gnome at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gnome mailing list