Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2012 20:41:48 +0400 (MSK)
From:      Maxim Samsonov <xors@imap.cc>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172365: [PATCH]: x11/slim Fix ConsoleKit support
Message-ID:  <201210051641.q95Gfmqe001990@xors.pg.org>
Resent-Message-ID: <201210051650.q95GoBe3079417@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172365
>Category:       ports
>Synopsis:       [PATCH]: x11/slim Fix ConsoleKit support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 05 16:50:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Maxim Samsonov
>Release:        FreeBSD 8.3-STABLE i386
>Organization:
>Environment:
>Description:
Correct x11-display-device(tty) naming scheme (according to freebsd's
tty naming scheme), so ConsoleKit session become active.
As the result x11-display-device gets sane value, for example: /dev/ttyv8
instead of /dev/tty9.
>How-To-Repeat:
>Fix:
--- x11_slim.patch begins here ---
diff --git a/x11/slim/files/patch-Ck.cpp b/x11/slim/files/patch-Ck.cpp
new file mode 100644
--- /dev/null
+++ b/x11/slim/files/patch-Ck.cpp
@@ -0,0 +1,11 @@
+--- Ck.cpp.orig	2012-02-22 03:59:52.000000000 +0400
++++ Ck.cpp	2012-07-19 00:03:34.000000000 +0400
+@@ -91,7 +91,7 @@
+ 
+     vt = *((long *)return_value);
+ 
+-    std::snprintf(device, 32, "/dev/tty%ld", vt);
++    std::snprintf(device, 32, "/dev/ttyv%ld", vt - 1);
+ 
+     if(return_value)
+       XFree(return_value);
--- x11_slim.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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