ports/172365: [PATCH]: x11/slim Fix ConsoleKit support

Maxim Samsonov xors at imap.cc
Fri Oct 5 16:50:12 UTC 2012


>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:



More information about the freebsd-ports-bugs mailing list