Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 2015 06:17:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 197191] [patch] devel/dconf: hardcoded "/etc"  causes ibus-dconf failure, leading to engine preferences not saved
Message-ID:  <bug-197191-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: christopherhall.hsw@gmail.com
          Assignee: gnome@FreeBSD.org
             Flags: maintainer-feedback?(gnome@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@FreeBSD.org> ---
Auto-assigned to maintainer gnome@FreeBSD.org

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



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