From nobody@FreeBSD.org  Tue Jul 26 23:26:30 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A8983106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 23:26:30 +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 7EA418FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 23:26:30 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6QNQUbv026131
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 23:26:30 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6QNQUaM026129;
	Tue, 26 Jul 2011 23:26:30 GMT
	(envelope-from nobody)
Message-Id: <201107262326.p6QNQUaM026129@red.freebsd.org>
Date: Tue, 26 Jul 2011 23:26:30 GMT
From: Alvaro <gobledb@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] Cannot configure kdm4 from systemsetting (any KDE 4.* version)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159219
>Category:       ports
>Synopsis:       [PATCH] devel/dbus: Cannot configure kdm4 from systemsetting (any KDE 4.* version)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 26 23:30:12 UTC 2011
>Closed-Date:    Mon Oct 17 00:25:09 UTC 2011
>Last-Modified:  Mon Oct 17 00:25:09 UTC 2011
>Originator:     Alvaro
>Release:        FreeBSD 9.0-CURRENT
>Organization:
none
>Environment:
FreeBSD shuttle0.lan 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Sun Jul 24 04:24:59 WEST 2011     netSys@shuttle0.lan:/usr/obj/usr/src/sys/HYDROGEN  amd64
>Description:
When you are on systemconfig kde4 menu and you want configure KDM settings and try save changes. You will get this error:

Unable to authenticate/execute the action: DBus Backend error: could not contact the helper. Connection error: Could not get owner of name 'org.kde.kcontrol.kcmkdm': no such name. Message error: Failed to setup environment correctly (code 7)

This problem is known. I obtain this solution here
http://forums.freebsd.org/archive/index.php/t-9273.html

The problem is /etc/dbus-1/system.conf installed by devel/dbus.
>How-To-Repeat:
systemsetting
Login Manager settings
Try to save
>Fix:
Download a patch.txt, rename to patch.diary and fix it

# cd /usr/local/etc/dbus-1/
# patch < ../directory_patch/patch.diary

Patch attached with submission follows:

*** system.conf	2011-07-27 00:18:12.745438196 +0100
--- system.conf.patch	2011-07-27 00:21:07.520440476 +0100
***************
*** 71,80 ****
--- 71,82 ----
    </policy>
  
    <!-- Config files are placed here that among other things, punch 
         holes in the above policy for specific services. -->
    <includedir>system.d</includedir>
+   <includedir>/usr/local/kde4/etc/dbus-1/system.d</includedir>
+   <servicedir>/usr/local/kde4/share/dbus-1/system-services</servicedir>
  
    <!-- This is included last so local configuration can override what's 
         in this standard file -->
    <include ignore_missing="yes">system-local.conf</include>
    <include ignore_missing="yes">system-kde4.conf</include>


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Wed Jul 27 02:50:07 UTC 2011 
State-Changed-Why:  
To which port does this patch apply? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159219 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Wed Jul 27 14:35:48 UTC 2011 
State-Changed-Why:  
Fix synopsis and assign. 


Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jul 27 14:35:48 UTC 2011 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=159219 
Responsible-Changed-From-To: gnome->kde 
Responsible-Changed-By: avilla 
Responsible-Changed-When: Thu Aug 25 21:39:43 UTC 2011 
Responsible-Changed-Why:  
the problem will be fixed in misc/kdehier4 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159219 
State-Changed-From-To: open->patched 
State-Changed-By: avilla 
State-Changed-When: Thu Aug 25 22:13:13 UTC 2011 
State-Changed-Why:  
Fixed in area51. It will be committed along with KDE 4.7. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159219 
State-Changed-From-To: patched->closed 
State-Changed-By: avilla 
State-Changed-When: Mon Oct 17 00:25:08 UTC 2011 
State-Changed-Why:  
Fix committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159219 
>Unformatted:
